We are using the PHP SDK to capture customers payment cards and bank accounts and charge them on a recurring schedule. Today's payments could not be processed, and the error returned was "customer not found"
We have a test suite for the API which was running all green recently, but is now failing on the charge API method with the error message specific above E00040 - Customer Profile ID or Customer Payment Profile ID not found.
Checking the customer creation response and the charge request, it is using the same exact customer profile and payment profile ID, and same account credentials.
Here are the dumps of all the requests / responses on the sandbox account (live server uses the same code) -
Customer creation response -
object(net\authorize\api\contract\v1\CreateCustomerProfileResponse)#190 (7) { ["customerProfileId":"net\authorize\api\contract\v1\CreateCustomerProfileResponse":private] => string(10) "1500329457" ["customerPaymentProfileIdList":"net\authorize\api\contract\v1\CreateCustomerProfileResponse":private] => array(1) { [0] => string(10) "1500213062" } ["customerShippingAddressIdList":"net\authorize\api\contract\v1\CreateCustomerProfileResponse":private] => NULL ["validationDirectResponseList":"net\authorize\api\contract\v1\CreateCustomerProfileResponse":private] => array(1) { [0] => string(311) "1,1,1,This transaction has been approved.,,P,40001397677,none,Test transaction for ValidateCustomerPaymentProfile.,0.01,ECHECK,auth_only,2,Eran,Galperin,,1819 Chalcedony,San Diego,CA,92109,US,,,,,,,,,,,,0.00,0.00,0.00,FALSE,none,82D4748FEADBBA48DEEC9254F7DF4D37,,,,,,,,,,,,,XXXX5678,Bank Account,,,,,,,,,,,,,,,," } ["refId":"net\authorize\api\contract\v1\ANetApiResponseType":private] => string(13) "ref1470065388" ["messages":"net\authorize\api\contract\v1\ANetApiResponseType":private] => object(net\authorize\api\contract\v1\MessagesType)#302 (2) { ["resultCode":"net\authorize\api\contract\v1\MessagesType":private] => string(2) "Ok" ["message":"net\authorize\api\contract\v1\MessagesType":private] => array(1) { [0] => object(net\authorize\api\contract\v1\MessagesType\MessageAType)#320 (2) { ["code":"net\authorize\api\contract\v1\MessagesType\MessageAType":private] => string(6) "I00001" ["text":"net\authorize\api\contract\v1\MessagesType\MessageAType":private] => string(11) "Successful." } } } ["sessionToken":"net\authorize\api\contract\v1\ANetApiResponseType":private] => NULL }
Charge request -
object(net\authorize\api\contract\v1\CreateTransactionRequest)#141 (3) { ["transactionRequest":"net\authorize\api\contract\v1\CreateTransactionRequest":private] => object(net\authorize\api\contract\v1\TransactionRequestType)#302 (26) { ["transactionType":"net\authorize\api\contract\v1\TransactionRequestType":private] => string(22) "authCaptureTransaction" ["amount":"net\authorize\api\contract\v1\TransactionRequestType":private] => int(29) ["currencyCode":"net\authorize\api\contract\v1\TransactionRequestType":private] => string(3) "USD" ["payment":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL ["profile":"net\authorize\api\contract\v1\TransactionRequestType":private] => object(net\authorize\api\contract\v1\CustomerProfilePaymentType)#320 (4) { ["createProfile":"net\authorize\api\contract\v1\CustomerProfilePaymentType":private] => NULL ["customerProfileId":"net\authorize\api\contract\v1\CustomerProfilePaymentType":private] => string(10) "1500329457" ["paymentProfile":"net\authorize\api\contract\v1\CustomerProfilePaymentType":private] => object(net\authorize\api\contract\v1\PaymentProfileType)#106 (2) { ["paymentProfileId":"net\authorize\api\contract\v1\PaymentProfileType":private] => string(10) "1500213062" ["cardCode":"net\authorize\api\contract\v1\PaymentProfileType":private] => NULL } ["shippingProfileId":"net\authorize\api\contract\v1\CustomerProfilePaymentType":private] => NULL } ["solution":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL ["callId":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL ["authCode":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL ["refTransId":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL ["splitTenderId":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL ["order":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL ["lineItems":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL ["tax":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL ["duty":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL ["shipping":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL ["taxExempt":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL ["poNumber":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL ["customer":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL ["billTo":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL ["shipTo":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL ["customerIP":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL ["cardholderAuthentication":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL ["retail":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL ["employeeId":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL ["transactionSettings":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL ["userFields":"net\authorize\api\contract\v1\TransactionRequestType":private] => NULL } ["merchantAuthentication":"net\authorize\api\contract\v1\ANetApiRequestType":private] => object(net\authorize\api\contract\v1\MerchantAuthenticationType)#86 (7) { ["name":"net\authorize\api\contract\v1\MerchantAuthenticationType":private] => string(8) "77y**" ["transactionKey":"net\authorize\api\contract\v1\MerchantAuthenticationType":private] => string(16) "** ["sessionToken":"net\authorize\api\contract\v1\MerchantAuthenticationType":private] => NULL ["password":"net\authorize\api\contract\v1\MerchantAuthenticationType":private] => NULL ["impersonationAuthentication":"net\authorize\api\contract\v1\MerchantAuthenticationType":private] => NULL ["fingerPrint":"net\authorize\api\contract\v1\MerchantAuthenticationType":private] => NULL ["mobileDeviceId":"net\authorize\api\contract\v1\MerchantAuthenticationType":private] => NULL } ["refId":"net\authorize\api\contract\v1\ANetApiRequestType":private] => string(13) "ref1470065391" }
Charge response -
object(net\authorize\api\contract\v1\CreateTransactionResponse)#240 (5) { ["transactionResponse":"net\authorize\api\contract\v1\CreateTransactionResponse":private] => object(net\authorize\api\contract\v1\TransactionResponseType)#119 (20) { ["responseCode":"net\authorize\api\contract\v1\TransactionResponseType":private] => NULL ["rawResponseCode":"net\authorize\api\contract\v1\TransactionResponseType":private] => NULL ["authCode":"net\authorize\api\contract\v1\TransactionResponseType":private] => NULL ["avsResultCode":"net\authorize\api\contract\v1\TransactionResponseType":private] => NULL ["cvvResultCode":"net\authorize\api\contract\v1\TransactionResponseType":private] => NULL ["cavvResultCode":"net\authorize\api\contract\v1\TransactionResponseType":private] => NULL ["transId":"net\authorize\api\contract\v1\TransactionResponseType":private] => NULL ["refTransID":"net\authorize\api\contract\v1\TransactionResponseType":private] => NULL ["transHash":"net\authorize\api\contract\v1\TransactionResponseType":private] => NULL ["testRequest":"net\authorize\api\contract\v1\TransactionResponseType":private] => NULL ["accountNumber":"net\authorize\api\contract\v1\TransactionResponseType":private] => NULL ["accountType":"net\authorize\api\contract\v1\TransactionResponseType":private] => NULL ["splitTenderId":"net\authorize\api\contract\v1\TransactionResponseType":private] => NULL ["prePaidCard":"net\authorize\api\contract\v1\TransactionResponseType":private] => NULL ["messages":"net\authorize\api\contract\v1\TransactionResponseType":private] => NULL ["errors":"net\authorize\api\contract\v1\TransactionResponseType":private] => NULL ["splitTenderPayments":"net\authorize\api\contract\v1\TransactionResponseType":private] => NULL ["userFields":"net\authorize\api\contract\v1\TransactionResponseType":private] => NULL ["shipTo":"net\authorize\api\contract\v1\TransactionResponseType":private] => NULL ["secureAcceptance":"net\authorize\api\contract\v1\TransactionResponseType":private] => NULL } ["profileResponse":"net\authorize\api\contract\v1\CreateTransactionResponse":private] => NULL ["refId":"net\authorize\api\contract\v1\ANetApiResponseType":private] => string(13) "ref1470065391" ["messages":"net\authorize\api\contract\v1\ANetApiResponseType":private] => object(net\authorize\api\contract\v1\MessagesType)#113 (2) { ["resultCode":"net\authorize\api\contract\v1\MessagesType":private] => string(5) "Error" ["message":"net\authorize\api\contract\v1\MessagesType":private] => array(1) { [0] => object(net\authorize\api\contract\v1\MessagesType\MessageAType)#185 (2) { ["code":"net\authorize\api\contract\v1\MessagesType\MessageAType":private] => string(6) "E00040" ["text":"net\authorize\api\contract\v1\MessagesType\MessageAType":private] => string(61) "Customer Profile ID or Customer Payment Profile ID not found." } } } ["sessionToken":"net\authorize\api\contract\v1\ANetApiResponseType":private] => NULL }
Has there been any API changes recently? Any help would be greatly appreciated - we have customers that currently cannot use their accounts.
Hello @erangalp
I've reported your issue to the product team for analysis.
Which version of the PHP SDK are you using?
Since this affects production accounts, have you contacted customer support?
I'd recommend subscribing to this topic so that you'll be alerted via email if there are updates. To subscribe, click Topic Options at the top of this thread and then select Subscribe. You'll then receive an email once anyone replies to your post.
Thanks,
Richard
08-01-2016 10:34 AM
Hi Richard,
I just upgraded to the latest SDK version via composer (1.8.9). Turns out the problem on production stemmed from something else, and the we were thrown off by it not working on the sandbox as well. Right now it's working on the production, but sandbox still gives returns this error, which makes it hard to test.
08-01-2016 11:13 AM
I noticed above the transaction was for eCheck.Net. Do you get the same results for a card transaction?
08-01-2016 11:15 AM
Yes, same results for credit-card transactions.
08-01-2016 02:48 PM
Hello @erangalp
We're wondering if you retry the same profile that failed earlier today if it still has the issue or if it works if you delay between create profile and charge a profile.
Richard
08-01-2016 02:57 PM