I was working on PayPal and wanted to know some things about PayPal that we can do in Stripe through Golang API:
I need to know all of the above points through Go API. Can anyone guide me upon how can I do all of the above if is possible ??
From what I can gather you:
POST /v2/checkout/orders
{
"intent": "CAPTURE",
"purchase_units": [
{
"amount": {
"currency_code": "USD",
"value": "1.00"
}
}
]
}
POST /v2/checkout/orders/<OrderId>/capture
{
"payment_source": {
"token": {
"id": "VAULT CARD ID HERE",
"type": "PAYMENT_METHOD_TOKEN"
}
}
}
This is as far as I have gotten because I am getting a 500 error currently