Since OBAS version 4.1.6 you may migrate to Authorize.Net Token.
This article describes the procedure to convert saved credit card details into Authorize.Net CIM tokens.
Install and configure the Authorize.Net CIM payment plug-in.
- Download the attached script to the OBAS container.
Create the credit card data backup of the tables
~# mysqldump aspc --tables plugin_pm > backup_plugin_pm ~# mysqldump ss --tables sstore > backup_sstore
Retrieve the Authorize.NET CIM plug-in ID.
The Authorize.NET CIM plug-in ID can be retrieved from the OBAS database with the following query.
~# hspc-sql -e "select id from plugin where template_id='OP_AnetCIM' and vendor_id=1" +----+ | id | +----+ | 10 | +----+
To get the
Authorize.NET plug-in IDfor the reseller, replace the
Convert credit cards to Authorize Net tokens using the downloaded script migrate_cc_to_anet_token.pl.
# ./migrate_cc_to_anet_token.pl Script for migration credit card to Authorize Net tokens usage: migrate_cc_to_anet_token.pl -p X [-c -d] where options are: -p Authorize Net plugin id configured in OBAS -c Credit Card ID added in OBAS, if skiped all credit card will be migrated -d Delete credit card after migration (without this option card will be disabled)
To migrate all credit cards, only the plug-in ID is required. Use the plug-in ID that was retrieved in step 4.
~# ./migrate_cc_to_anet_token.pl -p PLUGIN_ID
Use the "-c" option 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 this option multiple times.
~# ./migrate_cc_to_anet_token.pl -p PLUGIN_ID -c 1 -c 2 -c 3
Specify the "-d" option to delete credit card data after the migration. If you don't specify this option, credit cards will be disabled.
~# ./migrate_cc_to_anet_token.pl -p PLUGIN_ID -d
- Remove the backup once you make sure that the migration completed successfully.