You have no items in your shopping cart.

Saturday, November 23, 2024 1:05:05 PM

Bug when order created after payment, money taken from account but no order !

Posted: 4 years ago

#11113 Quote

MattHobson1968

Posted: 4 years ago

#11113 Quote
It appears that the shopping cart gets emptied before the order is created but money is taken from the persons bank account and no order created.

Details from the error log.
2020.04.24 04:24:21:5236*******
CreateCheckoutUrl.start
2020.04.24 04:24:21:8519*******
Shopping cart
       orderTotal=class Money {
  Amount: 4154
  Currency: GBP
}

       IgnoreOrderItems=false
       orderItem. orderItem.Product.Name='Essentials Meat Selection Pack', Quantity=1, priceItem=class Money {
  Amount: 1950
  Currency: GBP
}
, roundedDiscount=0
       orderItem. orderItem.Product.Name='Topside of Beef', Quantity=1, priceItem=class Money {
  Amount: 1540
  Currency: GBP
}
, roundedDiscount=3.85
       orderItem. orderItem.Product.Name='Pastrami (200g)', Quantity=1, priceItem=class Money {
  Amount: 449
  Currency: GBP
}
, roundedDiscount=0
       Shipping fee. priceItem=class Money {
  Amount: 600
  Currency: GBP
}

=>CreateOrderRequest
     Name='Essentials Meat Selection Pack', Quantity=1, BasePriceMoney=class Money {
  Amount: 1950
  Currency: GBP
}

     Name='Topside of Beef', Quantity=1, BasePriceMoney=class Money {
  Amount: 1540
  Currency: GBP
}

         -> discount Name='Discount', AmountMoney=class Money {
  Amount: 385
  Currency: GBP
}
, Percentage=
     Name='Pastrami (200g)', Quantity=1, BasePriceMoney=class Money {
  Amount: 449
  Currency: GBP
}

     Name='Shipping fee', Quantity=1, BasePriceMoney=class Money {
  Amount: 600
  Currency: GBP
}


2020.04.24 04:24:22:0575*******
CreateCheckoutUrl. createOrderRequest.ToJson()={
  "idempotency_key": "e33b2616-fde5-4511-9c48-c709e0025be6",
  "reference_id": "e33b2616-fde5-4511-9c48-c709e0025be6",
  "line_items": [
    {
      "name": "Essentials Meat Selection Pack",
      "quantity": "1",
      "base_price_money": {
        "amount": 1950,
        "currency": "GBP"
      },
      "discounts": []
    },
    {
      "name": "Topside of Beef",
      "quantity": "1",
      "base_price_money": {
        "amount": 1540,
        "currency": "GBP"
      },
      "discounts": [
        {
          "name": "Discount",
          "amount_money": {
            "amount": 385,
            "currency": "GBP"
          }
        }
      ]
    },
    {
      "name": "Pastrami (200g)",
      "quantity": "1",
      "base_price_money": {
        "amount": 449,
        "currency": "GBP"
      },
      "discounts": []
    },
    {
      "name": "Shipping fee",
      "quantity": "1",
      "base_price_money": {
        "amount": 600,
        "currency": "GBP"
      }
    }
  ],
  "discounts": []
}
2020.04.24 04:24:22:0905*******
CreateCheckoutUrl. shippingAddress.ToJson()={
  "address_line_1": "xxx Charles Street",
  "locality": "Hinckley",
  "postal_code": "LE10 xxx",
  "country": "GB",
  "first_name": "xxxx",
  "last_name": "xxxxxxx"
}
2020.04.24 04:24:22:0955*******
CreateCheckoutUrl. redirectUrl=https://thecountryvictualler.co.uk/plugins/squarepaymentflowpayment/confirmpage
2020.04.24 04:26:56:6484*******
ValidateReplay. CheckoutId=CBASEABcj2TlNsjTapIPhrtmNUE, OrderId=, ReferenceId=e33b2616-fde5-4511-9c48-c709e0025be6, TransactionId=ZAMrFK4erxkPKi8PB79MQ7CXn0QZY
2020.04.24 04:26:58:1602*******
ValidateReplay. transaction.ToJson()={
  "id": "ZAMrFK4erxkPKi8PB79MQ7CXn0QZY",
  "location_id": "FBC7P6PNJF0M2",
  "created_at": "2020-04-24T03:26:55Z",
  "tenders": [
    {
      "id": "BWvkBwoefpJFF6rqK4GxlXpGuaB",
      "location_id": "FBC7P6PNJF0M2",
      "transaction_id": "ZAMrFK4erxkPKi8PB79MQ7CXn0QZY",
      "created_at": "2020-04-24T03:26:55Z",
      "note": "Online Transaction",
      "amount_money": {
        "amount": 4154,
        "currency": "GBP"
      },
      "processing_fee_money": {
        "amount": 0,
        "currency": "GBP"
      },
      "customer_id": "NKG74RQ9SX51Z3WVAN1YEC2HKG",
      "type": "CARD",
      "card_details": {
        "sta

Posted: 4 years ago

#11114 Quote

MattHobson1968

Posted: 4 years ago

#11114 Quote
tus": "CAPTURED",
        "card": {
          "card_brand": "VISA",
          "last_4": "7730",
          "fingerprint": "sq-1-bIEbjql_Vwr4N3gxzZ4XXQgIBeUMjMBWII4j6j98iB4wMTCWmrYslw_sag6FCtaYBw"
        },
        "entry_method": "KEYED"
      }
    }
  ],
  "reference_id": "e33b2616-fde5-4511-9c48-c709e0025be6",
  "product": "EXTERNAL_API",
  "order_id": "ZAMrFK4erxkPKi8PB79MQ7CXn0QZY"
}
2020.04.24 04:26:58:1689*******
CreateOrder.
2020.04.24 04:26:58:1852*******
Errors. ConfirmPage
   Error. Empty shopping cart.

Posted: 4 years ago

#11117 Quote

Support

Posted: 4 years ago

#11117 Quote
I wrote in other post that I think that the problem is in rounding.

1. What rounding in nopcommerce do you use ?
2. What primary currency do you use, maybe you use multiple currencies?

Posted: 4 years ago

#11119 Quote

MattHobson1968

Posted: 4 years ago

#11119 Quote
We have the setting of
shoppingcartsettings.roundpricesduringcalculation = True and the currency is GBP (Pounds Sterling)

Do you suggest I change this to false ? As I have changed the system to place the order before payment is asked for and so far no more Empty cart issues... (Fingers crossed)

Kind Regards
Matt Hobson

Posted: 4 years ago

#11121 Quote

Support

Posted: 4 years ago

#11121 Quote
>the currency is GBP (Pounds Sterling)

Do you use one currency in nop store?

Posted: 4 years ago

#11122 Quote

MattHobson1968

Posted: 4 years ago

#11122 Quote
Yes, its a single currency store. GBP

Posted: 4 years ago

#11123 Quote

Support

Posted: 4 years ago

#11123 Quote
Can you try to download the last release of plugin and try to do a payment?

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved