#val - payment request

1 messages · Page 1 of 1 (latest)

gray crane
#

What do you mean by payment request?

#

Are you using the PaymentIntents API?

thorny terrace
#

Yeah, we have a hard to reproduce bug where sometimes totals don't match, and instead of proceeding with the order, I would like to close the payment request modal, and show an error to the user in our checkout page. However, I can't figure out a way to close the payment request modal.

#

Just like we can show with paymentRequest.show() is there a method to close?

gray crane
#

I don't believe there's a close method, no. Have you written in to support to report this bug?

thorny terrace
#

Yeah, though it's probably on our side, it's just haven't been able to reproduce correctly, it has happened to users very rarely while an update to payment intent is happening, so was looking for an alternative solution

gray crane
#

Ah ok I see. Yeah, unfortunately there isn't a close method, but you probably can display some sort of error still