Woocommerce Paypal



Woocommerce

  1. Woocommerce Paypal
  2. Woocommerce Paypal Plugin
  3. Woocommerce Paypal Setup
  4. Woocommerce Paypal Api Credentials
  5. Woocommerce Paypal Identity Token
  6. Woocommerce Paypal

There are two modules for WooCommerce that support Pay Later: WooCommerce PayPal Payments and PayPal Checkout. When you enable one of these modules and connect a PayPal account, Pay Later messaging is enabled by default. Note Ensure that PayPal Payments is at least on version 1.0. (Version 1.1.0 is recommended.). WooCommerce PayPal Payments is the only payments plugin that includes PayPal, Pay Later, credit and debit card processing, and local payment methods. By integrating with WooCommerce PayPal Payments you can: Offer full-stack payment processing – the choice of payment methods for your customers. Overview Braintree for WooCommerce (formerly PayPal Powered by Braintree) lets you accept credit cards and PayPal payments on your WooCommerce store via Braintree. Customers can save their credit card details or link a PayPal account to their WooCommerce user account for fast and easy checkout.

The WooCommerce plugin comes with its own free version of PayPal Standard. PayPal can be enabled via the WooCommerce settings and once your PayPal email is entered your WooCommerce shop is ready to take PayPal payments.

Now, there is extensive documentation online which explains, with a little bit of code, how to switch PayPal account programmatically and conditionally i.e. for a given product ID or product category slug. For example, you may want to use a PayPal account for consulting services, another for online courses and another for physical products.

By adding this simple code and hooking into woocommerce_paypal_args is indeed possible to use different / multiple PayPal Standard accounts in a single WooCommerce installation.

However, there is an outstanding problem with “IPN Validation“: once you tell WooCommerce to use a different PayPal email account, the WooCommerce order is correctly placed, but its status goes “on hold” because IPN validation on the PayPal end fails (and that’s because you’re using a different PayPal account).

So, here’s the fully working version, included the IPN validation fix. Please read the disclaimer below and – only then – enjoy!

Woocommerce Paypal

PHP Snippet: Use Different PayPal Standard Account For a Product ID @ WooCommerce Checkout

Woocommerce
Disclaimer: the snippet below MAY CAUSE side effects – use at your own risk. For example, it can mess with PayPal refund handling (better if you remove PayPal API keys from WooCommerce as refunds will now need to be done on your PayPal account) or generate other unknown errors. Customizing payment gateways is very dangerous and should be done only if you are aware of the potential consequences. Please test this thoroughly.

Woocommerce Paypal Plugin

Woocommerce paypal standard

Woocommerce Paypal Setup

Please note: the snippet below looks for a Product ID inside the order and switches PayPal email if successful. In case the order contains several products you’d need to find a workaround, for example by allowing only 1 product in the Cart.

Is There a (Reliable) Plugin For That?

If you’d love to code but don’t feel 100% confident with PHP, I decided to look for a reliable plugin that achieves the same result (well, actually it gives you more).

Woocommerce Paypal Api Credentials

In this case, I recommend the WooCommerce Multiple PayPal Accounts Plugin. On top of sending the whole order total to a different PayPal account based on total, billing country, category, tag, user role, shipping class, currency, you can also split payments between PayPal accounts, keep a commission as a store owner, integrate with WC Vendors and Dokan and much more.

Woocommerce Paypal Identity Token

But in case you hate plugins and wish to code (or wish to try that), then keep reading 🙂

Woocommerce Paypal

Related posts: