• WP Junky

    (@wordpressjunky)


    Hi there! I’m a happy long time user of the plugin. Today I noticed an issue on my site while doing some PayPal sandbox testing. When testing a percent off coupon it causes a paypal error due to incorrect formatting of the currency or amount.

    Details:
    Error message from PayPal:

    “name”: “VALIDATION_ERROR”,
    “details”: [
    {
    “field”: “transactions.amount”,
    “issue”: “Currency amount must be non-negative number, may optionally contain exactly 2 decimal places separated by ‘.’, optional thousands separator ‘,’, limited to 7 digits before the decimal point and currency which is a valid ISO Currency Code”

    – This happens in both Firefox and Google Chrome browsers. Haven’t tested other browsers.
    – I’m using PayPal Smart Checkout with PayPal standard disabled
    – I’m using USD currency with $ as the currency label in settings.
    – I’m using and have tested only single digit and double digit “Percent off” coupons with no expiration date. I.E. 5% off, 10% off.
    – Coupons work correctly and the discount is correctly calculated and shown in the customer cart.
    – When a user clicks to checkout with Smart Checkout, the checkout process crashes with the error message shown above.

    I’m not sure when this issue started but I do know coupons have worked fine in the past on the site. (Customers have used them.) I think it was before I enabled PayPal Smart Checkout but I’m not sure.

    At first glance it looks like perhaps the plugin is incorrectly formatting the currency amount when a coupon is used, at least in the eyes of what PayPal Smart Checkout is expecting and seeing?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter WP Junky

    (@wordpressjunky)

    Forgot to mention I’m using v4.4.5 of the plugin. Thanks!

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, thank you for reaching out to us and reporting this issue. The plugin developers will investigate further your findings.

    Kind regards

    Plugin Author mra13

    (@mra13)

    I did a test and it worked fine for me. Are you using custom input fields by any chance?

    Thread Starter WP Junky

    (@wordpressjunky)

    Hi there,
    No custom input fields.

    Retested today in an attempt to narrow it down further. Seems to be related to PayPal
    Smart Checkout.

    If I use Standard PayPal Checkout exclusively, transactions with a coupon code will go through just fine.

    Coupons cause the aforementioned error with PayPal Smart Checkout active. I get the error message with Smart Checkout and with Smart Checkout with Standard Checkout disabled.

    With Smart Checkout enabled the cart will accept the coupon and calculate the total correctly. However, when I click the PayPal or PayPal Credit Button to begin checkout, it will fail to transfer to PayPal and I get the error message above.

    Here are the settings I have for Smart Checkout:

    Smart Checkout Enabled
    Size: Responsive
    Colr: Gold Buttons
    Shape: Rectangular
    Layout: Vertical
    Payment Methods: PayPal Credit
    Disable Standard PayPal Checkout: box is checked to disable

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Coupons Cause PayPal Smart Checkout Errors’ is closed to new replies.