I am using the latest SDK in php for CIM transaction, I created a customerProfileId, customerPaymentProfileId and customerShippingAddressId.
I am able to generate all the three fileds but when I tries to create a transaction using my sandbox account(LIVE MODE) , in response I got “[error_message] => Error connecting to AuthorizeNet”. I checked the AuthorizeNetRequest.php and $VERIFY_PEER is set to false.
I searched for the answer and most of the people says its from Sandbox server end.
Here is my code which I am using for making a transaction:
$transaction1 = new AuthorizeNetTransaction;
$transaction1->amount = "25";
$transaction1->customerProfileId ="35898569";
$transaction1->customerPaymentProfileId = "32449285";
$transaction1->customerShippingAddressId = "33982378";
$lineItem = new AuthorizeNetLineItem;
$lineItem->itemId = "25";
$lineItem->name = "my prod";
$lineItem->description = "dfsdfsd ";
$lineItem->quantity = "1";
$lineItem->unitPrice = "25";
$lineItem->taxable = "false";
$transaction1->lineItems[] = $lineItem;
$request1 = new AuthorizeNetCIM;
$response1 = $request1->createCustomerProfileTransaction("AuthCapture", $transaction1);
$transactionResponse1 = $response1->getTransactionResponse();
If I set Sandbox TEST Mode on then I get “[E00009] The payment gateway account is in Test Mode. The request cannot be processed.”
It is very important for to resolve this issue as I am having a deadline set for Monday. I would realy appreciate any help if you can.
Solved! Go to Solution.
06-19-2015 04:07 AM - edited 06-19-2015 04:11 AM