curl --request POST \
--url https://api.example.com/v1/sdk/payment-intents/{processorPaymentId}/process \
--header 'Content-Type: application/json' \
--data '
{
"productRef": "<string>",
"customerRef": "<string>",
"planRef": "<string>"
}
'{
"status": "succeeded",
"message": "Timeout while waiting for payment intent confirmation, try again later. This could be due to payment webhooks not being configured correctly."
}Processes a payment intent that has been confirmed on the client side. 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/{processorPaymentId}/process \
--header 'Content-Type: application/json' \
--data '
{
"productRef": "<string>",
"customerRef": "<string>",
"planRef": "<string>"
}
'{
"status": "succeeded",
"message": "Timeout while waiting for payment intent confirmation, try again later. This could be due to payment webhooks not being configured correctly."
}Payment processor ID returned from createPaymentIntent
"pi_1a2b3c4d5e6f7g8h"
Payment processing data
Payment intent status
Payment intent status
succeeded, timeout, failed, cancelled "succeeded"
Optional message, only present for timeout status
"Timeout while waiting for payment intent confirmation, try again later. This could be due to payment webhooks not being configured correctly."