We've managed to get the orders finalising just using code but sometimes it registers in the backoffice with the status error instead of new and then sends an error order email automatically.
The order comes through just fine, and the details look okay...
We're on the latest version of vendr (1.2.6) and we're manually collecting the payment using the stripe API, then finalising the transaction using that:
The order is using the Stripe one time payment method but finalised using code so I can only think that we're missing something that the default process needs
Do you have the Stripe webhook setup per chance? If so, this could be your problem as with the default payment provider, it's the callback that finalizes the order, not the checkout flow and so it could be you have two things finalizing the order and one of them isn't happy.
Order Error when finalise transaction with code
Hey,
We've managed to get the orders finalising just using code but sometimes it registers in the backoffice with the status error instead of new and then sends an error order email automatically.
The order comes through just fine, and the details look okay...
We're on the latest version of vendr (1.2.6) and we're manually collecting the payment using the stripe API, then finalising the transaction using that:
The order is using the Stripe one time payment method but finalised using code so I can only think that we're missing something that the default process needs
Cheers, Mark V
Do you have the Stripe webhook setup per chance? If so, this could be your problem as with the default payment provider, it's the callback that finalizes the order, not the checkout flow and so it could be you have two things finalizing the order and one of them isn't happy.
Might be worth pulling the source of the Stripe payment provider from here https://github.com/vendrhub/vendr-payment-provider-stripe and debugging into to see if it's the webhook triggering and recording an error.
/Matt
is working on a reply...