Make payment methods portable
Keep saved cards and bank accounts in the Preczn token vault, apart from any processor, and charge them through any of the merchant's connections that accept transactions.
You save customers' cards and bank accounts for repeat purchases, subscriptions, or faster checkout. You might call the alternative to processor-held cards a portable vault, processor-agnostic tokenization, card on file, or "store once, charge anywhere". In Preczn, this is the token vault.
If a processor holds your saved payment methods, adding or switching processors means a token export, if that processor allows one, or asking customers to re-enter their details.
Payment methods in the Preczn token vault aren't tied to a processor. The same Preczn token can be charged through any supported processor connection the merchant has, so adding or switching processors doesn't require new tokens. Tokens are bound to your platform. If you later want a processor to hold its own copy, token migration creates matching tokens at a supported destination processor. See Supported connections.
Who this is for
- Platforms that save payment methods for recurring or repeat charges.
- Platforms that use, or expect to use, more than one processor.
You don't need this page in these cases:
- You only run one-time payments and never save a payment method. Use a single-use token from PaymentElements directly in a sale.
- You want to move cards from your current provider into Preczn. Start with Migrate from another processor.
When to use this
| If you need to ... | Use ... | Not ... |
|---|---|---|
| Capture a card in Preczn-hosted fields instead of your own inputs | PaymentElements | Collecting card numbers in your own inputs |
| Save a payment method for later charges | A multi-use token, returned with ?tokenize=true on an approved sale, auth, or verify | Storing card details in your own systems |
| Save a payment method without charging it | A verify transaction with ?tokenize=true | A sale you later refund |
| Charge a saved payment method | The Preczn token in place of payment details. See Process Transaction. | Re-collecting the card |
| Tell the processor why a saved card is being charged | Card-on-file flags (tokenUsage) | Leaving the processor to guess |
| Choose which processor charges the token | A routing plan | Re-tokenizing at each processor |
| Have a processor hold its own token so you transact with it directly | Token migration (see Supported connections) | A routing plan |
How it works
Preczn has two vaults. The token vault holds payment methods. The merchant vault holds business and onboarding data. This page concerns the token vault.
Payment methods enter the token vault in two ways: customers enter them through PaymentElements, or Preczn imports them from a previous provider. From the vault, a payment method can be used in two ways:
- Preczn runs the transaction. You send a Preczn token, and Preczn sends the transaction to a processor chosen by the merchant's plan or named on the request. You don't need a token from that processor to charge the payment method.
- The processor holds its own token. Preczn creates a matching token at a destination processor, and you transact with that processor directly. This is token migration, and some destinations support only this. See the Token migration table on Supported connections.
The diagram shows payment methods entering the token vault and leaving it through either path.
flowchart LR
SDK["PaymentElements"] --> TV["Preczn token vault"]
IMP["Token import"] --> TV
TV -->|"Preczn token on a<br/>transaction request"| PLAN["Merchant's plan"]
PLAN --> PA["Processor A"]
PLAN --> PB["Processor B"]
TV -->|"token migration"| PT["Token at a<br/>destination processor"]
Multi-use tokens don't expire, but they're still subject to the card's expiration date. The vault doesn't store CVV, so configure each processor's risk rules not to require CVV on later charges. See Save a card for later use.
Some processors need extra setup before Preczn can charge a vaulted card through them. For example, see Raw card data access on the Stripe guide.
Prerequisites
- At least one connection that accepts transactions. See Supported connections.
- Each merchant assigned to a plan, or your requests name a processor. See Assign a merchant to a plan.
- A client-side capture integration. See Choose an integration method.
Outline
- Choose a capture integration. See Choose an integration method.
- Capture the payment method. Exchange the customer's entry for a single-use token. See Collect payment details with PaymentElements.
- Save it as a multi-use token. Send a sale, auth, or verify with
?tokenize=true. See Save a card for later use and Choose a transaction type. - Store billing details with the token (optional). See Keep billing details on a token.
- Charge the token. Send the token in place of payment details, with the card-on-file context. See Flag card-on-file transactions.
- Route the charge. Let the merchant's plan choose the processor, or name one. See Route payments across providers.
Example
A membership platform for climbing gyms charges monthly dues to saved cards and wants to add a second processor next year without asking members to re-enter cards.
- The platform renders PaymentElements on its signup page. When a member submits, it receives a single-use token.
- It sends a verify with
?tokenize=trueand stores the multi-use Preczn token against the member. - Each month, it sends a sale with the stored token and
tokenUsageset torecurring. The gym's plan routes the sale to its current processor. - The next year, the platform boards the gym to the second processor and moves the gym to a plan that routes across both. Monthly dues now go to either processor, charged with the same stored tokens.
Updated 6 days ago
