Shopping Cart: The Webhook

Thanks to @max_gb and several beers I now have a successfully working cart and payment gateway with Stripe.

Two issues to solve and I think I can call it a success that I thought I had no hope to achieve.

Anyways, the webhook part of Max’s tutorial is a very important step. I have followed the tutorial and in my Stripe dashboard it shows as the webhook was successful.

So that tells me that I have not set up something right on my endpoint. The endpoint doesn’t seem to be pulling the intent and not updating my order record. I am not getting any errors anywhere, the data is just not getting updated.

You haven’t nested the payment_intent variable within the object (ironically called object) which is further nested inside of another object called data.

Have a look at my screenshot above and compare it to yours.

2 Likes

It’s a thing of beauty! Works like a charm.

Max, needs to be promoted to Wappler Ambassador …

One more problem to solve!

2 Likes

What was the other problem?

Just posted it. :wink:

1 Like

That’s true Brad :slight_smile: Done

5 Likes