Reply
Highlighted
Member
Posts: 5
Registered: ‎10-02-2018

Store card in account with production envirnonment


Hello,

 

Hope you are doing good!

 

I was facing a problem with production mode on sandbox working good.

 

on the coding part, we have used createCustomerPaymentProfileRequest method and they give me error " E00027 This transaction has been declined"

 

we use this method for store credit card information on authorized.net account so user don't need to enter information every time. while we call createCustomerPaymentProfileRequest API we do not passed any amount.

 

Thanks in advance.

 

Thank you,

Kushal

Highlighted
Posts: 2,765
Topics: 57
Kudos: 247
Blog Posts: 67
Registered: ‎12-05-2011

Re: Store card in account with production envirnonment

Hello @kushal1045

 

Can you provide a sample request and response with any sensitive data removed?

 

Richard

Highlighted
Member
Posts: 5
Registered: ‎10-02-2018

Re: Store card in account with production envirnonment

Hello @RichardH

 

Please find the below request and response for the createCustomerPaymentProfileRequest

 

<?xml version="1.0" encoding="utf-8"?>
<createCustomerPaymentProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>65Bxxxxx</name>
<transactionKey>5yf65UgExxxXXXXX</transactionKey>
</merchantAuthentication>
<customerProfileId>15609xxxxx</customerProfileId>
<paymentProfile>
<payment>
<creditCard>
<cardNumber>mycardnumber</cardNumber>
<expirationDate>2022-11</expirationDate>
<cardCode>xxx</cardCode>
</creditCard>
</payment>
<defaultPaymentProfile>false</defaultPaymentProfile>
</paymentProfile>
<validationMode>liveMode</validationMode>
</createCustomerPaymentProfileRequest>

 

response 

{"messages":{"resultCode":"Error","message":{"code":"E00027","text":"There is one or more missing or invalid required fields."}},"validationDirectResponse":"3,1,290,There is one or more missing or invalid required fields.,,P,0,none,Test transaction for ValidateCustomerPaymentProfile.,0.00,CC,auth_only,none,,,,,,,,,,,email@example.com,,,,,,,,,0.00,0.00,0.00,FALSE,none,F68A9C87C1E1472521704EF38C21F647,,,,,,,,,,,,,XXXXXXXX,Visa,,,,,,,,,,,,,,,,,"}

Highlighted
Member
Posts: 5
Registered: ‎10-02-2018

Re: Store card in account with production envirnonment

Hello @RichardH

 

Is there any update on this? 

 

Please let me know if you require any additional information for the same. 

 

Thank you,

Kushal M.

 

Highlighted
Developer
Posts: 30
Registered: ‎11-22-2017

Re: Store card in account with production envirnonment

Hi,

 

Based on the response you provided in the previous comments, it seems that the request you are sending requires address and zip code fields to be provided.

 

For submitting authorization requests for Visa, the address field and the zip code field are required.

 

Kindly include these fields in your request and this error should stop coming.

 

 

Thanks.