Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mark V 28 posts 158 karma points
    Jul 17, 2020 @ 15:05
    Mark V
    0

    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:

    order.Finalize(amount, charge.Id, PaymentStatus.Authorized);
    

    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

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Jul 17, 2020 @ 15:13
    Matt Brailsford
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft