Skip to main content
POST
Create Payment Intent

Create Payment Intent

Creates a PaymentIntent (or equivalent for other gateways) for processing the payment. Requires cart_unique_id from /cart/validate.

Request

string
required
Your API key

Body Parameters

integer
required
Primary product ID in the cart
string
required
Cart ID from /cart/validate response
string
required
Customer’s email address
string
required
Customer’s first name
string
required
Customer’s last name
string
required
Currency code (must match cart validation)
object
Shipping details (for physical products)

Response

Frontend Integration

Use the secret (client_secret) with Khaime Payment SDK to complete the payment:

Errors

Example