Token Migration Process

Coordinate a merchant’s saved-payment migration to Stax, including encrypted file transfers, SSH access, and import confirmation.

Coordinate the import of a merchant’s saved payment methods from their previous processor into Stax.

This operational guide is for Stax Connect partners and merchants coordinating a migration with their previous processor and Stax Partner Support. The command-line steps are for the person preparing file-transfer access, not for an API integration.

A payment token is a substitute for sensitive payment details that lets you reference a saved payment method without using the original card number. Tokenization creates that substitute. A token migration transfers saved payment information between processors; the export may contain primary account numbers (PANs, the actual card numbers), not just tokens.


Plan for Processing Time

Allow an average of 4–5 business days for Stax to complete the migration after receiving the files prepared according to the steps below. This average is not a guaranteed completion date.


Preparing for Token Migration

Prerequisites

  1. Confirm that the merchant is fully approved and active with Stax before requesting the import.
  2. Prepare a separate token file and support ticket for each merchant.

Information to Include in the Support Ticket

  • Processor Information: Name the processor providing the token file.
  • File Transfer Method: Specify whether you will upload the files to Stax’s SFTP (SSH File Transfer Protocol, a method for transferring files over an encrypted connection) server or Stax will retrieve them from the previous processor’s SFTP server.
  • Expired Cards: Specify whether to import or omit expired cards.
  • Schedule Import Details: Specify whether to import schedules for recurring payments.

Key Notes

  1. Submission Requirements:
    • Submit a file-transfer or import ticket to Stax Partner Support when either condition applies:
      • You need Stax to create a user instance for file-transfer access (Step 4). Include your public SSH key (the shareable part of a Secure Shell key pair used to authenticate your connection). Keep the private key secret.
      • You or the previous processor have uploaded the files to the relevant SFTP server, and Stax can retrieve them for import (Step 5).
  2. Recommended File Preparation:
    • Request the token file directly from the previous processor, with its most up-to-date cardholder information. Current card details, such as expiration dates, help reduce declines.
  3. AVS Settings:
    • Review the previous processor’s AVS (Address Verification System, a check that compares supplied billing address information with the card issuer’s records) settings. If the previous processor did not require address information but your Stax portfolio requires ZIP validation, imported payment methods without ZIP information could fail that check.
    • Review these options with Stax Partner Support before importing:
      • Match your AVS settings to the previous processor’s settings.
      • Exclude payment methods that do not meet your preferred AVS requirements.
      • Configure your portfolio to reject AVS mismatches.
  4. Mapping/Reference File:
    • Stax Partner Support provides a mapping/reference file after completing the migration so you can match imported records to your existing records. Stax exports schedule data in a separate file.
  5. Order of Import:
    • Stax must import customer data and payment methods before importing schedules.
  6. Personal Health Information (PHI):
    • Exclude PHI from every import file. Stax cannot accept import files containing PHI.

Understanding the Previous Processor’s Migration Policies

Ask the previous processor these questions before requesting an export:

  • Are there contractual limitations or restrictions?
  • Does the processor allow payment token migrations?
  • What does the export cost, if anything?
  • What limits apply to data availability, timing, or the transfer method?
  • Will the merchant lose access to the existing processor during the migration?

Migration Process

Steps

  1. Request Export:

    • Ask the merchant to request an export of their saved payment information from the previous processor. The export may include PANs (the actual card numbers), rather than the processor’s tokens.
    • Ask the processor to provide a JSON or CSV file encrypted with PGP (Pretty Good Privacy, encryption that protects the file’s contents).
  2. Request Compliance Documentation if Needed:

    • Confirm whether the previous processor needs Stax’s AOC (Attestation of Compliance, documentation of an assessment against Payment Card Industry Data Security Standard requirements).
    • Stax can provide the AOC cover letter or direct the processor to the Visa Global Registry. Ask the processor to confirm whether those materials meet its review requirements. These materials support compliance efforts; they do not establish your own compliance status.
    • If the processor requires the full AOC, it must sign an NDA (non-disclosure agreement, an agreement governing the sharing of confidential information) before Stax releases it.
    • Email [email protected] to request the documentation. If Stax requires an NDA, provide the signer’s first name, last name, and email address. Stax will send the NDA directly to that individual.
  3. Encrypt Files:

    • Ask the person preparing the export to encrypt it with Stax’s public PGP key.
    • Use CSV or JSON format.
    • Keep ACH (Automated Clearing House, payments transferred between bank accounts) data and card data in separate files.
    • Encrypt every file containing card or bank-account information with PGP. This is a required file-handling step, not an optional recommendation.
    • Files containing only customer information do not need PGP encryption for this import process.
  4. File Transfer Options:

    After encrypting the file, choose one of these transfer methods.

    • Upload directly to Stax’s SFTP server:
      • If you need a user instance for a new merchant, email [email protected] to request login credentials. Stax normally creates user instances per processor (Stripe, Braintree, etc.).
      • Include your public SSH key, not your private key, in the ticket. Stax needs it to create the credentials.
      • Stax closes the access-request ticket after handling it. Submit a second ticket once you have uploaded the file and it is ready for import (Step 5).
      • Follow Creating a Public SSH Key if you need a new key and Uploading Files with WinSCP if you will upload the files yourself.
    • Have Stax retrieve the file from the previous processor’s SFTP server:
      • Confirm the previous processor’s requirements for Stax to retrieve the files.
      • Include those requirements in the import ticket in Step 5.
  5. Support Ticket Submission:

    Email [email protected] when Stax can retrieve the file from the previous processor’s SFTP server or after you upload it to Stax’s SFTP server. Include:

    • Subject line: [Token Migration - DBA - PMID]. Replace DBA with the merchant’s doing-business-as name (the name under which the business operates) and PMID with the merchant ID. If you cannot locate the merchant ID, ask Stax Partner Support to help identify it.
    • The transfer method: specify whether Stax will retrieve the file or you have uploaded it to Stax’s SFTP server. Include the previous processor’s retrieval requirements if applicable.
    • The name of the previous processor.
    • Whether to import or omit expired cards.
    • Whether to import recurring-payment schedules.

    Submit a separate support ticket and token file for each merchant.

  6. Confirm Completion:

    • Wait for Stax Partner Support to confirm the migration. You can then expect the imported customer information, saved payment methods, and schedules if you requested them.
    • Imported scheduled payments will continue to run as normal.
    • Use the mapping/reference file from Stax Partner Support to match the imported records to your software’s records. Stax also provides an output file if you need to populate the data in your software, with schedule data in a separate file.

