Create a Stripe one-off payment

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

SecurityCookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
Request
Request Body schema: application/json
product_id
required
string

Product Id/slug

price_point_id
required
string

Price Point Id/slug

payment_method
required
string

Payment method from Stripe Elements UI

payment_intent_id
string

PaymentIntent id returned after confirming a card payment

Responses
200

OK

post/blaize/payment/stripe/buy
Request samples
application/json
{
  • "product_id": "lifetime-membership",
  • "price_point_id": "gold-package",
  • "payment_method": "pm_123456789",
  • "payment_intent_id": "pi_1GYZYWLgUJT2XNPAYQMomeqf"
}
Response samples
application/json
{
  • "grant_id": "aa583cb8-51d1-4bd9-9ec7-3a43796ef8e5",
  • "client_secret": "src_client_secret_QfsM25CJ2uCMon72MiOmUNTj`",
  • "payment_intent_id": "pi_1GYZYWLgUJT2XNPAYQMomeqf"
}