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.