cURL
basic
curl --request POST \ --url https://app.tagadapay.com/api/public/v1/checkout/pay-v2 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "checkoutSessionId": "ch_1234567890", "paymentInstrumentId": "pi_1234567890" } '
{ "order": { "id": "ord_1234567890", "status": "paid", "totalAmount": 2999, "currency": "USD" }, "payment": { "id": "pay_1234567890", "status": "succeeded", "amount": 2999, "currency": "USD" }, "redirectUrl": "https://mystore.com/thankyou/ord_1234567890" }
Pay for a checkout session with enhanced control over payment initiation.
This V2 endpoint provides additional parameters:
These parameters are used for tracking and analytics purposes.
Enter your API key as: Bearer your-api-key
Bearer your-api-key
Show child attributes
customer
merchant
upsell
checkout
offer
missing_club
forced
Successful response