Visa Developer Community

Highlighted
Helper

Visa Checkout (Update Payment Info api)

Hi there,

 

I am getting a 500 error for the update payment info api that I did. Here is my request object.

{
"updateInfo":{
"OrderInfo":{
"total":224.04,
"currencyCode":"USD",
"subtotal":189.90,
"eventType":"Confirm",
"orderId":"1697400265"
}
}
}

 

Let me know what am I missing here. Based on the VisaCheckout documentation, the payInfo object is optional and is not required.

Please let me know on this as this is very urgent,

 

Thanks

4 REPLIES
Helper

Re: Visa Checkout (Update Payment Info api)

Update:

I modified the request to look like the one in the documentation. See below:

{"updateInfo":[{"OrderInfo":{"total":224.04,"currencyCode":"USD","subtotal":189.90,"eventType":"Confirm","orderId":"1697400265"}}]}

 

Now, I am getting a response of 400(BadRequest) from VisaCheckout.

 

Please help, what am I missing?

Thanks

 

Helper

Re: Visa Checkout (Update Payment Info api)

I figured out the issue myself. 

The letter 'O' was capital in the OrderInfo object in the json. 

I made it to look like orderInfo, and then it worked:

 

{"updateInfo":[{"orderInfo":{"total":224.04,"currencyCode":"USD","subtotal":189.90,"eventType":"Confirm","orderId":"1697400265"}}]}

 

Thanks me lol!

Helper

Re: Visa Checkout (Update Payment Info api)

Request to my question about the payment Visa card smoothly get it digital travel payment card for me.
mdmolla
Helper

Re: Visa Checkout (Update Payment Info api)

Competition to update in my profile
mdmolla