Overview
Payment endpoints cover gateway-backed operations that run through your account's active payment gateway — initializing payment collection on the front end, and authorizing a payment.
How It Works
- Create a Stripe setup intent to confirm and save a card off-session (SCA / 3D Secure) without charging it.
- Generate a Braintree client token to initialize the Braintree JS SDK and collect a payment method.
- Authorize a payment through the gateway (Tap).
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
POST | /api/v1/sdk/customer/setupIntent | Stripe setup intent |
GET | /api/v1/sdk/payment/braintree/generate_client_token | Braintree client token |
POST | /api/v1/sdk/payment/{payment_gateway}/authorize | Tap authorize payment |
Important Behaviors
- These endpoints require an authenticated customer (Bearer JWT) and an active payment gateway on the account.
- The Stripe setup intent requires a Stripe connected account; the Braintree client token requires an active Braintree gateway; authorization currently requires Tap.
