Hi, Walter, I think you need a webhook
https://stripe.com/docs/payments/handling-payment-events
Though if you need to use stripe only on the backend side, I recommend using stripe Payment intent to do so you need only to pass the client info and stripe api well return the payment intent id on the return object .
If you need more ino don't hesitate to ask.