Migrate customer payment sources using PayDock

Migrate customer payment sources using PayDock

Written by Kate
Last update: Wednesday, Aug 08, 2018

By using PayDock Vault Tokens to store customer card details (i.e credit card number, ccv, expiry date..) PayDock customers can manage their business and relationships with payment service providers efficiently. 

Core Principles

  1. A Payment Source contains the Gateway_id and card details/vault_token.
  2. Vault Tokens are not necessarily associated with a Customer or Gateway.
  3. Customers can have Payment Sources created and attached. (These may/may not be generated from by a Vault Token i.e. PayPal ID or where Vault is not enabled)
  4. Vault Tokens can be used to create or update Payment Sources for Customers.
  5. The PayDock API will enable new Payment Sources to be created from Vault Tokens targeting the preferred service. 

Request Flow

Following is one possible example of how to use the PayDock API to migrate customer payment sources.

  1. Get targeted Customer list with desired parameters.  (For example, "gateway_id".)
  2. Retrieve list of Vault Tokens associated
  3. Generate a new payment source for your targeted Customers referencing their Payment Source Vault Token. A simple API POST to /v1/customer/{id} example is
    {
        "payment_source": {
            "vault_token":"1234567890",
            "gateway_id": "1234567890"
        }
    }
     
     
    This will generate a new payment source, targeting the selected service.

Important Notes:

User guides

Step by step how tos

25 articles in this category.
Written by Omar Najjar, Rob Lincolne, Kate and 1 other.