WooCommerce Pay for Payment

Description

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.

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.
  • Example: Payment Fee ([FIXED_AMOUNT] + [PERCENT_AMOUNT]% of [CART_TOTAL])

Requires at least WooCommerce 2.6, compatible with WooCommerce 3.1+ (recommended)

Features

  • Fixed charge and/or a percentage of cart total
  • Possibility to disable for free/zero shipping
  • Compatibility with WPML (see FAQ)
  • Translations in German, Spanish (muchas graçias!), Turkish (çok teşekkürler!), Czech (díky) and Italian localization (grazie)
  • Plugin API. See GitHub for details.

Limitations

  • Better not use it with paypal. (Legal issue, see FAQ as well.)

Special Credits

Screenshots

  • User interface. You can find this in every payment gateway configuration.
  • Example of WPML String translation for COD.

Installation

Just follow the standard WordPress plugin installation procedere.

FAQ

Installation Instructions

Just follow the standard WordPress plugin installation procedere.

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: admin_texts_woocommerce_{payment_method_slug}_settings replacing {payment_method_slug} with yours (for examle cod). 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:

  1. If you haven’t already done: Install git

  2. in the console cd into Your ‘wp-content/plugins´ directory

  3. type git clone https://github.com/vyskoczilova/woocommerce-payforpayment or better type git fork https://github.com/vyskoczilova/woocommerce-payforpayment

  4. 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.

Reviews

Genial

Lo utilizo para gestionar la comisión contra reembolso. Gratis, en castellano y buena calidad de código. ¡Un buen plugin sin duda! Gracias

Does not work

I can confirm that this plugin does NOT work well. It terminates the user session (leading to a ‘Session Expired’ message when selecting a payment method, other than the default one.

Furthermore, the extra charge does not change when I change my mind and choose for another payment method. For example when I select paypal, it charges 6% extra. This is to cover the sick Paypal transaction costs.

When i change my mind and select another payment method, there’s still the Paypal 6% extra charge visible. When I click on yet another payment method, it follows by adding the previously selected payment method.

So it all looks like a mess and I cannot use it (anymore)

Read all 31 reviews

Contributors & Developers

“WooCommerce Pay for Payment” is open source software. The following people have contributed to this plugin.

Contributors

“WooCommerce Pay for Payment” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “WooCommerce Pay for Payment” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

2.0.2 (2017-07-31)

  • Feature: Inner compatibility with WPML – fee title and fixed charges can be localized within “String translation” under “woocommerce-pay-for-payment” domain name. Removed wpml-config.xml.
  • Added: Italian and Dutch localization
  • Misc: Code tweaks and fixes (#16)
  • Fix: $fragment_refresh is not defined (#13)
  • Fix: Turn off plugin, if WC is not active
  • Fix: Undefined index: woocommerce_cod_pay4pay_tax_class (#12)

2.0.1 (2017-05-22)

  • Feature: check WC version, minimum version 2.6 (by @oerdnj)
  • Fix: translatable pay4pay_charges_fixed (WPML support)
  • Fix: disable on free shipping (for WC 2.6+)
  • Fix: disable on zero shipping – added missing settings field

2.0.0 (2017-05-15)

  • plugin overtaken by @vyskoczilova
  • fully compatible with WC 3.0+
  • Added: Czech localization
  • Added: Disable on zero shipping (by @panvagenas)
  • Fix: support for WC 2.6+ (by @oerdnj)
  • Fix: tax_rates notice (by @javierrguez)

1.3.7

  • l10n: change textdomain to ‘woocommerce-pay-for-payment’ to make it work with translate.wordpress.org

1.3.6

  • Fix: compatibility with Amazon Payments and also with Woocommerce 2.4
  • Fix: PHP Warning on shopping basket

1.3.5

  • Fix: make it work with stripe for woocommerce by Stephen Zuniga

1.3.4

  • Code Refactoring: set plugin textdomain to plugin slug
  • Translations: Minor correction in español and german translations

1.3.3

  • Feature: Minimum and maximum charges.

1.3.2

  • Feature: Deactivate if WooCommerce version is below requirement.
  • Fix: Missing Taxes

1.3.1

  • Fix Admin: Payment gateway Class not found (may occur with 3rd party gateways)
  • Fix: textdomain loading
  • Update turkish localisation

1.3.0

  • Feature: Enhanced UI
  • Feature: Select tax class to be applied to payment fee
  • Feature: Select if cart taxes will be included on payment fee calculation
  • Feature: Placeholders in fee title.
  • Fixes: completely repeat all WooCommerce tax and fee calculation steps after payment fee has been added.

1.2.5

  • Fix: incorrect fee calculation.

1.2.3

  • Fix: Safely Restrict payment fee to 2 Decimals.

1.2.2

  • Fix: Calculate taxes
  • Fix: cart contents taxes and shipping taxes included into fee calculation
  • Refactoring: Discard cart_has_fee() check, as it is already done by WooCommerce

1.2.1

1.2.0 (2014-08-09)

  • Feature: add option to disable payment fee when free shipping is selected
  • Feature: add pay4pay column in WooCommerce checkout settings
  • Plugin-API: add filter woocommerce_pay4pay_apply
  • Code Refactoring: separated admin UI from frontend to keep things lean.
  • Code Refactoring: use function WC() (available since WC 2.1) in favour of global $woocommerce.
  • Compatibility: requires at least WC 2.1.x,

1.1.1

  • Added wpml configuration file to keep compatibility with https://wordpress.org/plugins/woocommerce-multilingual/

1.1.0

  • Added option to include shipping cost in fee calculation
  • Fixed issue where malformed amounts where sent to external payment services in WC 2.1.6

1.0.2

  • Fixed an issue where Pay4Pay options did not show up after saving checkout settings in WC 2.1.0
  • Updated turkish translation (Thanks a lot!)

1.0.1

  • Fix plugin URL

1.0.0

  • Initial release