Post by dlkarakashev » Sun Dec 31, 2017 6:06 pm

Hello,
I have a problem with the Maximum amount (MaxAmount) on the checkout page of my OpenCart 2.3.0.2 with Pav_StyleShop theme. The strange part is that in the Catalog > Products > Product Name > Data I set up Minimum Quantity to 1 and Maximum Quantity to 10. I made a test order with 2 pcs of this product with PayPal Express Checkout and when I press Continue on Confirm Order I get this error: Maximum amount (MaxAmount) is invalid. Am I doing something wrong or ?
I`m giving 2 screen shots of the Catalog > Products > Product Name > Data page and Confirm Order page.
The shop in normally in Hungarian, but I changed it to English for the screen shots. Some of the things remains in hungarian but it`s the same in english, just translated.

Attachments

max_amount.png

Max Amount Error - max_amount.png (94.46 KiB) Viewed 631 times

config-shop.png

Product Config - config-shop.png (61.28 KiB) Viewed 631 times


Newbie

Posts

Joined
Sun Dec 31, 2017 5:29 pm

Post by straightlight » Sun Dec 31, 2017 10:42 pm

This sentence error message cannot be found in the core. Rather originates from an installed extension or bad translation which the core may already use.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by dlkarakashev » Tue Jan 02, 2018 7:50 pm

Happy New Year to everybody,
I just made a fresh new install of OpenCart 2.3.0.2 and Pav_StyleShop Theme. Everything went good. I imported the products from my old shop where I had problems with MaxAmount. By default I had only C.O.D. enabled - I made an order and everything was fine. Then I go to Extensions > Payments and enabled PayPal Express Checkout. I made a new order, choose to pay with PayPal Express Checkout and BAM -> Maximum Amount (MaxAmount) is invalid. Is it possible the error to come from PayPal or just from their module?

Newbie

Posts

Joined
Sun Dec 31, 2017 5:29 pm

Post by agatha65 » Wed Jan 03, 2018 2:39 am

Maximum amount is not a part of the default Opencart. Ask the extension developer to fix it's compatibility with payment methods.

Print Version for Product Page and Product Compare Page | Rich Snippets | Facebook Open Graph Meta Tags | Information pages in top menu | Multi-Language Banners, Sliders and Carousels
Image


User avatar
Active Member

Posts

Joined
Fri Mar 16, 2012 10:18 am
Location - Canada, QC

Post by dlkarakashev » Wed Jan 03, 2018 3:57 am

