cancel
Showing results for 
Search instead for 
Did you mean: 

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

kushal1045
Member
7 REPLIES 7

Hello @kushal1045

 

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

 

Richard

RichardH
Administrator Administrator
Administrator

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,,,,,,,,,,,,,,,,,"}

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.

 

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.

We are making application wherein customer can add card the use of upload card srceen, whilst he need to reserve something then we can display list of playing cards delivered by using him and he will choose any individual and transaction will occure for the product you by just like tischsets.

ghhas333
Member

Ahh finally, I can fix this probelm now. Was facing it from 4 days. Thank you Mates.

Swamp Attack APK

kdkerrrt
Member

  • Charge a customer for an e-commerce order and store the details for future purchases
  • Initiate the first payment of a series of recurring payments
  • Charge a deposit and store the details to charge the full amount later.

The payment methods shown to customers during the checkout process are also included on the PaymentIntent. You can let Stripe pull payment methods from your Dashboard settings or you can list them manually. Regardless of the option you choose, know that the currency passed in the PaymentIntent filters the list of payment methods shown to the customer.

Unless your integration requires a code-based option for offering payment methods, Stripe recommends the automated option. This is because Stripe evaluates the currency, payment method restrictions, and other parameters to determine the list of supported payment methods. Payment methods that increase conversion and that are most relevant to the currency and customer’s location are prioritized. Lower priority payment methods are hidden beneath an overflow menu.

TuqueroIvantckJ
Contributor