I’m trying to figure out charging Users.
I’m told to do this on the “Back End” because should something go wrong (ie signal drops out during payment) then payment will still be made because it’s done on the “Back End”. That makes sense…BUT
…the payment is done via Stripe so isn’t it being done on their system so doesn’t need to be done on my app’s “Back End”?
The other thing is that there aren’t any Element Actions available when creating Back End workflows which is a problem because my app makes good use of Custom States to store basic stuff like how many of what product is being ordered and because this isn’t available to the Back End workflows I can’t get basic information to log in the transaction. In fact, I’m told that to do this I need to set up Parameters when I set up the Payment Intention in Stripe but to do this I appear to need to install the API Connector and use “Metadata” from the “JSON payload” which is all too daunting.
When it comes to the Amount to charge, I appear at least to be able to Request Data but this doesn’t work, the reference link goes nowhere and there are no options offered to Request the Data from. This is what I see when I try it…
So, at the moment, I have a button to “Confirm Order and Pay” and when a User clicks it, they’re taken to Stripe’s payment screen via a workflow on the button. A Webhook alerts my app that payment was successful and then I just want to log the order and move on. I’m not sure what I’m doing is very unusual but it seems so horribly complicated. Can anyone help or point me in the right direction or a helpful resource for this or even point me to an example of a payment being taken then the order being logged? I’d be so grateful if they can because I’ve spent 4 days trying to get this far and it’s getting very frustrating.
All the best
Joe