Creating a Public SSH Key

Follow this section only if you need a new SSH key for Stax file-transfer access. Ask the previous processor whether it will handle this step before generating your own key.

  1. Open Terminal on macOS or PowerShell on Windows. Run ssh-keygen -? to check that the command is available; it should display usage information. If the shell cannot find the command, install an OpenSSH client before continuing.
  2. Run the script for your operating system. Each script creates a 4096-bit RSA key pair, refuses to overwrite an existing key, and copies only the public key to your clipboard. When prompted for a passphrase, enter and confirm one to protect the private key.
  3. Paste the public key into your access-request ticket. Never send the private key, which is the file without the .pub extension.

Mac

(
  set -eu
  key_path="$HOME/.ssh/stax_partner_ssh_key"
  mkdir -p "$HOME/.ssh"
  if [ -e "$key_path" ] || [ -e "$key_path.pub" ]; then
    printf '%s\n' 'Key already exists. Reuse the public key if it is valid; do not overwrite it.' >&2
    exit 1
  fi
  ssh-keygen -t rsa -b 4096 -f "$key_path"
  pbcopy < "$key_path.pub"
  printf '%s\n' 'Public key copied to clipboard. Paste it into your Stax Partner Support ticket.'
)

Windows (PowerShell)

& {
    $ErrorActionPreference = 'Stop'
    $keyPath = Join-Path $env:USERPROFILE '.ssh\stax_partner_ssh_key'
    New-Item -ItemType Directory -Force -Path (Split-Path $keyPath) | Out-Null
    if ((Test-Path $keyPath) -or (Test-Path "$keyPath.pub")) {
        throw 'Key already exists. Reuse the public key if it is valid; do not overwrite it.'
    }
    ssh-keygen -t rsa -b 4096 -f $keyPath
    if ($LASTEXITCODE -ne 0) {
        throw 'Key generation failed. Review the ssh-keygen error before retrying.'
    }
    Get-Content -Raw "$keyPath.pub" | Set-Clipboard
    Write-Output 'Public key copied to clipboard. Paste it into your Stax Partner Support ticket.'
}

After the key-generation prompts, success looks like this:

Public key copied to clipboard. Paste it into your Stax Partner Support ticket.

If a script reports that a key already exists, check whether you already use that key with Stax. Reuse a valid public key; if you need to replace a broken key, coordinate the replacement with Stax Partner Support before changing your file-transfer access. If key generation fails, review the reported error and confirm that you can write to your .ssh directory before retrying.

Uploading Files with WinSCP

Follow this section if you, rather than the previous processor, will upload the file. After Stax creates your user instance, use WinSCP to upload the encrypted file to Stax’s SFTP server.

  1. Open the WinSCP client.
  2. Because Amazon S3 manages object timestamps, open Transfer settings and disable Set permissions and Preserve timestamp before transferring files.
  3. In Login > File protocol, choose SFTP.
  4. In Login > Hostname, enter transfer.staxpayments.com.
  5. In Login > Port number, enter 22.
  6. In Login > Username, enter the username Stax sent in your support ticket.
  7. If WinSCP offers to convert your SSH private key to PPK (PuTTY’s private-key file format), choose OK. Keep the converted private key secret as well.
  8. Choose OK to return to Login, then choose Save.
  9. In Save session as site, choose OK to complete your connection setup.
  10. In Login > Tools, choose Preferences.
  11. In Preferences > Transfer, choose Endurance.
  12. Under Preferences > Transfer > Endurance > Enable transfer resume/transfer to temporary filename for, choose Disable.
  13. Upload the encrypted files from your computer to Stax’s remote server.
  14. Confirm that the uploaded files appear in the remote file list and that WinSCP reports no transfer errors. Then submit the import ticket described in Step 5 of the migration process. An upload alone does not confirm the import; Stax Partner Support will confirm completion and provide the mapping/reference file.

Resources


Did this page help you?