#Fire
1 messages ยท Page 1 of 1 (latest)
Hello ๐ As far as I know, they are both independent and occur asynchronously.
I see.
Can you inside an intent, pass the user's email so it can be returned in the webhook once the payment is complete?
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?
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
I believe you can use the --override flag
couldnt find the documentation for that. could you pls refer a link?
stripe trigger --help
couldnt find it
alright will give it a look. Thank you