I'm testing ARB flow in Sandbox, it's a 4-step procedure:
1. Get opaque data via Accept.js
2. createTransactionRequest
3. createCustomerProfileFromTransaction
4. ARBCreateSubscriptionRequest
However, I'm having trouble with step 3 (createCustomerProfileFromTransaction). Sent XML:
<?xml version="1.0" encoding="UTF-8"?>
<createCustomerProfileFromTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name><![CDATA[xxxx]]></name>
<transactionKey>xxxx</transactionKey>
</merchantAuthentication>
<clientId><![CDATA[sdk-php-1.9.3]]></clientId>
<transId><![CDATA[1234]]></transId>
<customer>
<description><![CDATA[Customer Profile for transaction 1234]]></description>
</customer>
</createCustomerProfileFromTransactionRequest>
The sandbox server returns Ok with some customer profile id:
<?xml version="1.0" encoding="utf-8"?><createCustomerProfileResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"><messages><resultCode>Ok</resultCode><message><code>I00001</code><text>Successful.</text></message></messages><customerProfileId>1234</customerProfileId><customerPaymentProfileIdList><numericString>1234</numericString></customerPaymentProfileIdList><customerShippingAddressIdList /><validationDirectResponseList /></createCustomerProfileResponse>
However, the 4th call (ARBCreateSubscriptionRequest) kept failing with error E00040 (The record cannot be found.). I have added 20 second delay but it still doesn't work.
I also checked the Customer Information Manager (https://sandbox.authorize.net/UI/themes/sandbox/CustomerProfile/About.aspx) but couldn't find the newly created customer profile...
Is this an issue on the sandbox or am I doing it wrong?
Thank you.
10-31-2017 12:41 AM
Hi @daohoangson2017,
The sequence that you posted should work fine, and I just tested it myself to make sure it works for me. Could you post more detail, like an example of each request and response with the data used to make the request?
10-31-2017 02:22 PM
Hi @Aaron,
Thank you for getting back to me. I have just run the flow again in order to send you the full requests/responses but it works this time. Apparently the Sandbox didn't work properly yesterday.
10-31-2017 05:52 PM