#Svit-functions-succeeded-payment
1 messages · Page 1 of 1 (latest)
Payment Element?
yes
Gotcha. And you want to track customer data after successful payment?
nah, i have a backend login system, i just need like a request to server "payed" so i can check it in database
Okay you'll want to implement Webhooks here: https://stripe.com/docs/webhooks
Are you familiar/have you taken a look at that before?
Depends on the information you want. You can retrieve the PaymentIntent again on your client after successful payment using: https://stripe.com/docs/js/payment_intents/retrieve_payment_intent
Then pass information to your backend
However, sensitive information won't be returned via that method. If you need all of the info about the PaymentIntent then you would pass the PaymentIntent ID back to your server and retrieve it using https://stripe.com/docs/api/payment_intents/retrieve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Lastly though, I highly recommend Webhooks here.
It is always possible that the customer drops off after successfully paying