You have no items in your shopping cart.

Saturday, May 8, 2021 5:27:30 AM

Issue processing Giftcards (Nopcommerce 4.20)

Avatar

Posted: 4 months ago

#11322 Quote

MattHobson1968

Posted: 4 months ago

#11322 Quote
We are getting the error:
Object reference not set to an instance of an object.

Whilst trying to run giftcards through the Square Hosted Checkout. I have included details of the error log showing one of the offending transactions. We have tried this through your PayPal solution and that works without issue. Any help or advice would be welcomed.

Regards
Matt Hobson


2020.12.09 14:37:10:7298*******
SquarePaymentFlowProcessor. PostProcessPayment. order.Id=11460
2020.12.09 14:37:10:7465*******
CreateCheckoutUrl.start
2020.12.09 14:37:10:7471*******
Order Id=11460
       orderTotal=50.00
       IgnoreOrderItems=false
       orderItem. orderItem.Product.Name='£20 Electronic Gift Card', Quantity=1, roundedPrice=20.00, UnitPriceInclTax=20.00, DiscountAmountInclTax=0
       orderItem. orderItem.Product.Name='£30 Electronic Gift Card', Quantity=1, roundedPrice=30.00, UnitPriceInclTax=30.00, DiscountAmountInclTax=0
=>CreateOrderRequest
     Name='£20 Electronic Gift Card', Quantity=1, BasePriceMoney=class Money {
  Amount: 2000
  Currency: GBP
}

     Name='£30 Electronic Gift Card', Quantity=1, BasePriceMoney=class Money {
  Amount: 3000
  Currency: GBP
}


2020.12.09 14:37:10:7475*******
CreateCheckoutUrl. createOrderRequest.ToJson()={
  "idempotency_key": "e2377d41-f473-4bd5-a0b5-b1e111ca9b73",
  "reference_id": "ee36d88f-fa77-449c-9cc3-9398f5dc3dbf",
  "line_items": [
    {
      "name": "£20 Electronic Gift Card",
      "quantity": "1",
      "base_price_money": {
        "amount": 2000,
        "currency": "GBP"
      },
      "discounts": []
    },
    {
      "name": "£30 Electronic Gift Card",
      "quantity": "1",
      "base_price_money": {
        "amount": 3000,
        "currency": "GBP"
      },
      "discounts": []
    }
  ],
  "discounts": []
}
2020.12.09 14:37:10:8756*******
Error. SquarePaymentFlowProcessor. PostProcessPayment. order.Id=11460, errorMessage=Object reference not set to an instance of an object.
Avatar

Posted: 4 months ago

#11323 Quote

Support

Posted: 4 months ago

#11323 Quote
I can't duplicate this issue.
1. Download the last release of the plugin and upgrade it. Try to pay.
2. What nopcommerce version do you use?
Avatar

Posted: 4 months ago

#11324 Quote

MattHobson1968

Posted: 4 months ago

#11324 Quote
We are using NopCommerce 4.20 and can I download the standard plugin (used for trials) and then use our licence key to activate it ?
Avatar

Posted: 4 months ago

#11325 Quote

Support

Posted: 4 months ago

#11325 Quote
Yes,
Try the last release and write to me about the result.

Did you enabled or disable this parameter 'Shipping enabled' for your Gift card?
Avatar

Posted: 4 months ago

#11326 Quote

MattHobson1968

Posted: 4 months ago

#11326 Quote
The Shipping Enabled Checkbox is unchecked.
It worked fine though through your PayPal payment method though.
I will update the plugin once the website is quiet as its very busy at this time of the year.
Avatar

Posted: 4 months ago

#11329 Quote

Support

Posted: 4 months ago

#11329 Quote
Ok, write to me about the result please.
I checked the last release of the plugin with Gift Card without shipping and I didn't see any issues.

Powered by nopCommerce

Copyright © 2019 FoxNetSoft. All rights reserved