#Fire

1 messages ยท Page 1 of 1 (latest)

tropic trailBOT
long swan
#

Hello ๐Ÿ‘‹ As far as I know, they are both independent and occur asynchronously.

elder knoll
#

What I need is to find a secure way to log a user's payment (whether logged in or not)

#

do you have any best case practice or demo projects for the matter?

long swan
#

Can you inside an intent, pass the user's email so it can be returned in the webhook once the payment is complete?
There are a couple different ways to do that,
1/ One is to create a customer object for the email and pass that in as a parameter
https://stripe.com/docs/api/payment_intents/create#create_payment_intent-customer

2/ The other option is to use metadata to store any key-value pairs
https://stripe.com/docs/api/payment_intents/create#create_payment_intent-metadata

elder knoll
#

Can I test a webhook stripe trigger payment_intent.created with custom fields? (customer, metadata, etc...)

#

for testing purposes

#

@long swan sorry for pinging, dont know if I was supposed to reply to so get notified

long swan
#

I believe you can use the --override flag

elder knoll
#

stripe trigger --help

#

couldnt find it

long swan
#

huh it should be supported

elder knoll
#

alright will give it a look. Thank you