Re: Visa Payment Processing authorization api status code 402

leadingyu88
Regular Visitor

Visa Payment Processing authorization api status code 402

Hello,

 

I run the Visa Payment Processing authorization API with mTLS and MLE. 

I got status code 402 in response. Would you please advise how I get status code 200?

 

Are we supposed to have a test card to test Visa Payments Processing authorization API? 
We noticed only test data for settlement in the dashboard.
 
Please kindly advise. Thank you!

 

curl --location --request POST 'https://sandbox.api.visa.com/acs/v3/payments/authorizations' \
--header 'keyId: 1a8682e7-57ea-44f2-84ab-52ff9ad624a3' \
--header 'Authorization: Basic OFZIQk5QVzJLUEtRSkpHN0dMWVMyMUVlR0NRWWgyb2Z1dktCZHQ0Qlo2bDJxQ1BKODpIQVBCTURTNjU1MVEyNElpY3oxQnhIVDUxZG4zOGs0MFM0N01xQmg=' \
--header 'Content-Type: application/json' \
--data-raw '{"encData":"eyJlbmMiOiJBMTI4R0NNIiwiaWF0IjoxNjY1NTA4NzIyNjAwLCJhbGciOiJSU0EtT0FFUC0yNTYiLCJraWQiOiIxYTg2ODJlNy01N2VhLTQ0ZjItODRhYi01MmZmOWFkNjI0YTMifQ.J7Iv-Y7q4qJ0x89AOAlPqYk5R2uG4ArAVQBavK0I2PNN20zEYSZxXKuCHl7wjzsTD6Rc0ASDItxYJLWM5U9mNtioqcaemlopJphO3NdHUcF_fRigVmXhboocQTv5Q7VyXg5P3gTvJA-xuOwBrChy6wmbTHNrSVsN4ToirR0usqmYO3h0SrEiB8rE2_BAhgDBqlawHyWRIgdgbMaE7hKn6GiCAjhbgEe-SVC2ocKccs_NAgp3hsvWRa6lo-XdPRltF4acdDFrr3RIMssG1ibu0eByDUKtJF6N5MVXJQGC6JMnvHEYyPlfFC7ayFcds5KscMlWnxUOKch9_kphC2EeNA.iIcMsIPuMOF6a-Oi.4Lm-LNm7yguDEZYx62Pmy43cmd3OZONAX4g_n7Ojd2reVkSOdhQyCJoR8xbLlf8iu39afznckjhAt8x2y8SyjplymDeLRQR9frO_jkRNuALaW3FWKnb93rYN27vBRTskxCtC617I4B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hAbsfFWIfMX3NZ3Ydcbregs9YDWJIE_ySMs8_O3GYLvqMX7BQZ2IuaPaJLTqkHFElClrjkh7QeYz6P_Eq0OFzhYRD038jdlIPqG9JjqyZVwN3QlFHpiE5RqyaC2PWK_621eH7OQG-GSX99sjVGS_7Ik63ft0olIu2fKcc_1qL1a_aoZh6c4VimsIu0ENlK2dTZIh7iB5WlZh4ENCxiQ15DCn5AkGkU_Yp3AMCRqiET5jI2Xb4zwV9cZMc1ovwRe2stADiBxP6tB8wjNSYaupBeOLvd-KGFLlO-4qSNzxDF5wguDW7BdEBl6YKavsvofESlX82FX7pOBmNx53T9bN-egX6LX585eLjvZUy_Kntf1lSof4Rf7elr3_LkHOedAWZjCZHMweEsf6kAiYK4WcHuslg_3TdVJtd7Cvo6GFBawWDE2cVPQJH6pKUAlt2oml-enwpanLX-ufZ4VtHVfjM5tx4TvshVP-ujC5G6iqdBhHisKFiRpDvcKlyf0zvXYH60vhdYxYQEEI_EjFuJ6slAr2T-HTYRnRQYkhq5zlbCjsEharJp_n2kVz5jqS2G9cuZRVcpBIQ1JRzknHFV01qNgdcOqoSV7.QtAUWRwukl6BSUFDqk_oyw"
}
4 REPLIES 4
I_Doroteo3
Visa Developer Support Specialist

Re: Visa Payment Processing authorization api status code 402

Hi @leadingyu88

 

Please check out the Error Codes for Visa Payments Processing page.

 

You should have test data for the settlement and authorization API under the "Test Data" section, as well as test card data under "Integrated Test Data" for Visa Payments Processing.

 

Thanks, 

Illana

terence
Regular Visitor

Re: Visa Payment Processing authorization api status code 402

Hi @I_Doroteo3 

Could you please tell me how I get "Integrated Test Data".  only settlement Test data shows in my account.

API_Products
Visa Developer Support Specialist

Re: Visa Payment Processing authorization api status code 402

Hi @terence,

 

Please submit your Integrated Visa Payments Processing Test Data request to the email address developer@visa.com and a representative from Visa Developer Support will assist you. 




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

terence
Regular Visitor

Re: Visa Payment Processing authorization api status code 402

Thank you 

I will send