DOCS
Build with the API

Migrate processor tokens

Keep taking payments on existing processor tokens while you create new tokens in dhango.

Platform guide

If your platform already stores tokens at other processors, you can move to dhango gradually, without migrating every merchant on the same day. Existing tokens keep working while new ones are created in dhango.

  1. Connect dhango to the processors your platform already uses, including your primary processor and any legacy gateway (Authorize.net, CyberSource, PayPal Payflow Pro, or TrustCommerce). See Configure a legacy gateway.

  2. Tag each of your existing tokens with the processor that issued it, such as Stripe or Authorize.net.

  3. Create each merchant account in dhango.

  4. Tokenize every new payment method with dhango from then on. See Save a payment method.

  5. When you take a payment, send either a dhango tokenId or a processorToken. With a dhango token, dhango sends the payment details it holds. With a processor token, dhango passes that processor's own token through.

    A processorToken requires tokenId (the processor's token), paymentMethodType, and maskedAccountNumber. customerId and cardBrand are optional.

  6. Request your historical tokens from each processor, and dhango imports them. You get the results two ways: a two-column file that maps each processor token id to its dhango token id, and a TokenImported webhook event for each token as it is imported. The event carries the original token id, the new dhango token id, and whether that row succeeded. Use either one to update your records, and from then on use only dhango token ids. See Webhooks for the event fields.

  7. Move merchants onto your primary processor over time. Once a merchant moves, its payments run through the primary processor.

The Fake processor does not accept processor tokens, so test this flow on a sandbox processor that does.