DOCS
Build with the API

Token ownership

Whether a token belongs to one merchant or the platform can use it for many merchants.

Platform guide

Some payers pay only one of your merchants, and some pay several. You decide whether a saved payment method stays with one merchant or can be used across your platform, and the choice comes down to which account the token is created for.

You can create a token from your server with API credentials, or from the browser with the client script and an account key. Both work for either kind of token.

Private to one merchant

Create the token for the merchant in any of these ways:

  • From the browser: set the client script's tokenOwnerAccountKey to the merchant's account key.
  • From your server: use the merchant's own key and secret, or your platform key and secret plus the merchant's accountKey.

The token is stored on the merchant, and no other merchant can charge it.

Choose this when the payment method should never be used by another account.

Shared by the platform

Create the token for your platform in either of these ways:

  • From the browser: set the client script's tokenOwnerAccountKey to your platform's account key.
  • From your server: use your platform key and secret, and leave out accountKey.

The token is stored on your platform.

Later, when you pay for a merchant with your platform credentials and that merchant's accountKey, pass the platform token as tokenId. The payment is recorded on the merchant, and the token stays with your platform, so the payer's saved method works for any merchant you manage.

See API authentication for the credential combinations, and Save a payment method for creating the token.