Double gift card created on order


  • Default avatar
    daniel11    
     8 years ago
    0

    We had a customer who ordered a gift card and during their payment process had a payment error which caused a double confirmed to come into the payment plugin.

    This in turn caused 2 gift certificates to be created and sent to them, both of which are connected to the same order id. Obviously it is not desirable that a double confirm comes into the payment plugin, but more alarming is that it is possible for 2 working gift cards to be created.

    Can we get a fix in AWO to prevent the possibility of double gift cards.
  • Your avatar
    seyi    
     8 years ago
    0

    Hello,

    AwoCoupon checks the order_id and verifies it does not have a gift certificate before creating one. If 2 gift certificates where created then at the time they were tested by AwoCoupon neither was created. This has to be fixed on the payment or even screen level.
  • Default avatar
    daniel11    
     8 years ago
    0

    Any hints or thoughts on how this is possible then? If it is checking the order id then it should be impossible, but it happened. Does that mean that there is a few millisecond window after the order is confirmed and before the coupon is written to the database where the system is vulnerable?
  • Your avatar
    seyi    
     8 years ago
    0

    Hello,

    Not sure I really understand how this happened. Did the customer double click the confirm button causing 2 processes to run? If so, then disabling the confirm button after the first click should fix it.