#Lord-Y-paymentintents
1 messages · Page 1 of 1 (latest)
ok
Hey there stepping in for karbi who needs to step away, reading above now
What is your specific concern?
Nobody can call the Stripe API (including modifying metadata) unless they have your secret key
these are server requests
I mean if you make a post to yourdomain.com/api/xxxx/pay with the publishable key
I just want to be sure that stripe will somehow kick this kind of request
this is your own API, which internally interacts with Stripe?
yes
if your customer can induce your server to make requests, and the requests come from your server using your secret key, Stripe wouldn't know whether these are intentional or not. You need to ensure your own API is secure from misuse
not the answer I was expected
from the example
you have a frontend and a backend
from your frontend you can reach your backend as you have to make a post to /pay endpoint example
What front end are you referring to?
Which server are you referring to? You described your own API endpoints, but now saying "your backend" it sounds like you're referring to Stripe's API?
Can you illustrate with a specific example/sequence?
sure
Okay, nevermind. After thinking again, I'll try the checkout session https://stripe.com/docs/payments/accept-a-payment . Thx for your help 🙂
NP!