# Stripe Payments ## Retrieve the Stripe public key - [GET /blaize/payment/stripe/publicKey](https://developer.zuora.com/zephr-api-reference/zephr-public-api/stripe-payments/getstripepublickey.md): This API endpoint fetches the public key associated with a tenant for payment processing. If the user is authenticated and the tenant has a configured Stripe public key, the endpoint will return the Stripe public key in a String format. ## Create a Stripe setup intent secret - [POST /zephr/payment/stripe/setupIntentSecret](https://developer.zuora.com/zephr-api-reference/zephr-public-api/stripe-payments/createstripesetupintentsecret.md): Creates the client secret to update card details ## Start the Stripe subscription confirmation - [POST /blaize/payment/stripe/subscription/confirmation](https://developer.zuora.com/zephr-api-reference/zephr-public-api/stripe-payments/startstripesubscriptionconfirmation.md): If a payment requires confirmation (3dSecure etc), the payment is confirmed in the front end. ## Update the Stripe subscription - [POST /zephr/payment/stripe/updateSubscription](https://developer.zuora.com/zephr-api-reference/zephr-public-api/stripe-payments/updatestripesubscription.md): Updates the payment method in the subscription. Payment method id will be provided by stripe on updating card details in the front end. ## Create a Stripe one-off payment - [POST /blaize/payment/stripe/buy](https://developer.zuora.com/zephr-api-reference/zephr-public-api/stripe-payments/buystripe.md): Uses the payment method collected by Stripe Elements to create a one off payment. ## Receive a webhook from Stripe for when a user is charged for a subscription. - [POST /blaize/payment/stripe/subscriptionChargedCallback](https://developer.zuora.com/zephr-api-reference/zephr-public-api/stripe-payments/callbackstripesubscriptioncharged.md): To use subscriptions, Stripe Webhooks for invoice.payment_succeeded must be configured to point to this endpoint. ## Preview the Stripe subscription change - [POST /zephr/payment/stripe/subscription/{subscriptionId}/change-previews](https://developer.zuora.com/zephr-api-reference/zephr-public-api/stripe-payments/previewstripechangesubscription.md): Generates a preview of the invoice that Stripe will create for the customer if their subscription is changed to a new plan. The invoice will be a prorated invoice for the price difference between current and new subscription plans for the remainder of the current billing period. The invoice will be billed immediately upon changing subscription. The invoice amount may be negative if the customer is changing to a lower-priced plan. Note: This method does not modify the user's subscription. ## Preview the Stripe subscription price - [POST /zephr/payment/stripe/create-subscription-previews](https://developer.zuora.com/zephr-api-reference/zephr-public-api/stripe-payments/previewstripesubscriptionprice.md): Generates a preview of the total price and tax amount that Stripe will charge the customer if they create a new subscription for the specified plan. Note: This method does not create any entities in Stripe and does not result in any payments being made. ## Check a Stripe promo code for a user - [GET /zephr/payment/stripe/promo-code](https://developer.zuora.com/zephr-api-reference/zephr-public-api/stripe-payments/checkstripepromocode.md): Checks a Stripe promo code for the logged in user. The promo code is checked for validity of the current user based on first time order restriction, specific customer restriction, max allowed redemptions and expiration. The payment form payment options are checked to match the minimum payment amount requirements of the promo code. ## Check a Stripe promo code for a user - [POST /zephr/payment/stripe/promo-code-check](https://developer.zuora.com/zephr-api-reference/zephr-public-api/stripe-payments/checkstripepromocodewithpaymentoptions.md): Checks a Stripe promo code for the logged in user. The promo code is checked for validity of the current user based on first time order restriction, specific customer restriction, max allowed redemptions and expiration. The supplied payment payment options are checked to match the minimum payment amount requirements of the promo code. ## Start the Stripe subscription (Deprecated) - [POST /blaize/payment/stripe/subscribe](https://developer.zuora.com/zephr-api-reference/zephr-public-api/stripe-payments/startstripesubscription.md): (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. ## List the user's Stripe subscriptions - [GET /blaize/payment/stripe/subscriptions](https://developer.zuora.com/zephr-api-reference/zephr-public-api/stripe-payments/liststripesubscriptions.md): Lists the user's Stripe subscriptions. ## Cancel a user's Stripe subscription - [DELETE /blaize/payment/stripe/subscriptions/{externalId}](https://developer.zuora.com/zephr-api-reference/zephr-public-api/stripe-payments/cancelstripesubscription.md): Cancels a user's Stripe subscription