#muhammad-talha-zubair_api

1 messages ¡ Page 1 of 1 (latest)

tropic sonnetBOT
#

👋 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.

dusty kelp
royal quarry
#

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.

dusty kelp
#

yep

royal quarry
#

Is it secure to do this?

#

I mean what is the use of client_secret then ?

dusty kelp
#

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)

royal quarry
#

ok

#

That is helpful