Create a payment intent

POST {{baseUrl}}/v1/stripe/payment/create

Creates a PaymentIntent object.

After the PaymentIntent is created, attach a payment method and confirm to continue the payment. You can read more about the different payment flows available via the Payment Intents API here.

When confirm=true is used during creation, it is equivalent to creating and confirming the PaymentIntent in the same call. You may use any parameters available in the confirm API when confirm=true is supplied.

https://stripe.com/docs/api/payment_intents

Request Body

[{"name"=>"players", "value"=>"12", "datatype"=>"number"}, {"name"=>"frequency", "value"=>"monthly", "datatype"=>"string"}, {"name"=>"plan", "value"=>"club", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
AuthorizationstringA valid JWT token

RESPONSES

status: OK

{"error":false,"code":200,"message":"Authentication with stripe completed","client_token":"pi_3KTUbxHjhuytrrrW_secret_00XVkoooiiuyyyygOBwP","amount":4788}