hello everyone, I’m french, excuse me for the bad translation
i need information about using stripe
i know how to set up a payment system by CAPTURE
i also know how to capture the payment
however I would like to get the status of the payment once captured in order to confirm that the transaction was successful but I don’t see how to do it
ps: I use the stripe plugin from bubble.io as well as stripe.js 2 free
thanks in advance for your help
Use webhook in stripe via backend workflow on bubble to get information about sucess payment or other updates.
If you are using stripe bubble plugin check the box in workflow which says show sucess message
is there a simple way to not use the backend workflow because I don’t have a paid subscription on bubble so no backend available
concerning the success message this is insufficient for my needs I would like to obtain the status of the payment in order to save its status in my database and use this status in other workflows
concerning the webhook, I am new to bubble and I have absolutely no idea how to set this up
as said above I use the free stripe.js 2 plugin + the official stripe plugin from bubble
however it should be simple to obtain the status of a successful payment, right?
Then if payment is successful redirect them a different page, if that page loads run a workflow to mark this users payment as sucess,
I may have explained myself badly
in fact, what interests me is to recover the information when the status “not captured”
changes to “successful”
Yea as @siddharth said, that’s a backend workflow for successful payment with webhooks.
Only other thing you can do is setup a polling method to continuously poll a GET call every few seconds for the payment until it says success but if the user leaves the page or closes tab it won’t work. Meaning you’d have to do on login to reverify.
I Would advise against this and just upgrade to use the backend API for webhook method. Free plan only allows 200 db records as is so you’re going to hit cap pretty quickly.
thanks again for your answer,
indeed I see that I am very limited on the free part of bubble.io but for the moment I feel that I am not documented enough and comfortable with this tool to move to a paid version, I will pass the CAP when I launch my first real project.
despite this, I followed your advice and I devoted myself to the study of the plugin design as well as the operation and implementation of WEBHOOK, which allows me to be autonomous today on stripe without using any third-party plugin.
for those who are interested in this despite everything, it is possible to know the status of a payment without going through a backend workflow, directly thanks to a simple workflow, using the stripe api function: Payment Intents. this requires a somewhat complicated setup of custom state as well as a refresh of the web page after the payment capture is made, and we obtain its real status, if the status of the payment changes, we must arrange each time to have an action which allows this refresh of the page in order to have the new status which has changed.