I am not sure which API I should use. Let me explain what I am trying to do. I have a site that uses WordPress and I purchased a theme that included a shopping cart. I tested it with Authorize.net and it works. The company who developed it is no longer available. It stores the customer's info such as name, card type, expiration date and last 4 digits of card and other fields. Now my client wants to retrieve the credit card number. Just because of this I have to find a new solution. Can I just retrieve the credit card number when I need it? Will the CIM API be the best solution?
I am just trying to layout how I will put it all together. I assume I can allow it to store the basic user details within WordPress' database and it will also send and store a more complete profile to Authorize.net using the CIM? I have the account management page already so would I just need to code it to pull in the customer's credit card number?
Solved! Go to Solution.
02-15-2013 10:26 AM - edited 02-15-2013 10:27 AM
AuthorizeNETCIM_Test.php is just test code, you should be able to run it and see how it work.
As for the store, you need to code it to use it.
02-19-2013 08:01 AM - edited 02-19-2013 08:03 AM
Warning: require_once(PHPUnit/Framework.php): failed to open stream: No such file or directory in C:\inetpub\wwwroot\your_store\anet_php_sdk\tests\AuthorizeNet_Test_Config.php on line 43 Fatal error: require_once(): Failed opening required 'PHPUnit/Framework.php' (include_path='.;C:\php\pear') in C:\inetpub\wwwroot\your_store\anet_php_sdk\tests\AuthorizeNet_Test_Config.php on line 43
I get this error when I ran AuthorizeNETCIM_Test.php
I ran ".../your_store/your_store/index.php and that worked. I have a test account and was able to log into merchant account and see the transactions.
02-19-2013 09:05 AM - edited 02-19-2013 09:08 AM
read the file
anet_php_samples-1.1.8.zip\samples\anet_php_sdk\tests\README
I ran ".../your_store/your_store/index.php and that worked. I have a test account and was able to log into merchant account and see the transactions.
yes, it should work with AIM by default.
02-19-2013 12:25 PM
It says: On the command line in this folder run: phpunit
I right clicked onthe folder. Ran phpunit and it said phpunit is not a recognized as an internal or external command, operable program or batch file.
02-19-2013 12:37 PM - edited 02-19-2013 12:50 PM
02-19-2013 04:08 PM
Thanks I never thought of searching for it. I am closing this and opening a new thread to help me run this CIM test. I have finally got PEAR and PHPUnit installed.
02-20-2013 07:31 AM