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.