Skip to main content
POST
/
v1
/
sdk
/
payment-intents
/
{processorPaymentId}
/
process
Process payment intent after client-side confirmation
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."
}

Path Parameters

processorPaymentId
string
required

Payment processor ID returned from createPaymentIntent

Example:

"pi_1a2b3c4d5e6f7g8h"

Body

application/json

Payment processing data

productRef
string
required
Minimum string length: 1
customerRef
string
required
Minimum string length: 1
planRef
string

Response

Payment intent status

status
enum<string>

Payment intent status

Available options:
succeeded,
timeout,
failed,
cancelled
Example:

"succeeded"

message
string

Optional message, only present for timeout status

Example:

"Timeout while waiting for payment intent confirmation, try again later. This could be due to payment webhooks not being configured correctly."