Enroll card
Use this demo to save a new card before testing it in the saved-card payment demo:
- Paste a
secure_tokenminted by your backend for the current customer. - Click Prepare card fields so the SDK initializes with that customer and token.
- Enter a test card in the secure card fields rendered by the SDK.
- Click Save card to call
enrollCard(). - Copy the returned
card_idor 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