Payments

POST

Creates a payment intent for the specified amount.

post
Body
amountnumberOptionalExample: 1000
Responses
200
Payment intent created successfully
application/json
post
POST /payments/create-payment-intent HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 15

{
  "amount": 1000
}
{
  "id": "pi_1F7X2Y2eZvKYlo2C0q0G5Z2e",
  "amount": 1000,
  "currency": "usd",
  "clientSecret": "pi_1F7X2Y2eZvKYlo2C0q0G5Z2e_secret_12345",
  "status": "requires_payment_method"
}

Last updated