Stripe Payments

Create a Stripe one-off payment

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

post/blaize/payment/stripe/buy

Request

  • Base URL: https://demo-site
  • URL: https://demo-site/blaize/payment/stripe/buy
  • Auth: one of:
    • API key in cookie blaize_session
    • API key in query parameter jwt
    • API key in header x-blaize-jwt
    • API key in header x-zephr-jwt
    • HTTP bearer
    • API key in cookie blaize_jwt

Request body

product_idstring required

Product ID/slug

price_point_idstring required

Price Point ID/slug

payment_methodstring required

Payment method from Stripe Elements UI.

payment_intent_idstring

PaymentIntent ID returned after confirming a card payment.

Example request

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

Response

OK

grant_idstring

New grant of product bundle to user

client_secretstring

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

payment_intent_idstring

Reference to the payment intent if payment requires confirmation.

Example response

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

Changes

No recorded changes to this operation across all 2 revisions of this API.