Umbraco Commerce checkout error

Hi all,

We’ve got Umbraco 13.7.2 running in Umbraco Cloud, Umbraco Commerce 13 and Stripe payment provider installed and configured.

Testing a subscription order always results in a checkout error page, although the test transaction in Stripe is fine and payment is captured, webhook is showing a 200 OK and no pending webhooks. No errors in the logs around the time that the order is submitted. We never get to the order confirmation page.

I know this sounds really open in terms of what it could be, but we’re struggling to know where to start - any help would be greatly appreciated!

To help diagnose the flow, add logging inside each and every handler that is involved. Add logging on entry and exit point. The Commerce module does a lot that there is no documentation for, so you have to make guesses as to what is happening.

Points to check are,

  • is the payment provider posting back at all?
  • have you set the callback endpoint? - this needs to be setup at the point when the form that submits the transaction request.
  • is your callback function being called with the data you expect? - if so then it is posting back which is good, now does it have what you need?
  • is your callback function returning an OkResult? - this is the way for the process to finish the Commerce part of the process which will Finalize your order. Only then will it navigate to your confirmation page. Any other result may go off to lala land or to your error page.
1 Like

Is the order showing in the Orders section as finalized but in an error state?

If so this generally suggests that the transaction amount returned from Stripe doesn’t match the order amount and so there is a payment inconsistency.

1 Like

Thanks AJ, theses are great pointers - we’ll do that and it’ll hopefully turn up something

Yeah, exactly as you say, Payment Captured status but order status is Error.

We’ll check for price and transaction amount inconsistencies now, thanks Matt

1 Like

Thanks Matt - this was it, a slight discrepancy in the subscription price on Stripe :umbraco-heart:

Excellent. Glad I could help :+1: