WordPress.org

Ready to get started?Download WordPress

Forums

Easy Digital Downloads
[resolved] PayPal error after update (17 posts)

  1. littlebizonline
    Member
    Posted 6 months ago #

    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/

  2. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 6 months ago #

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

  3. littlebizonline
    Member
    Posted 6 months ago #

    Hi Pippin,

    Screenshot is here for you to look at.

    Thanks

  4. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 6 months ago #

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

  5. littlebizonline
    Member
    Posted 6 months ago #

    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

  6. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 6 months ago #

    Do you have taxes enabled?

  7. littlebizonline
    Member
    Posted 6 months ago #

    Yes

  8. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 6 months ago #

    Does the error go away if you disable taxes?

  9. littlebizonline
    Member
    Posted 6 months ago #

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

  10. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 6 months ago #

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

  11. littlebizonline
    Member
    Posted 6 months ago #

    Sure thing - let me know what you want done

  12. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 6 months ago #

    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.

  13. littlebizonline
    Member
    Posted 6 months ago #

    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
    )

  14. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 6 months ago #

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

  15. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 6 months ago #

    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

  16. littlebizonline
    Member
    Posted 6 months ago #

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

    Thanks for your help!

  17. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 6 months ago #

    Great!

    I will push an official update shortly.

Reply

You must log in to post.

About this Plugin

About this Topic