#PARAS DOCS - successful payment
1 messages · Page 1 of 1 (latest)
anybody?
Hello looking
I'd recommend you take a look at our Webhooks guide: https://stripe.com/docs/webhooks
That will help you know when a payment has either succeeded or failed
Also this section: https://stripe.com/docs/payments/payment-intents/verifying-status#webhooks
You can do that. Just put the code where you add the data in the database within the block of code indicating the payment is successful in your webhook handler
Basically if you read those 2 docs I linked, it will be more clear to you
yes but there is diffrent plan how i know which plan user selected
You can check within the event data, which will be a PaymentIntent object: https://stripe.com/docs/api/payment_intents/object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.