sandywp / plugins / woocommerce-pay-for-payment
Pay for Payment for WooCommerce
Setup individual charges for each payment method in WooCommerce.
Ready in seconds.
v2.2.2 10,000+ installs WP 4.6+

What you get inside
2 screens-
User interface. You can find this in every payment gateway configuration.
-
How to set up of WPML in String translation module.
About this plugin
Add individual charges for each payment method as a flat rate and/or as a percentage of the cart total. The plugin first calculates the percentage rate and then adds the fixed rate on top.
Now compatible with React-based payment gateways! Configure payment fees for all gateways (including WooCommerce Stripe) using the new centralized settings tab at WooCommerce > Settings > Pay for payment.
You can use placeholders in the payment item title:
- [FIXED_AMOUNT]: Will print money-formatted fixed amount you entered.
- [PERCENT_AMOUNT]: will print out percental amount you entered
- [CART_TOTAL]: will print out money-formatted cart totals.
- [MINIMUM_AMOUNT]: will print out money-formatted minimum amount you entered when calculating percentage fee.
- [MAXIMUM_AMOUNT]: will print out money-formatted maximum amount you entered when calculating percentage fee.
- Example:
Payment Fee ([FIXED_AMOUNT] + [PERCENT_AMOUNT]% of [CART_TOTAL])
Requires at least WooCommerce 2.6, compatible with WooCommerce 3.2+ (recommended). The support for WC 2.6 will be dropped soon.
Features
- Fixed charge and/or a percentage of cart total
- Possibility to disable for free/zero shipping
- Plugin API. See GitHub for details.
Compatibility
- Now compatible with React-based payment gateways including WooCommerce Stripe Payment Gateway! Use the centralized “Pay for payment” settings tab (WooCommerce > Settings > Pay for payment) to configure fees for React-based gateways.
- WPML (see FAQ)
- WooCommerce Price Based on Country for WooCommerce & PRO
- Multi Currency for WooCommerce & PRO
- WooCommerce Multi-Currency when the store currency is USD
- YayCurrency PRO
- WOOCS
Limitations
- It seems that Mercadopago gateway is not handling WC_Fee correctly. Get in touch with Mercadopago support (and I’m happy to help them fix the issue)
- Better not use it with PayPal. (Legal issue, see FAQ as well.)
- Doesn’t work on “Pay for order” pages (manually created orders or canceled payments), because of WC limitations
Special Credits
- to Jörn Lund (@podpirate) who have developed this plugin and abandoned it in 2016.
Questions
- Can I use it with PayPal?
No. PayPal does not permit charging your customer for using PayPal. This is a legal issue rather than a technical one.
See PayPal User Agreement, > “4.6 No Surcharges” for details.
You have been warned.- WPML – How to translate?
If you need to localize Fee title and Fixed charge go to go to WPML > String translation and look for following type of text domain:
woocommerce-pay-for-paymentand than you should find a strings with name “{payment-method-slug} – charges fixed” or “{payment-method-slug} – item title”. See the second screenshot.- Can’t to setup my payment requirements in the user interface. The option I need is missing.
The plugin user interface only offers either a fixed amout or a percentage of the carts subtotal.
If you need to implement more complex calcuations like ‘no charges for orders above 100 Bucks’ or ‘2% of cart subtotal but at least 2 Bucks’,
you’ll have to use one of the filters. See Plugin API for details.woocommerce_pay4pay_apply specifies if a charge will be applied. woocommerce_pay4pay_applyfor_{$payment_gateway_id} specifies if a charge will be applied on a certain payment method. woocommerce_pay4pay_{$payment_gateway_id}_amount allows you to alter the amount of the charge being added.- I want to use the latest files. How can I do this?
Use the GitHub Repo rather than the WordPress Plugin. Do as follows:
-
If you haven’t already done: Install git
-
In the console cd into Your ‘wp-content/plugins´ directory
-
type
git clone https://github.com/vyskoczilova/woocommerce-payforpaymentor better typegit fork https://github.com/vyskoczilova/woocommerce-payforpayment -
If you want to update to the latest files (be careful, might be untested on Your WP-Version) type `git pull´.
-
- I found a bug. Where should I post it?
I personally prefer GitHub, to keep things straight. The plugin code is here: GitHub
But you may use the WordPress Forum as well.- I found a bug and fixed it. How can I contribute?
Either post it on GitHub or—if you are working on a cloned repository—send me a pull request.
sandywp / also on the shelf
Try another plugin
4.5 · 7M+ installs
Everything you need to launch an online store in days and keep it growing for years. From your first sale to millions in revenue,…
-
🤩 Make popups & optin forms to get more email newsletter subscribers, leads, and sales - #1 most popular popup builder…
2.8 · 800K+ installs
PayPal's latest payment processing solution. Accept PayPal, Pay Later, credit/debit cards, alternative digital wallets and bank…
Spin up a real WordPress site in seconds.
Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.