#Ludvig-pi-receipt-page
1 messages · Page 1 of 1 (latest)
Hey! It's a legitimate concern for sure
It would be pretty difficult for somebody to ascertain a Payment Intent ID specifically for your account (your secret key can only fetch PIs on your account)
Sure, but how difficult? Difficult as in safe? I'm risking outing my customers orders and details to someone malicious.
Can you recommend me doing this or do you have any other option?
This is a method similar to what we recommend for Checkout Sessions: https://stripe.com/docs/payments/checkout/custom-success-page
I guess if you're concerned about security you could add an auth layer in there to check a session cookie against a value on the PI? Perhaps the email address?
I'll have a read. Yeah an auth layer could work to make things even harder. But I guess if stripe recommends a similar approach I'm assuming it's safe.
Hi! Yes this is the recommended approach.
Thanks a lot for the input from both of you!
Just making sure, this data would be okay to display in your opinion?
"amount": 10200,
"cardBrand": "visa",
"cardLastFour": "4242",
"currency": "eur",
"address": "Teststreet 12",
"city": "Berlin",
"email": "asdasd@asd.asd",
"firstName": "Asd",
"lastName": "Fgh",
"postalCode": "12312",
"shipping": "dhl",
"status": "succeeded"