Tag Archives: credit cards

Authorize.Net API: billToCountry Format

With the Authorize.Net API if you are setting up a customer payment profile or just setting a billing address you need to make sure the format of the country is set correctly. Here is an example: $paymentProfile->billToCountry = ‘USA’; And another variation: $paymentProfile->billToCountry = ‘United States of America’; Authorize.net (auth net) will allow multiple formats of country names for billToCountry and shipToCountry

Posted in Tech Tips, Web Development | Tagged , | Leave a comment

authorize.net getCustomerProfile example

Here’s an example of how to get use getCustomerProfile() with authorize.net: // define your api key and do your include define(‘AUTHORIZENET_API_LOGIN_ID’, ‘xxxxx’); define(‘AUTHORIZENET_TRANSACTION_KEY’, ‘xxxxxxx’); // include the sdk require_once(‘/lib/AuthorizeNet.php’); // now make the request $request = new AuthorizeNetCIM; $response = $request->getCustomerProfile($customerProfileId); You will have a nice XML (or SOAP) response that you can parse and use the data from.

Posted in Tech Tips, Web Development | Tagged , , | Leave a comment