Здравствуйте, у меня периодически возникают 2 вида ошибок с модулем Пейпал:
Ошибка 1:
A client has encountered a problem with the module PayPalAPI, see the report:
PayPal response:
TIMESTAMP -> 2012-08-09T12:13:23Z
L_ERRORCODE0 -> 10002
L_SHORTMESSAGE0 -> Security error
L_LONGMESSAGE0 -> Security header is not valid
L_SEVERITYCODE0 -> Err
Ошибка 2:
A client has encountered a problem with the module PayPalAPI, see the report:
PayPal response:
TIMESTAMP -> 2012-05-25T20:00:20Z
L_ERRORCODE0 -> 10413
L_SHORTMESSAGE0 -> Transaction refused because of an invalid argument. See additional error messages for details.
L_LONGMESSAGE0 -> The totals of the cart item amounts do not match order amounts.
L_SEVERITYCODE0 -> Error
PayPal returned error
После обращения в техническую службу PayPal мне ответили следующим образом:
По ошибке 1:
L_ERRORCODE0 -> 10002
----------------------------------------------
The Security header not valid error is only caused for two reasons:
1) Wrong credentials
Please make sure that you've typed in your API Username, API Password and API Signature correctly. Sometimes it happens that during copy and paste there is accidentally a space added, this would trigger this error.
Please doublecheck this settings in the SDk or in the admin panel of your third party storefront.
2) Wrong Endpoint
This error would come up if you send the data to the wrong endpoint. Please make sure that you sending the live credentials and data to our live endpoint. When you want to test your store make sure that you use our testendpoint and the credentials from your sandbox testaccount.
If you are using a third party shopping cart, make sure that your store is running in test or live mode, regarding which credentials you are using.
Here is a list with our endpoints:
...
Just in case you haven't requested the credentials yet, follow these steps:
-log in to your PayPal Account
-click on Profile
-click on Request API-Credentials
-Option 1 PayPal API,click on Set up PayPal API credentials and permissions
-option 2, click on Request API credentials
-choose Request API signature and click on Agree and Submit
-Your Credentials are displayed to you
Once you've typed in the correct credentials, your Store will start to work.
И по ошибке 2:
L_ERRORCODE0 -> 10413
--------------------------------------------
Your Shop is sending:
amt "250.2"
itemamt "236.19"
shippingamt "14"
=> Unfortunately, the Total amount is incorrect. It must be "250.19"
You have to contact your Shop provider or developer to solve the Problem. This is a rounding Error
Кто-нибудь знает как решить проблему? Первая вроде легкая, решаемая, но вторая, там где требуется вмешательство разработчика - это вообще для меня темный лес. Помогите, люди, договоримся!