Copied to clipboard

Flag this post as spam?

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


  • Nalysa 48 posts 269 karma points
    Oct 08, 2020 @ 03:03
    Nalysa
    0

    Missing Order Number for OrderReference

    Hi Matt,

    I use my custom payment gateway and it works perfectly. I can do the payment, receive the callback, and the order was successfully created on Vendr store.

    But apparently I found an issue regarding the checkout flow. When the user do the checkout process, the invoice has been created, but then before the user pay the invoice, if they modify the product in the current cart, the payment would be fail because it can't find the correct order number. The order number is used to return an OrderReference from GetOrderReference method on Payment Provider.

    I think this could happen because as long as the invoice hasn't been paid, the product is still in the shopping cart so that the user can still modify the cart (e.g add another product) and the current order number become null.

    Do you have any workarounds for this?

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Oct 08, 2020 @ 08:26
    Matt Brailsford
    100

    Hi Nalysa,

    This is actually by design as having an order go through a payment gateway should be final and once this has occurred, no changes should be allowed on the order that would change the price. If an order is modified after a transaction is initiated, then the transaction information is cleared and a new order number is assigned. This is required as some payment providers do not allow you to process a payment for the same order number twice.

    It does sound like you may not be using Vendr how it is intended as once an order is placed and been through the payment gateway it should not be possible to modify that order (there may be a bug here if you were actually allowed to modify the order as this shouldn't be possible). The intention of an invoice based payment provider should be to facilitate giving time for the customer to pay, not to be able to modify the order.

    Currently then, if you need to modify an order that is awaiting payment, this order should be canceled and a new order placed with the additional items.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft