Article ID: 112270, created on Sep 13, 2011, last review on Jul 19, 2016

  • Applies to:
  • Odin Business Automation Standard

Resolution

Since OBAS version 4.1.6 you may migrate to Sage Pay Token.

This article describes conversion procedure of the saved credit cards details into SagePay tokens.

  1. Reconfigure SagePay plug-in:

    • Set API version equals 2.23
    • add "SagePay token method" to the list of allowed payment method types.
  2. Download attached script to the OBAS container.
  3. Create credit cards data backup of the tables aspc.plugin_pm and ss.sstore

    ~# mysqldump aspc --tables plugin_pm > backup_plugin_pm
    ~# mysqldump ss --tables sstore > backup_sstore
    
  4. Migrate credit cards to SagePay tokens using the downloaded script migrate_cc_to_sagepay_token.pl:

    ~# ./migrate_cc_to_sagepay_token.pl
    Script for migration credit card to SagePay tokens
    usage: migrate_cc_to_sagepay_token.pl -s [-c -d]
    where options are:
            -s   Start migrate
            -c   Credit Card ID added in OBAS, if skiped all credit card will be migrated
            -d   Delete credit card after migration (without this option cards will be disabled)
    

    To migrate all credit cards only option "-s" is required:

    ~# ./migrate_cc_to_sagepay_token.pl -s
    

    Use option "-c" to specify the list of credit card ids. If this option is not specified all credit cards will be migrated. To specify several credit card IDs use option -c multiple times.

    ~# ./migrate_cc_to_sagepay_token.pl -s -c 1 -c 2 -c 3
    

    Specify the "-d" option to delete credit card data after the migration. Without specifying this option credit cards will be disabled.

    ~# ./migrate_cc_to_sagepay_token.pl -s -d
    
  5. Remove the backup once you will make sure that migration completed successfully.

Additional information

Is it possible to configure the Sage Pay plug-in so that credit card data is not stored in OBAS?

Search Words

sagepay token

Attachments

400e18f6ede9f8be5575a475d2d6b0a6 caea8340e2d186a540518d08602aa065

Email subscription for changes to this article
Save as PDF