#jakub_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1254740041020997633
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
But it seems that 'confirmPayment' method needs to be called straight away, otherwise it shows error message in UI
Yes correct.
So is there any chance I can do AJAX call before 'confirmPayment'?
What you can do is to use confirmationToken
After creating the confirmation token, you do your validation and then confirm the payment
aha ok, so I'll create confirmationToken instead of calling confirmPayment yeh?
and then I'll make my AJAX call and finally call confirmPayment
yes
ok cool, thanks for help, I'll try that ๐