You have no items in your shopping cart.

Monday, June 1, 2020 11:22:48 AM

Bug when payment calculated is different between NopCommerce and Paypal

Avatar

Posted: 26 days ago

#11112 Quote

MattHobson1968

Posted: 26 days ago

#11112 Quote
It appears that there is a difference in payment calculations which results in payment being taken by Paypal but no order being placed in nopcommerce.
Log level Warning
Short message  
Error. Your order total was changed. Old amount = 77.69, new amount = 77.68.
Full message  
IP address  
92.17.153.113
Customer  
Page URL  
https://thecountryvictualler.co.uk/paymentpaypalstandardpro/confirmorder?paymentId=PAYID-L2XJEII8DL723238U264054T&token=EC-1YL842427L5622900&PayerID=EZR7V4V4HMA7Q
Referrer URL  
https://www.paypal.com/webapps/hermes?flow=1-P&ulReturn=true&token=EC-1YL842427L5622900&country.x=GB&locale.x=en_GB
Created on  
5/3/2020 10:43:25 AM

This is the details from the debug logging within the plugin.
2020.05.03 10:43:24:5046*******
PayPalStandardProPayment. ConfirmOrder. paymentId=PAYID-L2XJEII8DL723238U264054T, token=EC-1YL842427L5622900, PayerID=EZR7V4V4HMA7Q
2020.05.03 10:43:25:0343*******
PayPalService. GetPayment. payment.json={"id":"PAYID-L2XJEII8DL723238U264054T","intent":"sale","payer":{"payment_method":"paypal","status":"VERIFIED","payer_info":{"email":"mark@markmather.co.uk","first_name":"xxxxx","last_name":"xxxx","payer_id":"EZR7V4V4HMA7Q","country_code":"GB","shipping_address":{"recipient_name":" xxxxxxxx","line1":"xx All Saints Close","city":"London","country_code":"GB","postal_code":"SW8 xxx","state":""}}},"cart":"1YL842427L5622900","transactions":[{"related_resources":[],"amount":{"currency":"GBP","total":"77.69","details":{"subtotal":"71.69","shipping":"5.00","tax":"1.00"}},"payee":{"email":"accounts@maloneys.net","merchant_id":"AHUSRTRMB59GL"},"description":"Country Victualler Web Order","invoice_number":"b714f5c2-dc5c-41f8-9ed7-fe7b1a830255","item_list":{"items":[{"quantity":"2","name":"Bake at Home Chicken & Wild Mushroom Purse (270g)","price":"5.95","currency":"GBP","sku":"FZPUWM"},{"quantity":"2","name":"Bake at Home - Filled Pastry Purses  Mediterranean Vegetable and Feta  (2 x 270g)","price":"5.95","currency":"GBP","sku":"FZPUMVF"},{"quantity":"1","name":"Trio of Dry Cured Bacon","price":"10.00","currency":"GBP","sku":"RBCBSM250, RBCBSM250, RBCSTSM250"},{"quantity":"2","name":"Chicken Thighs (Boneless) 1Kg","price":"5.00","currency":"GBP","sku":"RCHKTH1KG"},{"quantity":"1","name":"Duck Liver & Gammon Terrine with Vine Fruits","price":"5.75","currency":"GBP","sku":"CVDLT2"},{"quantity":"1","name":"Vintage Red Fox (450g)","price":"7.50","currency":"GBP","sku":"BICHRF"},{"quantity":"1","name":"Alderton Ham?  (Sliced)","price":"5.95","currency":"GBP","sku":"CMHA200"},{"quantity":"2","name":"Red Fox Cheese and Onion Pasty  (Individual) (250g)","price":"2.85","currency":"GBP","sku":"BACOP"},{"quantity":"1","name":"Sirloin Steak","price":"5.25","currency":"GBP","sku":"RBESS"},{"quantity":"2","name":"Gourmet Traditional Scotch Egg (200g)","price":"2.85","currency":"GBP","sku":"CMSE"},{"quantity":"1","name":"Personalised Message Check Box (No)","price":"0.00","currency":"GBP"},{"quantity":"1","name":"Discount for the subtotal of order","price":"-7.96","currency":"GBP"}],"shipping_address":{"recipient_name":" xxxx xxxxxxx","line1":"xxx All Saints Close","city":"London","country_code":"GB","postal_code":"SW8 xxx","state":""},"shipping_phone_number":"07973xxxxx"}}],"state":"created","redirect_urls":{"return_url":"https://thecountryvictualler.co.uk/paymentpaypalstandardpro/confirmorder?paymentId=PAYID-L2XJEII8DL723238U264054T","cancel_url":"https://thecountryvictualler.co.uk/paymentpaypalstandardpro/cancelorder"},"create_time":"2020-05-03T09:42:57Z","update_time":"2020-05-03T09:43:24Z","links":[{"href":"https://api.paypal.com/v1/payments/payment/PAYID-L2XJEII8DL723238U264054T","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v1/payments/payment/PAYID-L2XJEII8DL723238U264054T/execute","rel":"execute","method":"POST"},{"href":"https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-1YL842427L5622900","rel":"approval_url","method":"REDIRECT"}]}
2020.05.03 10:43:25:0352******
Avatar

Posted: 26 days ago

#11115 Quote

MattHobson1968

Posted: 26 days ago

#11115 Quote
PayPalService. GetPayment
  payment.intent=sale
  payment.payer.status=VERIFIED
  payment.state=created
  payment.payer.payment_method=paypal
  OrderTotal=77.69
  OrderSubTotal=71.69
  OrderGuid=b714f5c2-dc5c-41f8-9ed7-fe7b1a830255

2020.05.03 10:43:25:2130*******
Error. Your order total was changed. Old amount = 77.69, new amount = 77.68.
Avatar

Posted: 25 days ago

#11116 Quote

Support

Posted: 25 days ago

#11116 Quote
I think the problem is in rounding.

1. What amount do you see on checkout page in nopcommerce
77.69 or 77.68?

2. Download the new release and try it
Avatar

Posted: 25 days ago

#11118 Quote

MattHobson1968

Posted: 25 days ago

#11118 Quote
I have the following setting

shoppingcartsettings.roundpricesduringcalculation = True

Do you suggest I change it to false ?

Kind Regards
Avatar

Posted: 25 days ago

#11120 Quote

Support

Posted: 25 days ago

#11120 Quote
I was afraid amount mode of rounding.
Please download the new release of plugin form our site and check it again.
Use the same product and the same price.

Powered by nopCommerce

Copyright © 2019 FoxNetSoft. All rights reserved