Home Forums Search Search Results for '580022'

Viewing 35 results - 1 through 35 (of 35 total)
  • Author
    Search Results
  • #72553

    In reply to: Errors upon checkout

    Lisa
    Participant

    @Ben,
    I’m getting the same error messages and when Raghav submitted this it was indicated that he thought the first error message is because of it being setup incorrectly (putting himself as the seller & buyer, causing the “Error ID: 579040. Receiver PayPal accounts must be unique.” error message to generate).

    However, there’s nothing to indicate the second error message he referenced (“Error ID: 580022. Invalid request parameter: payKey cannot be null | This one is the issue”) is related to that other issue, or that it was addressed, and as stated Jaime had advised in Support item# 2866 (https://www.wcvendors.com/help/topic/paypal-adaptive-payments-help/) it was a bug that would be fixed in the next update (reply was in March, 2015).

    This site is for my cousin, and I’d already suggested to her that error message# 1 is likely caused by the aforementioned issue but even when I attempt to make a purchase, with my own Paypal account that has nothing to do with her website, we get that error message but ONLY when trying to purchase from more than one vendor in a transaction – I’m NOT the seller AND buyer in this transaction, just the buyer (and logged in with a buyer account)?

    To summarize:
    1) I’m able to complete a purchase of a single item, or multiple items, through EACH of the the 3 vendors setup with no problems / no error messages whatsoever (commission split correctly, etc).
    2) That said, once I try to purchase an item from more than a single vendor in a transaction (multi item purchase from more than one vendor), both of those error messages are generated.

    Now, correct me if I’m wrong but if the issue for error message 1 exists when trying to purchase from 2 or more vendors, shouldn’t it be a problem for ANY transaction, whether it’s a single vendor purchase or from multiple vendors?

    Please let me know what else you might need regarding this issue. Thanks for your time & assistance, it’s greatly appreciated…

    John

    #57550
    Alex G.
    Participant

    I am getting the following errors when trying to purchase

    Error ID: 580022. Invalid request parameter: amount must be greater than zero
    Error ID: 580022. Invalid request parameter: payKey cannot be null

    I have searched and tried every single solution proposed on the help forums. None work.
    I have only a few plugins enabled. The only ones related to WC: Woocommerce, WCVendors, WCVendors Pro, Direct-Cart-Skip-Checkout (tried disabling it)
    I removed all custom functions code related to Woocommerce.
    I tried setting global shipping to $5.00 then making product shipping $0.00, $5.00, even $7.00.
    I tried removing global shipping and then making product shipping $0.00, $5.00, even $7.00.

    #55668
    Raghav
    Participant

    Hi guys,
    So I’ve set up Paypal with adaptive payments set up. Created the app and had it approved by Paypal, however when I go to checkout, I get these error messages:

    Error ID: 579040. Receiver PayPal accounts must be unique.
    (This may be caused by me because I’m using my paypal as the commission account as well as the test vendor account)

    Error ID: 580022. Invalid request parameter: payKey cannot be null
    (This one is the issue)

    I read this thread: https://www.wcvendors.com/help/topic/paypal-adaptive-payments-help/ but they say the issue was solved with an update. Site is updated but still no joy. What could be going wrong?
    Thanks

    #50974
    Darius
    Participant

    Hi,

    I’m having issues completing transactions due to the PayKey not loading and yes I’m already approved for Live App-ID etc…

    Error ID: 580022. Invalid request parameter: amount must be greater than zero
    Error ID: 580022. Invalid request parameter: payKey cannot be null

    I just got off the phone with Paypal and they need to see these files/info below: Which files do I need to show them?

    (Paypal wrote)

    Hello,

    Here is a link in the Developers Page for the HTTP response I would need to start troubleshooting: https://developer.paypal.com/docs/classic/adaptive-payments/integration-guide/APCallsHeadersAndPaymentTypes/

    I need to see this information that is passed to PayPal for the request that returns a PAYKEY, once the key is returned it is appended to https://www.paypal.com/cgi-bin/webscr.

    Payment Commands – https://developer.paypal.com/docs/classic/adaptive-payments/integration-guide/APCommands/

    Once this is completed the link will redirect to PayPal to initiate the payment for completion.

    I sent them the PPAuthenticationManager page and the reply was…

    (2nd Email)

    Hello,

    This is code that is used to run the program, it takes in inputs and builds the request. The request log is the information that is sent to PayPal with all your credentials filled in and the parameters filled in. Your log request builds each time you click on the PayPal button on your site that is generating a request to ask PayPal for the Paykey.

    So please let me know in which file, I can find the info they’re requesting.

    Thanks

    (Woocommerce Status Report)

    
    ### WordPress Environment ###
    
    WC Version: 2.6.9
    Log Directory Writable: ✔
    WP Version: 4.7
    WP Multisite: –
    WP Memory Limit: ❌ 40 MB - We recommend setting memory to at least 64MB. See: Increasing memory allocated to PHP
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: ❌ 5.5.9-1ubuntu4.19 - We recommend a minimum PHP version of 5.6. See: How to update your PHP version
    PHP Post Max Size: 100 MB
    PHP Time Limit: 2400
    PHP Max Input Vars: 1000
    cURL Version: 7.35.0
    OpenSSL/1.0.1f
    
    SUHOSIN Installed: –
    MySQL Version: ❌ 5.5.50 - We recommend a minimum MySQL version of 5.6. See: WordPress Requirements
    Max Upload Size: 90 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 2.6.9
    : 
    woocommerce_sessions: ✔
    woocommerce_api_keys: ✔
    woocommerce_attribute_taxonomies: ✔
    woocommerce_downloadable_product_permissions: ✔
    woocommerce_order_items: ✔
    woocommerce_order_itemmeta: ✔
    woocommerce_tax_rates: ✔
    woocommerce_tax_rate_locations: ✔
    woocommerce_shipping_zones: ✔
    woocommerce_shipping_zone_locations: ✔
    woocommerce_shipping_zone_methods: ✔
    woocommerce_payment_tokens: ✔
    woocommerce_payment_tokenmeta: ✔
    MaxMind GeoIP Database: ✔
    
    ### Active Plugins (19) ###
    
    Ultimate Addons for Visual Composer: by Brainstorm Force – 3.15.0
    All In One SEO Pack: by Michael Torbert – 2.3.11.1
    BuddyPress Reorder Tabs: by BuddyBoss – 1.0.9
    MarketPlace: by BuddyBoss – 1.2.1
    BuddyPress: by The BuddyPress Community – 2.7.3
    Contact Form 7: by Takayuki Miyoshi – 4.6
    Google XML Sitemaps: by Arne Brachhold – 4.0.8
    WPBakery Visual Composer: by Michael M - WPBakery.com – 5.0.1
    Newsletter: by Stefano Lissa & The Newsletter Team – 4.7.4
    TablePress: by Tobias Bäthge – 1.7
    TinyMCE Advanced: by Andrew Ozz – 4.4.3
    User Role Editor: by Vladimir Garagulya – 4.31
    WC Vendors Pro: by WC Vendors – 1.3.8
    WC Vendors: by WC Vendors – 1.9.7
    WooCommerce - Store Exporter: by Visser Labs – 1.8.8
    WooCommerce: by WooThemes – 2.6.9
    WooCommerce Helper: by WooCommerce – 1.7.2
    WordPress Importer: by wordpressdotorg – 0.6.3
    YITH WooCommerce Affiliates: by YITHEMES – 1.0.8
    
    ### Settings ###
    
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    
    ### API ###
    
    API Enabled: ✔
    
    ### WC Pages ###
    
    Shop Base: #23 - /shop/
    Cart: #24 - /cart/
    Checkout: #25 - /checkout/
    My Account: #26 - /my-account/
    
    ### Taxonomies ###
    
    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    ### Theme ###
    
    Name: OneSocial Child Theme
    Version: 1.0.3
    Author URL: http://www.buddyboss.com
    Child Theme: ✔
    Parent Theme Name: OneSocial
    Parent Theme Version: 1.2.0
    Parent Theme Author URL: http://www.buddyboss.com
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: –
    
    ### WC Vendors Pro ###
    
    Theme Compatability: -
    Pro Dashboard Page: - #31
    Feedback form page: - #32
    Vendor Shop Permalink: - vendors/
    
    ### Templates ###
    
    Overrides: –
    
    #48044
    Craig Hanson
    Participant

    Hi @ben

    I am recieving the same error detailed above by Karen @Conscious Crafties

    Error ID: 580022. Invalid request parameter: amount must be greater than zero
    Error ID: 580022. Invalid request parameter: payKey cannot be null

    And then discovered this thread so this has been very helpful to find out that I can not use the “woocommerce” generated coupons.

    I use the WC Vendor Pro plugin (love it) and also use the WooCommerce Follow-ups plugin to send automated follow emails abd then started to use the follow-ups plugin to generate automatic coupon codes but those codes generated must be “WooCommerce coupon codes” because they produce that error when trying to transact through PayPal.

    I was using the follow-up plugin to auto-generate a coupon code when the customer purchased a listing we have as a “site wide gift certificate”. This was a very slick way to generate a one time unique code automatically for a specific discount ($20 gift certificate for example).

    But as I discovered this only works for generating “woocommerce coupon codes” not “WC Vendor coupon codes”.

    Questions:
    1. Any thoughts on how we can auto-generate a coupon code “site wide” (that can be applied to all vendors – yes I realize this requires an additional admin process to reconcile that coupon code process).
    2. Any thoughts on how we can auto-generate a coupon code “per vendor” so that a vendor can create a “gift certificate” type listing and then that would automatically generate a “WC Vendor coupon code”?.

    Thank
    Craig

    #45116
    The Ebook Giant
    Participant

    Ill get right to it.

    I’ve set 100% commissions to all sellers on the site and including myself ofcourse. Recently I added a 75% commission on a specific product sold by a seller and I tried checking out with it along with another product on the site and I received these errors:

    Error ID: 579040. Receiver PayPal accounts must be unique.
    Error ID: 580022. Invalid request parameter: payKey cannot be null

    What’s going on and how do I fix this?

    #41640

    In reply to: coupon codes

    Obsi Dian
    Participant

    But I still can’t work out why that original vendors coupon codes are not working. I had them update the coupon to make sure all the newly added products were covered, but some of the items you can’t checkout, and some you can. It all seems to come down to the price.

    They have shipping set to 0 worldwide. (100% of commission paid to them). All simple products.

    All the products I’ve tried to checkout that are $6 and $7 do work (discount code is applied, able to complete through to paypal). But every product of theirs that is $5 or $10 the products will show the discount but you cannot checkout with them – it gives a paypal error. (Tells you to go back to the merchant, where there is the Error ID: 580022. The amount is invalid. Error ID: 580022. Invalid request parameter: payKey cannot be null). Either purchased individually or with other items (even of different costs)

    However if one of those $5 products that was not working is edited to change the price to $6 (that was the only change) then it works. So the only difference seem to be the price.

    Also, taking 3 $7 products whose only difference is the title and the product image (so “paris”, “cats” and “pirates”). Individually they can all be checked out fine. Combinations of 2 of them work fine (paris&pirate, cats&paris, pirate&cats) – however 3 of them carted together cannot be checked out.

    Obsi Dian
    Participant

    We’ve encountered some paypal related issues with variable products and shipping prices set within the product – or with discount coupons.

    I’ve tried disabling every plugin but WCVendors, WCVendors-pro and WooCommerce, tried it in the storefront theme. I’ve tried it on different browsers and different computers (even had a vendor testing it out in another state). Nothing seems to change.

    Through testing I’ve found that: (only for variable products – simple products don’t have these errors)

    any shipping price set in the product below either the site-default or their store-price – causes a paypal error.
    any shipping price set in the product above either the site-default or their store-price – pays the excess to Admin

    If the vendor sets a shipping price in their store – it works fine. If they use the site-wide default shipping – it works fine. If they set a shipping price within the product, then all hell breaks loose 😛

    This is what happens:
    If the vendor has no store-wide shipping entered in and they set a shipping price between $0-$2 in a product – the order cannot be checked out. – it brings up a paypal error

    If they have no store-wide shipping entered in, and they set shipping to $3 (the same charge as the default national shipping price I’ve entered in for the whole site) — the order works.

    If they have no store wide shipping and they set a shipping price above $3 (default national shipping charge) eg $5 – anything above $3 will be sent to Admin instead of the vendor.

    If they set their own store-wide shipping price to something (eg $5) and set a product price of LOWER than this (eg $3) – the order cannot be checked out. Paypal error

    If they set their own store-wide shipping price to something (eg $5) and set a product price of HIGHER than this (eg $10) – anything above the price they set ($5) will be sent to Admin instead of them.

    — So for a variable product there was no way I could find that allowed them to override the site-default or their store set shipping price.

    The paypal error on the paypal site says “This transaction is invalid. Please return to the recipient’s website and try again.”
    When you get back to our site it displays these error codes:

    Error ID: 580022. Invalid request parameter: amount must be greater than zero
    Error ID: 580022. Invalid request parameter: payKey cannot be null

    To try and get around some of these issues with one store who was trying to offer one shipping price for items under $80 and free shipping for items over $80 – I set the one shipping price in their store and tried to set a free shipping code that customers could use to give free shipping to the products over $80.

    But the free shipping coupon doesn’t give free shipping. (it doesn’t take any money off the shipping price at all). On simple or variable products. (We use Vendor Shipping). I have it ticked in the “Enable store wide free national shipping” box in the settings, am I supposed to do anything else to make that work?

    I then tried making a $ off coupon to replicate free shipping – that does work on simple products, but on variable products they bring up the same paypal error again.

    All other paypal payments are going through fine. It is only variable products that have shipping prices set within the product that are causing issues 🙁

    #38128
    WC Vendors Support
    Participant
    Sandy Winter
    Participant

    Some orders are processing just fine using PayPal for payment. I’ve had two in the past few days that resulted in an error of “Error ID: 580022. Invalid request parameter: payKey cannot be null Order status changed from Pending Payment to Cancelled.”. The first order seems to have been updated to the payment being successful and was processed. However, the second is not.

    #33571
    Nicolas
    Participant

    Hi

    I experienced 2 bugs with Paypal Adaptive payments.

    The first one is a 580022 PayPal error related to a rounding issue (explained here: https://www.wcvendors.com/help/topic/adaptive-payments-and-tax-rounding-issue/#post-33505 )

    The second one is the order is not cancelled when cancelling the payment from the PayPal payment page. The reason is the args separator is HTML escaped in the cancel URL and in the return URL as well

    I opened a pull request on GitHub with the fixes : https://github.com/wcvendors/wcvendors/pull/275

    Regards

    #33298
    David R
    Participant

    Deleting that line results in an error when trying to purchase items from a vendor with no paypal address set:

    Error ID: 580001. Invalid request: None of the fields are specified to identify a receiver
    Error ID: 580022. Invalid request parameter: payKey cannot be null
    WC Vendors Support
    Participant

    Jamie is on vacation for the next ten days. You’re stuck with me! 🙂

    Don’t keep using PayPal just because some vendors havent connected to Stripe. Force them to connect to Stripe. The best practice is to send an email to the vendors still relying on PayPal and say “As of May 15th 2016 we no longer process payments through PayPal. If you do not connect to Stripe by going to your Dashboard > Settings > Payment, then you will not receive your money for commissions automatically. You must do this as soon as possible.” And that’s it! Well, of course, customize the message any way you see fit, but that’s what I would do. Your site is the gatekeeper. Set your rules, and enforce them! 🙂

    — Unpaid time limit means somoene clicked through to PayPal to complete their order, and then ignored it or stopped. It happens.

    — We cant process your payment right now so please try again later is a PayPal Customer issue — see https://www.freshbooks.com/support/paypal-error-message-we-cant-process-your-payment-right-now-so-please-try-again-later

    — Error 580022 means that your seller/vendor is using a weird currency PayPal doesnt support — see http://stackoverflow.com/questions/15567640/580022-the-receiver-is-based-in-a-country-that-isnt-enabled-to-receive-paymen

    So, why bother letting vendors keep slowing you down? Lay down the law and tell them your site rules and enforce. In the end, all your troubles go away. 🙂

    #25267
    WC Vendors Support
    Participant

    We are, thank you. 🙂 Still in Ohio till we return home to the sun on Friday.

    I added qty 2 to my cart, and went to use PayPal, and received error.

    I went back, changed qty to 1, and went to PayPal, no error.


    @digitalchild
    there’s certainly something weird on this — but I’m not sure what it is. paykey null and amount greater than 0 problem. Give it a test run see what you think.

    Error ID: 580022. Invalid request parameter: amount must be greater than zero
    Error ID: 580022. Invalid request parameter: payKey cannot be nul

    Karen — PS — Nice theme. 🙂

    Karen Thomas
    Participant

    Hi Jamie / @DigitalChild,

    I’m hoping you can help me with a Paypal problem.

    Customers are getting a ‘Transaction is Invalid’ Paypal error when purchasing:

    Then when they return to the website they get this error:
    Error ID: 580022. Invalid request parameter: amount must be greater than zero
    Error ID: 580022. Invalid request parameter: payKey cannot be null

    The only thing I’ve changed is my theme (One Social Marketplace) in the last few days.

    I’ve done various testing on the site. I’ve narrowed it down to only happening in the following scenario:

    1. Venders has the following option ticked in their Shop Shipping ‘Charge once per product for national shipping, even if more than one is purchased’:

    2. Customer visits product page and increases qty of product to MORE THAN ONE
    3. Customer adds product to Cart

    Here is an example product:
    https://www.consciouscrafties.com/handmade-gifts/conscious-crafties-packaging-labels/

    It seems to be something to do with the ‘Charge once per product for national shipping, even if more than one is purchased’ option not playing nice with Paypal when customers increase the qty of the same product to more than one.

    In wp-admin the order appears as Cancelled and here are the order notes:
    ‘Error ID: 580022. Invalid request parameter: amount must be greater than zero Order status changed from Pending Payment to Cancelled.’

    However, the same example product did also have an issue when customers bought only 1 of the item. Everything looked fine to the customer on the website and payment was accepted, however the Vendor didn’t receive the order confirmation email and the order notes showed ‘Order status changed from Cancelled to Processing’.

    Do you know what the problem is?

    Many thanks for your help,

    Karen

    #24068
    Karen Thomas
    Participant

    Hi Ben, did @DigitalChild have any idea on how we can do this? I really need to add placeholder text to warn Vendors not to use 100+characters in their Product Name because of the paypal error:

    Error ID: 580022. Invalid request parameter: name must be 100 characters or less Order status changed from Pending Payment to Cancelled.

    Many thanks,

    Karen

    #24029
    Karen Thomas
    Participant

    Hiya Ben and @DigitalChild

    I’ve recently experienced this twice which is the same as issue #3733. I haven’t commented on that issues as it had already been gatecrashed and it’s kinda lost track of what the initial issue was about lol!

    So I’ve had two customer orders for one Vendor recently and the Vendor didn’t receive their order confirmation email. I however received an Order CANCELLED email. I looked in Orders within wp-admin and the log showed me this error:

    ‘Error ID: 580022. Invalid request parameter: name must be 100 characters or less Order status changed from Pending Payment to Cancelled.’

    I’ve tested this by buying the item and received the same error. Then I tested reducing her product name (she’s a bit of a word smith!) and the order magically went through fine 🙂

    So request is…
    Can we have validation on product name to prevent Vendors adding more than say 90 words (ideally less as lots write essays in there that I’m forever shortening!).

    Many thanks,

    Karen

    #23240
    archonic
    Participant

    This ugly error has reared it’s ugly head again. I previously found that all “error 580022” orders involved shipping that used a plugin I made. That’s when we upgraded to pro to use a more standard shipping solution.

    This particular order is using the Local Pickup option. There’s a github issue for compatibility with that shipping option already: https://github.com/wcvendors/wcvendors/issues/249.

    This seems new however. When I was looking into this issue previously, I was finding that the amounts sent to paypal was positive but the paypal log had the amounts being negative. That’s when I threw my hands up and got WC Vendors Pro. Any ideas? Let me know if you want credentials to check it out.

    #21845
    konakid
    Participant

    Hi Ben – last hurdle for a major integration project – I hope you can help.

    I am using WC Vendors to allow people to list auctions – using Simple Auctions – and all is well with PayPal payments, etc.

    However, I am trying to set up a store, just for me. So, I have set up a separate Vendor Account, and listed some products. But when I try to buy a product using my wife’s Paypal account, I first get this error from Paypal: “This transaction is invalid. Please return to the recipient’s website and try again.”

    And when I return to the website, this error is waiting for me:
    Error ID: 579040. Receiver PayPal accounts must be unique.
    Error ID: 580022. Invalid request parameter: payKey cannot be null

    I have a little more info that may be important. But – so as not to confuse things, hopefully you can make something of what I have provided so far.

    archonic
    Participant

    Got some new information. The cost is meant to be an array if you’re doing per_item (which contradicts WooCommerce’s own documentation), but it’s actually the same result with the code above.

    The interesting (and terrible) thing is somehow the full amount (including paypal fees) is being interpreted as negative. Here’s an example from the paypal log:

    PPAPIService: Request: requestEnvelope.errorLanguage=en_US&actionType=CREATE&cancelUrl=http%3A%2F%2Fwedding-recycle.com%2Fcart%2F%3Fcancel_order%3Dtrue%26amp%3Border%3Dwc_order_56742d991d0fe%26amp%3Border_id%3D17006%26amp%3Bredirect%26amp%3B_wpnonce%3D7e1bb189cc&currencyCode=USD&feesPayer=EACHRECEIVER&ipnNotificationUrl=http%3A%2F%2Fwedding-recycle.com%2F%3Fwc-api%3DWC_PayPalAP%26paypal_chain_ipn%3D1%26order_id%3D17006&receiverList.receiver(0).amount=123.76&receiverList.receiver(0).email=*************%40yahoo.com&receiverList.receiver(0).invoiceId=17006&receiverList.receiver(1).amount=-62.76&receiverList.receiver(1).email=*************%40wedding-recycle.com&receiverList.receiver(1).invoiceId=17006&reverseAllParallelPaymentsOnError=1&returnUrl=http%3A%2F%2Fwedding-recycle.com%2Fcheckout%2Forder-received%2F17006%3Fkey%3Dwc_order_56742d991d0fe%26%23038%3Border-received%3D17006
    PPHttpConnection: Adding header X-PAYPAL-SECURITY-USERID:  *************
    PPHttpConnection: Adding header X-PAYPAL-SECURITY-PASSWORD: *************
    PPHttpConnection: Adding header X-PAYPAL-SECURITY-SIGNATURE: *************
    PPHttpConnection: Adding header X-PAYPAL-APPLICATION-ID: *************
    PPHttpConnection: Adding header X-PAYPAL-REQUEST-DATA-FORMAT: NV
    PPHttpConnection: Adding header X-PAYPAL-RESPONSE-DATA-FORMAT: NV
    PPHttpConnection: Adding header X-PAYPAL-DEVICE-IPADDRESS: *************
    PPHttpConnection: Adding header X-PAYPAL-REQUEST-SOURCE: sdk-adaptivepayments-php_1.2.95
    PPAPIService: Response: responseEnvelope.timestamp=2015-12-18T08%3A00%3A25.878-08%3A00&responseEnvelope.ack=Failure&responseEnvelope.correlationId=3aef43d96e68a&responseEnvelope.build=17820627&error(0).errorId=580022&error(0).domain=PLATFORM&error(0).subdomain=Application&error(0).severity=Error&error(0).category=Application&error(0).message=Invalid+request+parameter%3A+amount+must+be+greater+than+zero&error(0).parameter(0)=amount&error(0).parameter(1)=-62.76

    One more amazing(ly awful) thing: this this doesn’t happen with the sandbox. Just production. This is the matching order: http://i.imgur.com/OgIFRa7.png

    Why this happens only when shipping is non-zero, I don’t know. I’m *so* confused. I’ve bought WC Vendors Pro and hopefully all this bull will go away.

    archonic
    Participant

    I’m getting this sporadically on some orders. Sometimes the order then changes from cancelled to complete (not sure how), sometimes it doesn’t.

    Cancelled order, invalid request parameter amount must be greater than zero

    I have the Multi Currency plugin installed. I thought perhaps the error could arise when the user preforms a currency conversion and the amount passed to PayPal has a third decimal place – i.e. $5.123. I changed the settings for the plugin to round to the nearest cent and the error still happens occationally. The error also says something about an amount being zero but I’ve learned to not trust PayPal errors.

    Has anyone else experienced this? Could Multi Currency be the problem?

    #16732
    WC Vendors Support
    Participant
    #16722
    archonic
    Participant

    I’ve been getting Error 580022 occasionally. Have the product title and store title length issues been taken care of? I don’t see anything over 102 characters on these cancelled orders. PayPal errors suck SO hard.

    I believe a number of the recent 58022 errors were due to a multi-currency plugin. If you don’t tell that plugin to round down or round up, it could end up passing more than 2 decimal places for the price which has PayPal shit the bed.

    #13745
    Jordan
    Participant

    Tried again but instead this time I divided the total shipping amount amongst all the products in a vendor’s package. See it here: http://pastebin.com/qvhjxU8h

    So, long story short, my first version of the plugin (http://pastebin.com/qF94eyz3) does not work because the PayPal request doesn’t get the proper shipping amounts because of how the software uses two variables that are grouped and not grouped. If I had to guess I’d say it has something to do with me using a static variable to keep track of who has been paid their shipping dues. In my plugin, I’m adding shipping once per package (remember: each package belongs to one vendor/source) so that if the shipping has already been added, it doesn’t get added twice. The function is being called twice which means the 2nd call is probably still using that same static variable, so when it checks to see if it should add shipping to the vendor during the 2nd call it sees that they’ve already been paid and thus you get the right totals the 1st time but not the 2nd. Just a guess. I’m not sure how to go about removing this static variable because how else would I keep track of whether or not a vendor has been paid shipping if it’s being ran twice. I thought about passing that $grouped argument that gets passed in WCV_Vendors::get_vendor_dues_from_order($order, $grouped = true) but that didn’t quite pan out when I tried it.

    I decided to also try and just divide the shipping amount between all products in each package. So $5.75 due to a vendor for 5 items would mean each item would have $1.15 added to it. See it in action here: http://pastebin.com/kQK0Jmuk

    The part that calculates how much to give to each line item is here:

    $vendor_owed_shipping = $data['cost']; // this is their total shipping due for the entire order
    $number_items_pkg = count(explode('|', $data['product_ids'])); // string of a pipe separated array of product IDs being exploded and counted
    $shipping_dues['amount'] = (($vendor_owed_shipping / $number_items_pkg) * $product['qty']); // total shipping owed divided by the number or items in the package multiplied by how many of the item the customer bought

    When running this new change of giving shipping to each product, I get the following response from WCV_Vendors::get_vendor_dues_from_order():

    $receivers = WCV_Vendors::get_vendor_dues_from_order( $order, false ); (not grouped)
    array(2) {
      [1]=> // first chunk of this array is for the store owner. Shipping gets added towards the end…
      array(4) { // each item here is a line item in the order
        [23193]=>
        array(7) { // meta data for each line item in the order
          ["vendor_id"]=>
          int(1)
          ["product_id"]=>
          string(5) "16763"
          ["commission"]=>
          float(39.98)
          ["shipping"]=>
          int(0)
          ["tax"]=>
          int(0)
          ["qty"]=>
          string(1) "2"
          ["total"]=>
          float(39.98)
        }
        [23203]=>
        array(7) {
          ["vendor_id"]=>
          int(1)
          ["product_id"]=>
          string(5) "44223"
          ["commission"]=>
          float(0)
          ["shipping"]=>
          int(0)
          ["tax"]=>
          int(0)
          ["qty"]=>
          string(1) "2"
          ["total"]=>
          float(0)
        }
        [23213]=>
        array(7) {
          ["vendor_id"]=>
          int(1)
          ["product_id"]=>
          string(5) "37013"
          ["commission"]=>
          float(0)
          ["shipping"]=>
          int(0)
          ["tax"]=>
          int(0)
          ["qty"]=>
          string(1) "2"
          ["total"]=>
          float(0)
        }
        [23223]=>
        array(7) {
          ["vendor_id"]=>
          int(1)
          ["product_id"]=>
          string(4) "5737"
          ["commission"]=>
          float(19)
          ["shipping"]=>
          float(-0.95)
          ["tax"]=>
          float(0)
          ["qty"]=>
          string(1) "2"
          ["total"]=>
          float(18.05)
        }
      }
      [109673]=> // now we’re dealing with a vendor…
      array(2) {
        [23203]=>
        array(7) {
          ["vendor_id"]=>
          int(109673)
          ["product_id"]=>
          string(5) "44223"
          ["commission"]=>
          float(75)
          ["shipping"]=>
          float(6.7)
          ["tax"]=>
          int(0)
          ["qty"]=>
          string(1) "2"
          ["total"]=>
          float(81.7)
        }
        [23213]=>
        array(7) {
          ["vendor_id"]=>
          int(109673)
          ["product_id"]=>
          string(5) "37013"
          ["commission"]=>
          float(2)
          ["shipping"]=>
          float(6.7)
          ["tax"]=>
          int(0)
          ["qty"]=>
          string(1) "2"
          ["total"]=>
          float(8.7)
        }
      }
    }
    
    $receivers_two = WCV_Vendors::get_vendor_dues_from_order( $order ); (grouped)
    array(2) {
      [1]=>
      array(6) {
        ["vendor_id"]=>
        int(1)
        ["qty"]=>
        int(8)
        ["commission"]=>
        float(58.98)
        ["total"]=>
        float(58.03)
        ["shipping"]=>
        float(-0.95)
        ["tax"]=>
        float(0)
      }
      [109673]=>
      array(6) {
        ["vendor_id"]=>
        int(109673)
        ["commission"]=>
        float(77)
        ["shipping"]=>
        float(13.4)
        ["tax"]=>
        int(0)
        ["qty"]=>
        int(4)
        ["total"]=>
        float(90.4)
      }
    }

    Notice that the shipping for the vendor is really high while the shipping due to the store is a negative number. Of course, this generates an error from PayPal:
    Error ID: 580022. Invalid request parameter: totalShipping cannot be negative.

    So, that’s where I’m at right now. Hopefully that all made sense. Any glaringly obvious errors? Also, should I even be wasting my time with this if the shipping methods are being updated in the Vendors plugin? Will it accomplish what I’m going for? Will it be ready anytime soon? @digitalchild

    #9307
    Karen Thomas
    Participant

    Hi there,

    I’ve just added a coupon code to take 15% of Basket total price.
    Thankfully I tested it prior to advertising the coupon code!
    The coupon deducted the correct amount but I received this error message in Paypal:
    “This transaction is invalid. Please return to the recipient’s website and try again.”

    Then when I returned to my website I received these error messages:
    Error ID: 580022. Invalid request parameter: amount must be greater than zero
    Error ID: 580022. Invalid request parameter: payKey cannot be null

    The basket total was £70.64 (after the 15% coupon applied of -£10.35). Everything works wonderfully without applying the coupon.

    I’ve checked the WC Vendor forums and others have had similar message but not relating to coupons. I have checked that my decimal places are set to 2 (advice from someone’s else thread).

    Have you any ideas why applying a percentage discount would affect payment?

    Many thanks,

    Karen x

    #9220
    WC Vendors Support
    Participant

    We are developing a Pro version, that keeps everything on the front end and easier for vendors, and it’s being released for sale on October 1st. 😉 It is $99.

    As for the specific PayPal error you are receiving, we just write the gateway. PayPal supports their own customers, and you’ll want to ask them what Error 580022 means. I mean, I could google it and copy/paste the answers, but you can, too. 🙂

    #9217
    Lorette
    Participant

    Thanks Ben for your quick response.
    I did go ahead and fill out the PayPal app per your link above. I was approved conditionally.

    I appreciate that WC Vendors is a free plugin. Although I would pay for a Pro version if it made this whole process easier. Setting up shipping and taxes is complicated especially since I am creating a multi-vendor site. It would be nice if someone designs a process that is more frontend user friendly for the vendors.

    When I used the WC Vendors Test Gateway I was able to receive a “payment” But when I try an actually order I get the following errors.
    Error ID: 579040. Receiver PayPal accounts must be unique. (I get this cause I used the same paypal email for sender and receiver)

    I researched the following error. On your forum you say Parallel Payments need to be activated. Where can I see whether it is?
    Error ID: 580022. Invalid request parameter: payKey cannot be null
    It is hard to know if an issue is woocommerce, wc vendors or PayPal….

    Thank you if you can point me in the right direction. I think I am close to getting this site launched…

    jncb1UI
    Participant

    Hi,

    I am getting rounding errors for TWD and “This transaction is invalid. Please return to the recipient’s website and try again.” error msg.

    TWD is an accepted Paypal currency. Paypal account for both vendor and marketplace are set to be able to accept TWD. Tax and shipping settings are disabled so these aren’t issues. Using Version 1.7.6 with WP 4.2.3.

    Using Paypal AP as the only form of payment. Paypal AP works when:
    1. USD is chosen as currency for checkout OR
    2. Commission is set to 0% or 100%

    I am using “currency switcher” plugin and have the exchange rates set to nearest dollar (no cents).

    Sorry, not a programmer…so any help would be really appreciated!

    Also, looking forward to the release of the Pro version!

    #3733
    Kris Tarling
    Participant

    Had a slightly weird error occur which only affected one of our orders (Error ID 580022. Invalid request parameter: name must be 100 characters or less).

    The customer paid for the item, the payment was received by us and the vendor, but no emails were generated. Apparently, because the order was already marked as ‘cancelled’ even while payment was being received and stock updated etc.

    Here’s a screenshot of the order notes, which includes the error:

    order notes

    Any help you can give me in locating the cause of this problem would be gratefully received. Specifically, what ‘name’ does the error refer to? This seems rather vague to me.

    Thanks, Kris

    #3708
    esnow
    Participant

    Hey Jamie,

    These are the errors I get when I go back to the WordPress page after the failed PayPal payment.

    Error ID: 589023. If the fractional amount is rounded for currency conversion, funds could be lost
    Error ID: 580022. Invalid request parameter: payKey cannot be null

    The only factor that seems to break the PayPal payment is when I try to select “Give vendors any shipping collected per-product” under WC Vendor General Settings.

    Thanks,

    Erik

    #3582
    aand
    Participant

    I’m using the Paypal code for adaptive payments with WCvendors, and whenever there’s a free product on checkout, customers receive the following errors after completing Paypal payment and being returned to the shop:

    Error ID: 580022. Invalid request parameter: receiverOption.receiver(0).email

    And their order is then cancelled. I’m guessing Paypal doesn’t like being told to pay a vendor 0 🙂 Is there a workaround for this, or will I have to wait for the Pro version?

    #2866
    garywme
    Participant

    Hi there

    Firstly, great plugin. Its easily the best of its kind.

    But im stuck. I am trying to test purchasing a product in sandbox mode using Pay Pal adaptive payment method. I have set up an account in sandbox and entered my paypal email, api username, password, signature in the checkout settings of wordpress.

    When I go through the process of adding products to the cart, then proceed to pay, I get redirected to the sandbox paypal website, but it errors saying: This transaction is invalid. Please return to the recipient’s website and try again.

    When I return to the website, I see two error messages on my site:
    Error ID: 580028. The URL /wp-admin/admin-ajax.phpaction=woocommerce_checkout&order=581&key=wc_order_54dc39404e6c6 is malformed
    Error ID: 580022. Invalid request parameter: payKey cannot be null

    Any ideas whats going on here? Have spent hours on it but not making any progress.

    Thanks

    #1942
    lovelo
    Participant

    Hi.

    I use WCVendors and PayPal Adaptive Payment until recently without problems.

    Suddenly, some customers receive the following errors when they try to place an order:
    “This transaction is invalid. Please return to the recipients website and try again.” When they return, they get these errors:

    “Error ID 589023 if the fractional amount is rounded for currency conversion, founds could be lost.
    Error ID 580022 invalid request parameter: paykey cannot be null.”

    I’ve tried ordering myself, I don’t get these errors and everything seems to be fine.

    Hope you can help me with this matter.

    Kind regards,
    Line Johansen
    Lovelo.no

    #594
    alexsean
    Participant

    For installs I have WP v3.9.2, WC 2.1.12, and WC Vendors v1.1.3. PayPal Adaptive Payments is the only payment gateway enabled and I have sandbox mode enabled.

    If I do not have Enable Taxes checked; when I click “Place Order” I go to the PayPal payment screen and I am able to pay for the items. If I have Enable Taxes checked to go to PayPal and “This transaction is invalid. Please return to the recipient’s website and try again.” is displayed. When I go back to the site I get “Error ID: 589023. If the fractional amount is rounded for currency conversion, funds could be lost Error ID: 580022. Invalid request parameter: payKey cannot be null” error messages.

    We had Matt’s plugin installed and were getting the same errors. I was hoping upgrading to yours would solve the issue but not so much.

    Any help anyone could give me would be greatly appreciated.

    #428
    sunay
    Participant

    Hi Jamie,
    I know you said you’re away, but I wanted to put this up here so you see it whenever you log back in.

    After being able to make a sandbox payment, and all seemed to work fine, I now tried to switch to live credentials, and stuff is not working again…arrrgh.

    I posted in a new tread, but I’ll repeat here, because I think it is relevant to the chained payments issue.

    1) What happens if I want to sell products that are not by any vendor but by me (the website) meaning I may have stuff in stock that will be sold by me? How is that handled, do you know? Any suggestions?

    2) I have put all the live credentials in place:
    paypal email is the one I use to log in to paypal
    API username is the one that I find in Profile>Selling Tools>API credentials
    API pass and API signature are from the same place.
    I have created an app for advanced payments and have put it’s ID in too.

    However, I can’t seem to be able to checkout. It gives me Invalid Transaction Error.
    When I get back to the page and try again, it gives me this

    Error ID: 550001. User is not allowed to perform this action
    Error ID: 580022. Invalid request parameter: payKey cannot be null

    Is there anything else that needs to be done? As far as I know, that should be it…but for some reason not working as expected.

Viewing 35 results - 1 through 35 (of 35 total)