question

JonathanD avatar image
JonathanD asked

A callback instead of webCheckoutDetails.checkoutReviewReturnUrl

I'm working on an amazon pay integration with an ecommerce platform. When defining webCheckoutDetails it looks like you're required to include a url to be redirected to (checkoutReviewReturnUrl) after the user makes their payment. I tried making the url identical to the current page and that still results in a new page load. What I really want is a callback to be fired instead of a payload. I might be able to intercept the navigation by cancelling it in a

window.onbeforeunload

or something like that but I'm hoping there's a better way. Is there a better way?

Thanks!

amazon payjavascriptbutton
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Vladimir@Amazon avatar image
Vladimir@Amazon answered

Hello, thanks for posting on the forum. I would suggest getting in touch with our Amazon Pay team here who should be able to assist with your matter further.

Regards,

Vladimir


10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.