Stripe Buy Now + Update field database on success

Hi everyone!
I'm trying to add a buy now button to my site and would like to update a database field if the payment if completed successfully.

I've followed this guide for the buy now element which seems straighforward enough: Creating a Stripe Buy Button

However, I cant work out how to update the database in the event of the payment being completed.

For context: The purchase is for a lead, therefore, I want to mark the lead detail as being available to the customer in their dashboard.

Let me know your thoughts or if I am approaching this the wrong way

If the payment link does not redirect back to your app after purchase, then you will want to use a webhook in order to capture that purchase.

1 Like

Brilliant, thats exactly what I was after.
Had totally missed that functionality. Thank you :slight_smile:

1 Like