#muhammad-talha-zubair_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1276125850512789536
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi! well you can call https://docs.stripe.com/js/payment_intents/confirm_card_payment#stripe_confirm_card_payment-attached for example if you already attached a PaymentMethod to the intent on the backend(you wouldn't need to use the PaymentElement at all in this case).
How can i confirm the payment then?
Will that be done on the backend itself?
Without sending the client_secret on frontend?
Oh i see. So there will be no element form if payment method is already attached?
Just send the client secret on frontend and it calls the function you mentioned.
yep
it lets the frontend attempt payment on a specific Intent(your backend would include some steps to authenticate that the client contacting you is the browser of the customer who you want to charge, would implement rate limiting to prevent excessive payment attempts, and so on)