Stripe Payments

Start the Stripe subscription (Deprecated)

(Deprecated - use /zephr/subscribe) Uses the payment method info captured by the Stripe Elements UI to create a Stripe customer with a recurring payment. When Stripe responds successfully, the logged-in user will be temporarily granted all entitlements in the product's associated bundle.

post/blaize/payment/stripe/subscribe

Request

  • Base URL: https://demo-site
  • URL: https://demo-site/blaize/payment/stripe/subscribe
  • 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

payment_methodstring required

Payment method from Stripe Elements UI.

plan_idstring
discount_codestring

Example request

{
  "product_id": "premium-access-monthly-recurring",
  "payment_method": "pm_123456789"
}

Response

OK

grant_idstring

New grant of product bundle to user

clientSecretstring

reference to Stripe payment required to process payment in front end

paymentIntentStatusstring

status of the payment which may require further action

Changes

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