Visa Checkout (Update Payment Info api)

Solved! Go to solution
suresh
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

2 REPLIES 2
suresh
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

 

suresh
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!