Skip to Content
Tonder SDK Portal
Web SDKEnroll card

Enroll card

Use this demo to save a new card before testing it in the saved-card payment demo:

  1. Paste a secure_token minted by your backend for the current customer.
  2. Click Prepare card fields so the SDK initializes with that customer and token.
  3. Enter a test card in the secure card fields rendered by the SDK.
  4. Click Save card to call enrollCard().
  5. Copy the returned card_id or open Saved cards and fetch the customer’s cards.

When Card-on-File is enabled for the business, enrollCard() also creates the subscription and returns subscription_id. When it is not enabled, the SDK stores the card without a subscription.

Enroll card

Use the browser CDN build directly. Good for validating the enroll-card contract without a framework.

Last updated on