#Ludvig-pi-receipt-page

1 messages · Page 1 of 1 (latest)

hot coral
#

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)

orchid hazel
#

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?

hot coral
#

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?

orchid hazel
#

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.

brisk saffron
#

Hi! Yes this is the recommended approach.

orchid hazel
#

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"