Skip to content

Create a Stripe one-off payment

Request

Uses the payment method collected by Stripe Elements to create a one off payment.

Security
CookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
Bodyapplication/json
product_idstringrequired

Product ID/slug

Example:"lifetime-membership"
price_point_idstringrequired

Price Point ID/slug

Example:"gold-package"
payment_methodstringrequired

Payment method from Stripe Elements UI.

Example:"pm_123456789"
payment_intent_idstring

PaymentIntent ID returned after confirming a card payment.

Example:"pi_1GYZYWLgUJT2XNPAYQMomeqf"
{ "product_id": "lifetime-membership", "price_point_id": "gold-package", "payment_method": "pm_123456789", "payment_intent_id": "pi_1GYZYWLgUJT2XNPAYQMomeqf" }

Responses

OK

Headers
any
Bodyapplication/json
grant_idstring

New grant of product bundle to user

Example:"aa583cb8-51d1-4bd9-9ec7-3a43796ef8e5"
client_secretstring

Reference to Stripe payment required to process payment in front end.

Example:"src_client_secret_QfsM25CJ2uCMon72MiOmUNTj`"
payment_intent_idstring

Reference to the payment intent if payment requires confirmation.

Example:"pi_1GYZYWLgUJT2XNPAYQMomeqf"
Response
{ "grant_id": "aa583cb8-51d1-4bd9-9ec7-3a43796ef8e5", "client_secret": "src_client_secret_QfsM25CJ2uCMon72MiOmUNTj`", "payment_intent_id": "pi_1GYZYWLgUJT2XNPAYQMomeqf" }