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

Path Parameters

id
string
required

Stripe payment intent ID (format: pi_xxx)

Example:

"pi_1a2b3c4d5e6f7g8h"

Body

application/json

Payment processing data

customerRef
string
required

Customer reference identifier

Example:

"cus_456"

productRef
string
required

Product reference that owns the plan

Example:

"prd_123"

planRef
string

Plan reference - helps determine if payment is for purchase

Example:

"pln_789"

Response

Payment intent status

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 Stripe webhooks not being configured correctly."

status
enum<string>

Payment intent status

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

"succeeded"