#commander

1 messages · Page 1 of 1 (latest)

sage copperBOT
atomic badger
#

hi! do you mean, how do you call your own code after that point?

generally you don't, since we will redirect to the return_url provided, and on that page that's where you'd do things like show a success message

tall mauve
#

yes.... I just want to call a JS function for loading a spinner... so the user knows, he will be redirect

atomic badger
#

yeah that's not really possible when using this integration! you could start the loading spinner before calling confirmPayment but I don't think that makes sense, since we might need to put a 3D Secure popup on top, though you could test it and see how it looks.
You could also set redirect to "if_required" instead, so that code control does pass back to your code after the confirmPayment promise resolves