payment-method

Set up Stripe checkout

Changed on

create the customer and retrieve the secret from Stripe to add the payment method

post/payment_method/setup-stripe-checkout-data

Request

  • Base URL
    https://api.topi-staging.eu
  • URL
    https://api.topi-staging.eu/payment_method/setup-stripe-checkout-data
  • Auth
    OAuth 2
    Authorization code: /oauth2/authorize
    Token URL: /oauth2/token scopes: payment_method:edit

Request body

offer_idstring required

Offer ID associated with the checkout session

stripe_checkout_session_return_urlstring

The return URL at end of Stripe Checkout Session

use_stripe_checkout_sessionboolean

Use Stripe Checkout Session instead of Stripe SetupIntent

Example request

{
  "offer_id": "abc123",
  "stripe_checkout_session_return_url": "abc123",
  "use_stripe_checkout_session": false
}

Response

OK response.

client_secretstring required
session_idstring

Example response

{
  "client_secret": "abc123",
  "session_id": "abc123"
}

Changes

    • info

      api operation id payment-method.setupStripeCheckoutData removed and replaced with payment-method#setupStripeCheckoutData

    • info

      api operation id payment-method#setupStripeCheckoutData removed and replaced with payment-method.setupStripeCheckoutData