secureToken
. To obtain the token, you need to call the /api/secure-token/
endpoint from your the backend, ensuring secure and authenticated token generation. Once the token is retrieved, it can be implemented in your project from either the frontend or backend, depending on your setup and requirements.
Initialize Tonder's SDK with Save Cards Customization
customization
object. Control whether customers can save cards, auto-save options, and the visibility of saved cards when starting the SDK.showSaveCardOption
: Allows users to choose to save their card.autoSave
: Enables automatic card saving without user confirmation.showSaved
: Displays previously saved cards to the customer.Retrieve your Secret API Key
secureToken
. You can find your Secret API key by accessing the Developers section in your Tonder Dashboard.Generate a secureToken
access
property. This is the generated secureToken
you need for the next steps. Below is an example format of the response:secureToken
is valid for 1 hour. Ensure that it is used within this time frame to avoid authentication errors.Configure the Checkout with your secureToken
secureToken
, configure the Tonder SDK checkout on the frontend to authenticate and secure transactions. Use the configureCheckout
method, which accepts the secureToken
along with customer data:checkoutData.customer
: Contains customer information.secureToken
: The token generated by the backend.