curl --request POST \
--url https://api.example.com/v1/sdk/payment-intents/{id}/process \
--header 'Content-Type: application/json' \
--data '
{
"customerRef": "cus_456",
"productRef": "prd_123",
"planRef": "pln_789"
}
'{
"status": "cancelled"
}Processes a payment intent that has been confirmed on the client-side using Stripe.js. Polls the database for payment intent status to become succeeded (up to 10 seconds). Returns the current status of the payment intent.
curl --request POST \
--url https://api.example.com/v1/sdk/payment-intents/{id}/process \
--header 'Content-Type: application/json' \
--data '
{
"customerRef": "cus_456",
"productRef": "prd_123",
"planRef": "pln_789"
}
'{
"status": "cancelled"
}Stripe payment intent ID (format: pi_xxx)
"pi_1a2b3c4d5e6f7g8h"
Payment processing data
Payment intent status
Optional message, only present for timeout status
"Timeout while waiting for payment intent confirmation, try again later. This could be due to Stripe webhooks not being configured correctly."
Payment intent status
succeeded, timeout, failed, cancelled "succeeded"