Support » Plugin: Easy Digital Downloads » PayPal error after update

  • Resolved littlebizonline

    (@littlebizonline)


    Hi,

    I have been getting a PayPal error on this website (on purchases via the Store page since the latest update.
    “The link you have used to enter the PayPal system contains an incorrectly formatted item amount.” – Google searching suggests that this is due to to having three decimal places in the currency? I am working in NZD.

    Could you please let me know how I can fix this ASAP as the store is unable to process transactions until this is sorted?

    Thanks

    http://wordpress.org/plugins/easy-digital-downloads/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Pippin Williamson

    (@mordauk)

    Pippin's Plugins and Plugin Reviewer

    Can you show me screenshots of your Downloads > Settings > Payment Gateways?

    Hi Pippin,

    Screenshot is here for you to look at.

    Thanks

    Plugin Author Pippin Williamson

    (@mordauk)

    Pippin's Plugins and Plugin Reviewer

    I just pushed out an update for 1.9.3 that should fix the issue.

    Hi Pippin,

    I have updated the plugin, but unfortunatley this doens’t seem to have done it 🙁
    Still get the PayPal error “The link you have used to enter the PayPal system contains an incorrectly formatted item amount.”

    Have tried logged in via Dashboard, and logged out.
    Free downloads are processing, just not the paid ones.

    Let me know if I can give you anything else to work with.

    Thanks

    Plugin Author Pippin Williamson

    (@mordauk)

    Pippin's Plugins and Plugin Reviewer

    Do you have taxes enabled?

    Yes

    Plugin Author Pippin Williamson

    (@mordauk)

    Pippin's Plugins and Plugin Reviewer

    Does the error go away if you disable taxes?

    Yes it does go away when I disable taxes
    (hope this helps…?)

    Plugin Author Pippin Williamson

    (@mordauk)

    Pippin's Plugins and Plugin Reviewer

    Are you comfortable editing a file and doing a test for me?

    Sure thing – let me know what you want done

    Plugin Author Pippin Williamson

    (@mordauk)

    Pippin's Plugins and Plugin Reviewer

    Open wp-content/plugins/easy-digital-downloads/includes/gateways/paypal-standard.php and add this to line 144:

    echo '<pre>'; print_r( $paypal_args ); echo '</pre>'; exit;

    Once you do that, do a test purchase and then tell me what is printed to the screen. Note, it will not go to PayPal, it will just display a print out of the purchase data that is getting sent to PayPal.

    Hi Pippin,

    Please see below (I have removed info with the name of the site so that this doesn’t come up in Google results! – if you need anything I have removed, please let me know)

    Array
    (
    [cmd] => _cart
    [upload] => 1
    [business] => **REMOVED**
    [email] => **REMOVED**
    [invoice] => e6dd09889b26e1dc8a8d11012f808b24
    [no_shipping] => 1
    [shipping] => 0
    [no_note] => 1
    [currency_code] => NZD
    [charset] => UTF-8
    [custom] => 838
    [rm] => 2
    [return] => **REMOVED**
    [cancel_return] => **REMOVED**
    [notify_url] => **REMOVED**
    [page_style] =>
    [cbt] => **REMOVED**
    [item_name_1] => **REMOVED**
    [quantity_1] => 1
    [amount_1] => 8.6521739130435
    [tax_cart] => 1.3
    )

    Plugin Author Pippin Williamson

    (@mordauk)

    Pippin's Plugins and Plugin Reviewer

    Ok I see the issue and will push out an update to fix that shortly.

    Plugin Author Pippin Williamson

    (@mordauk)

    Pippin's Plugins and Plugin Reviewer

    Could you manually apply this patch (and remove the code I asked you to put in earlier) and tell me if that fixes it? https://github.com/easydigitaldownloads/Easy-Digital-Downloads/commit/9dfd569ffe68f4cc6ca91745f08bbcaad0cbd1e7

    Yes! Thank you this fixes it 🙂
    Goes through to PayPal now.

    Thanks for your help!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘PayPal error after update’ is closed to new replies.