NOTE
This product is no longer sold on WooCommerce.com. This document has been left available for existing users, but will no longer be updated.
PayPal Adaptive Payments handles payments between a sender of a payment and one or more receivers of the payment. It’s possible to split the order total with secondary receivers, so you can pay commissions or partners.
Payment methods
↑ Back to topThis extension supports:
Parallel payments
Enable a sender to send a single payment to multiple receivers (you + five receivers). For example, your shopping cart allows a buyer to pay for items from several merchants with one payment, then allocates payment to merchants that provided the items. PayPal deducts money from the sender’s account and deposits it in the receivers’ accounts.
Chained payments
Enable a sender to send a single payment to a primary receiver. The primary receiver keeps part of the payment and pays the remainder to (up to nine) secondary receivers.
For example, you’re an online travel agency that handles bookings for airfare, hotel reservations and car rentals. The sender only sees you as the primary receiver, and you allocate payment for your commission and the actual cost of services provided by other receivers. PayPal then deducts money from the sender’s account and deposits it in both your account and the secondary receivers’ accounts.
Simple payments
Enable a sender to send a single payment to a single receiver. For example, your website takes payment and transfers money from the customer’s PayPal account to your own, as a result of a sale. This is a traditional payment.
This work automatically when there are no other recipients or receivers.
Action by you: An SSL certificate is now required for sandbox testing and by 30 June 2017 for all PayPal transactions. See Where to get an SSL certificate and What is SSL and https for more info.
Installation
↑ Back to top- Download the .zip file from your WooCommerce.com account.
- Go to: WordPress Admin > Plugins > Add New to upload the file you downloaded with Choose File.
- Activate the extension.
More information at: Installing and Managing Plugins.
Sign up for PayPal credentials
↑ Back to topOpen a PayPal Business or Premier account
↑ Back to topYou must have a PayPal Business or Premier account to generate APIs keys for this plugin. PayPal Adaptive Payments is a limited release product, subject to approval by PayPal.
- Go to PayPal and sign up or log in.
- Go to: Profile >Â Profile and settings >Â My selling tools
- Click the Update link for API Access.
4. On API Access page, select Option 2 by clicking Request API credentials:
5. Select Request API signature and click the Agree and Submit button:
6. Copy your API data to use for Setup and Configuration (below).
Create a Live App ID
↑ Back to top- Go to PayPal Developer, and log in.
- Go to Dashboard, and click the My Apps & Credentials link.
3. Scroll down and click Manage NVP/SOAP API apps.
4. Click the New Application link.
5. Enter App Information, such as the Title and Description.
6. Select Web for the platform, and Adaptive Payments for Services used by app.
7. Click the Submit App button.
PayPal will review your app. When it is accepted, you will have access to your Live PayPal Application IDÂ to use for Setup and Configuration (next).
Setup and Configuration
↑ Back to topPayPal Adaptive extension
↑ Back to top- Go to: WooCommerce > Settings > Payments.
Note: ‘Payments’ formerly called ‘Checkout’ prior to WooCommerce 3.4. - Select PayPal Adaptive Payments. You are taken to the Settings screen.
- Configure your settings:
- Enable/Disable – Enable to use. Disable to turn off.
- Title – Choose the title shown to customers during checkout
- Description – Add info shown to customers if they use PayPal Adaptive
- Enter API Credentials from your PayPal account
- PayPal API Username
- PayPal API Password
- PayPal API Signature
- PayPal Application ID
- Payments
- Enter the email address you use for PayPal payments in the Receiver Email field. This is important.
- Payment Method – Select from the dropdown
- Invoice Prefix (optional). This is helpful if you’re using the same PayPal account for more than one website/store.
- Design – Enter the URL of an image (see Payment page customization below)
- Gateway Testing
- PayPal sandbox – Enable if in development or testing. Remember to disable when ready to go live.
- Debug log – Enable if troubleshooting. Otherwise, leave disabled.
- Save changes.
Payment page customization
↑ Back to topPayPal Adaptive sends customers to PayPal to complete payment. You can customize this page by including your own logo. Add the URL to the logo in the Header Image field. The recommended size is 70×950 pixels.
If you choose to leave blank the Header Image field, your site’s name (as set in WordPress settings) will be shown instead.
An example custom logo header is shown in the Customer Flow section.
Payments
↑ Back to topAll receivers of payment must be set up by entering their email addresses and the percentage they receive per sale in each Product they’re associated with.
- Go to WooCommerce > Products, then the individual Product.
- Scroll down to Product Data.
- Go to the PayPal Adaptive Payments tab.
- Enter the receiver’s email address and a percentage.
Enter each receiver’s email and the percentage (no % symbol), separated by a pipe (|). One receiver per line. For example:
ninja@email.com|20 | |
sensei@email.com|15 |
- Only use other people’s email addresses, not your own. Your email is configured in the plugin options.
- Total percentage may not exceed 100%, The remainder is what you receive.
The payment process occurs as typical for a WooCommerce PayPal integration, and the PayPal Adaptive Payments plugin automatically sets up the refund and notification URLs for you.
Customer flow
↑ Back to topIn this example, the customer is checking out with a single £9 item that has been set up with a commission of 20% to ninja@email.com, 15% to sensei@email.com and the remainder to the shop owner.
The checkout option looks the same as any other PayPal payment gateway. In this example, the demo text has been added to show that it really is the PayPal Adaptive gateway:
The customer is sent to PayPal to complete the payment. The Custom Logo field has a logo that is 90×750 pixels.
The customer is prompted to choose the payment method and click Pay:
Once payment has been completed successfully, the customer is returned to the WooCommerce site and shown the default order confirmation page:
For Developers
↑ Back to topYou can dynamically assign receivers using the woocommerce_paypal_ap_payment_args
filter. For example:
<?php | |
/** | |
* Custom PayPal Adaptive Payments args. | |
* | |
* @param array $args | |
* @param WC_Order $order | |
* @return array | |
*/ | |
function custom_woocommerce_paypal_ap_payment_args( $args, $order ) { | |
$args['receiverList'] = array( | |
'receiver' => array( | |
array( | |
'amount' => '40.00', | |
'email' => 'your@email.com', | |
// 'primary' => 'true' // use this only for Chained Payment. | |
) | |
), | |
'receiver' => array( | |
array( | |
'amount' => '15.00', | |
'email' => 'receiver1@email.com' | |
) | |
), | |
'receiver' => array( | |
array( | |
'amount' => '60.00', | |
'email' => 'receiver2@email.com' | |
) | |
) | |
); | |
return $args; | |
} | |
add_filter( 'woocommerce_paypal_ap_payment_args', 'custom_woocommerce_paypal_ap_payment_args', 10, 2 ); |
Frequently Asked Questions
↑ Back to topIs this compatible with Subscriptions?
↑ Back to topFor recurring payments, no. For manual payments, yes. The only way to use Adaptive Payments with WooCommerce Subscriptions would be to have manual subscriptions set up.
Questions and Feedback
↑ Back to topHave a question before you buy? Please fill out this pre-sales form.
Already purchased and need some assistance? Get in touch with a Happiness Engineer via the Help Desk.