get
https://www.pelcro.com/api/v1/sdk/payment/braintree/generate_client_token
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Overview
Generate a Braintree client token for the authenticated customer. Your front end passes this token to the Braintree JS SDK (Drop-in UI or Hosted Fields) to initialize and collect a payment method. The customer is taken from the JWT.
Example:
curl --request GET --url 'https://www.pelcro.com/api/v1/sdk/payment/braintree/generate_client_token?site_id=1232' --header 'Authorization: Bearer <JWT>' --header 'Accept: application/json'Important Behaviors
- Requires an active Braintree gateway on the account.
- Generate a fresh client token for each front-end payment session rather than caching it.