No idea who`s the author of it. PayPal * is coming preinstalled with many of the OpenCart versions (I just installed 3.0.2.0 and it was inside). Anyone who can give a real answer not "that error code is not part of OpenCart core". I know about it - I found it in pp_express.php (which is an extension). Give me a solution how to fix it please.

Newbie

Posts

Joined
Sun Dec 31, 2017 5:29 pm

Post by IP_CAM » Wed Jan 03, 2018 7:41 am

Well, you mentioned, that you do not know, where your Custom Theme is coming from,
but that would mean, that you probably did not pay for it either. And then, better don't expect
much assistance around this here, this Place only 'handles' legal Matters, and registered
Buyers have their own Support Forum at Themeforest.
Sorry for the bad News! ::)
Ernie
---
https://themeforest.net/item/pav-styles ... me/7816560
---
Image

Attachments

styleshop.jpg

styleshop.jpg (58.14 KiB) Viewed 533 times


Ernie's OpenCart v.1.5.6.5 LIGHT + V-Pro + OpenShop Admin v.1.75 Test Sites
http://www.bigmax.ch - http://www.opencart.li/shop/
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by dlkarakashev » Wed Jan 03, 2018 8:05 am

Can you show me exactly where I said that I don`t know from where my theme is coming? I said it for the PayPal Express Checkout module. It`s preinstalled in the theme and also in many versions of the OpenCart. If you don`t know how to help don`t make up reasons not to do it. I`m not using OpenCart from the first version to know who developed the PayPal module (probably it`s PayPal) to be integrated in the OC. I know exactly from where I buy my theme. So anybody can give a solution? I narrowed the circle and the error is coming from the currency HUF (Hungarian Forint). May be because they work with thousands and the Decimal Places are 3 ... I still don`t know. So any ideas?

Newbie

Posts

Joined
Sun Dec 31, 2017 5:29 pm

Post by straightlight » Wed Jan 03, 2018 8:21 am

I made a new order, choose to pay with PayPal Express Checkout and BAM -> Maximum Amount (MaxAmount) is invalid.
The PayPal Express Checkout module can be very sensitive with the order total extensions you may have installed. Ensure that no order totals reach a total-end of a 0 value during checkout or from the admin orders API. I would suggest to enable the debug mode in your admin - > extensions - > extensions - > payments - > PayPal Express Checkout page including the sandbox mode (requires a sandbox account). Then, to set temporary maintenance to your site and to re-test your checkout transaction with the PayPal Express Checkout.

Once the checkout process completed, see the PayPal Express Checkout logs from either your admin - > systems - > maintenance - > error logs page or back to your admin - > extensions - > extensions - > payments - > PayPal Express Checkout page - > log tab (if applicable).

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by dlkarakashev » Wed Jan 03, 2018 3:18 pm

Thank you for the advice Straightlight. Now I see logs and they look like this:
2018-01-03 0:20:36 - Unable to create Paypal session{"TIMESTAMP":"2018-01-03T00:20:33Z","CORRELATIONID":"c8c7052461151","ACK":"Failure","VERSION":"109.0","BUILD":"40680762","L_ERRORCODE0":"10403","L_SHORTMESSAGE0":"Transaction refused because of an invalid argument. See additional error messages for details.","L_LONGMESSAGE0":"Maximum amount (MaxAmount) is invalid.","L_SEVERITYCODE0":"Error"}
2018-01-03 7:03:04 - PayPal Express debug (Call data): {"METHOD":"SetExpressCheckout","MAXAMT":183.75,"RETURNURL":"https:\/\/www.******.hu\/index.php?route=extension\/payment\/pp_express\/checkoutReturn","CANCELURL":"https:\/\/www.******.hu\/index.php?route=checkout\/checkout","REQCONFIRMSHIPPING":0,"NOSHIPPING":0,"LOCALECODE":"EN","LANDINGPAGE":"Login","HDRIMG":"https:\/\/www.*****.hu\/image\/cache\/catalog\/logo2-750x90.png","PAYFLOWCOLOR":"","CHANNELTYPE":"Merchant","ALLOWNOTE":"1","PAYMENTREQUEST_0_SHIPTONAME":"Kriszti Ka*****","PAYMENTREQUEST_0_SHIPTOSTREET":"Av*** Tra****","PAYMENTREQUEST_0_SHIPTOSTREET2":"","PAYMENTREQUEST_0_SHIPTOCITY":"St*** Zag***","PAYMENTREQUEST_0_SHIPTOSTATE":"St*** Zag***","PAYMENTREQUEST_0_SHIPTOZIP":"","PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE":"BG","PAYMENTREQUEST_0_SHIPPINGAMT":"","PAYMENTREQUEST_0_CURRENCYCODE":"HUF","PAYMENTREQUEST_0_PAYMENTACTION":"Sale","L_PAYMENTREQUEST_0_DESC0":false,"L_PAYMENTREQUEST_0_NAME0":"DELL POWEREDGE 1950","L_PAYMENTREQUEST_0_NUMBER0":"PE1950","L_PAYMENTREQUEST_0_AMT0":88,"L_PAYMENTREQUEST_0_QTY0":"1","L_PAYMENTREQUEST_0_ITEMURL0":"https:\/\/www.*****.hu\/index.php?route=product\/product&product_id=215","L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE0":"0.00","L_PAYMENTREQUEST_0_ITEMWEIGHTUNIT0":"g","L_PAYMENTREQUEST_0_DESC1":false,"L_PAYMENTREQUEST_0_NAME1":"DELL LATITUDE D400","L_PAYMENTREQUEST_0_NUMBER1":"LATD400","L_PAYMENTREQUEST_0_AMT1":34.5,"L_PAYMENTREQUEST_0_QTY1":"1","L_PAYMENTREQUEST_0_ITEMURL1":"https:\/\/www.******.hu\/index.php?route=product\/product&product_id=262","L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE1":"0.00","L_PAYMENTREQUEST_0_ITEMWEIGHTUNIT1":"g","L_PAYMENTREQUEST_0_NUMBER2":"shipping","L_PAYMENTREQUEST_0_NAME2":"Flat Shipping Rate","L_PAYMENTREQUEST_0_AMT2":1.4,"L_PAYMENTREQUEST_0_QTY2":1,"PAYMENTREQUEST_0_ITEMAMT":"123.90","PAYMENTREQUEST_0_AMT":"123.90"}
2018-01-03 7:03:05 - PayPal Express debug (Result): "TIMESTAMP=2018%2d01%2d03T07%3a03%3a02Z&CORRELATIONID=1c35eb0986148&ACK=Failure&VERSION=109%2e0&BUILD=40680762&L_ERRORCODE0=10403&L_SHORTMESSAGE0=Transaction%20refused%20because%20of%20an%20invalid%20argument%2e%20See%20additional%20error%20messages%20for%20details%2e&L_LONGMESSAGE0=Maximum%20amount%20%28MaxAmount%29%20is%20invalid%2e&L_SEVERITYCODE0=Error"
2018-01-03 7:03:05 - Unable to create Paypal session{"TIMESTAMP":"2018-01-03T07:03:02Z","CORRELATIONID":"1c35eb0986148","ACK":"Failure","VERSION":"109.0","BUILD":"40680762","L_ERRORCODE0":"10403","L_SHORTMESSAGE0":"Transaction refused because of an invalid argument. See additional error messages for details.","L_LONGMESSAGE0":"Maximum amount (MaxAmount) is invalid.","L_SEVERITYCODE0":"Error"}

Any idea where`s the error here? I will continue to google it, but if someone see it before I find it will be great.
Once again thank you Straightlight.

Newbie

Posts

Joined
Sun Dec 31, 2017 5:29 pm

Post by dlkarakashev » Wed Jan 03, 2018 10:35 pm

Official from PayPal:

Currency Currency code Per transaction limit

Hungarian Forint HUF

Note: Decimal amounts are not supported for this currency. Passing a decimal amount will throw an error.

Newbie

Posts

Joined
Sun Dec 31, 2017 5:29 pm

Post by dlkarakashev » Thu Jan 04, 2018 3:54 am

Solved with the help of PayPal.

Newbie

Posts

Joined
Sun Dec 31, 2017 5:29 pm
Who is online

Users browsing this forum: No registered users and 7 guests