I’m creating a Stripe payment page on another project (I’ve successfully done this before on other projects) but I must be doing something not quite right as Stripe isn’t progressing to the charge stage. It’s a PHP project.
Can anyone let me know the process the Wappler actions go through so I can find the bit I’ve missed? I’m comparing two projects in fine detail and they both look exactly the same but one creates the payment intent and then immediately does a successful charge and the other just does the payment intent and no more.
Comparing the XML within Stripe’s dashboard, the one that works includes this part:
Thanks Ben. Yep, that’s exactly what I’ve done, and did on other projects. I’m stumped as to why Stripe seems to be processing them slightly differently where one site completes the payment fine but another doesn’t.
I’m trying to find out where the "charges" part of the XML comes from as that is the difference.
I had an issue with Stripe where my interface worked perfectly for 2 years and then stopped working for some api keys and not others. It turned out that the stripe api was passing back data in a different format for api keys created after a certain date. That date was some time in autumn last year.
May be worth checking if this is contributing to your issue!
This is a completely new build and I only did the Stripe integration in the last 2-3 weeks and the Stripe account is new, too, so I don’t think it’s going to be the same issue. Thanks for the tip, though.
I’ve redone everything so many times and worked through all the docs and videos but I just cannot see why it’s not doing the charge. It does the payment intent fine.
Create a Payment Intent making sure that there is a value in the two required fields. The amount needs to be in the smallest currency unit (e.g., 100 cents to charge $1.00)
Thanks Ben. Yep, that’s exactly what I’ve got. The secret is returned fine, the payment intent is created, the endpoint executes for the payment intent created action, but the charge isn’t done and the Stripe JSON in the events list doesn’t include the charge part. I’ve contacted Stripe but they couldn’t help so it seems to be specific to how Wappler does things.
Hi @scalaris. Nothing of help. If I do the Test Stripe Webhook then it does all the stages perfectly - payment intent, charge, etc. But any actual purchases (test mode, of course) only do the payment intent part.
Given your description, perhaps you have a standard server connect form, instead of a Stripe Checkout form?
Here is a basic payment intent flow that shows how to have a single purchase (very much the same as Ben’s), using an in-app payment method (as opposed to using Stripe checkout portal). Maybe it will trigger something for you.
I had everything correct except the form which was set as a server connect form rather than a Stripe checkout form. That change and it’s just done a charge.
You wouldn’t believe how many hours I’ve spent staring at it all trying to work out why it wasn’t working.
I’m sure there are many people on this forum who have wanted to kiss @mebeingken after he has so lovingly responded with the perfect answer to their desperate calls for help…