WooCommerce Pay for Payment


Añade cargos individuales para cada método de pago como una tarifa fija y/o porcentaje del total del carrito.
El plugin primero calcula la tasa de porcentaje y luego añade la tasa fija al final.

You can use placeholders in the payment item title:

  • [FIXED_AMOUNT]: Mostrará la cantidad fija que introduzcas en formato de moneda.
  • [PERCENT_AMOUNT]: Mostrará la cantidad que introduzcas en porcentaje
  • [CART_TOTAL]: Mostrará los totales del carro en formato de moneda.
  • Ejemplo: Cargo en el pago ([FIXED_AMOUNT] + [PERCENT_AMOUNT]% de [CART_TOTAL])

Requires at least WooCommerce 2.6, compatible with WooCommerce 3.2+ (recommended). The support for WC 2.6 will be dropped soon.


  • Fixed charge and/or a percentage of cart total
  • Possibility to disable for free/zero shipping
  • API del plugin. Visita GitHub para más detalles.



  • It seems that Mercadopago gateway is not handling WC_Fee correctly. Get in touch with Mercadopago support.
  • Mejor no lo uses con Paypal (por temas legales, revisa también la FAQ)
  • Doesn’t work on «Pay for order» pages (manually created orders or canceled payments), because of WC limitations

Agradecimiento especial


  • Interfaz de usuario. Puedes encontrar esto en cada configuración de pasarela de pago.
  • How to set up of WPML in String translation module.


¿Puedo usarlo con Paypal?

No. PayPal no permite cobrar a tus clientes por usar Paypal. Esto es más un asunto legal que técnico.
Revisa el acuerdo de usuario de PayPal, > «Reglas sobre recargos» para más detalles.
Estás avisado.

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-payment and than you should find a strings with name «{payment-method-slug} – charges fixed» or «{payment-method-slug} – item title». See the second screenshot.

No puede configurar mis requisitos de pago en la interfaz de usuario. La opción que necesito no está.

La interfaz de usuario del plugin solamente ofrece una cantidad fija o un porcentaje de los subtotales del carrito.
Si necesitas añadir cálculos más complejos como «sin cargo para pedidos de más de 100 euros» o »2 % del subtotal del carrito para pedidos de al menos 2 euros»,
tendrás que usar uno de estos filtros. Revisa la API del plugin para más detalles.

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.

Quiero usar los últimos archivos ¿Cómo puedo hacerlo?

Utiliza el repositorio de GitHub en vez del del plugins WordPress. Hazlo así:

  1. Si aún no lo has hecho: Instala git

  2. En la consola haz cd a tu directorio ‘wp-content/plugins´

  3. teclea git clone https://github.com/vyskoczilova/woocommerce-payforpayment o mejor, teclea git fork https://github.com/vyskoczilova/woocommerce-payforpayment

  4. Si quieres actualizar a los últimos archivos (ten cuidado, podrían no haberse probado en tu versión de WP) teclea `git pull´.

He encontrado un fallo. ¿Donde debería informar?

Personalmente prefiero GitHub para mantener esto al día. El código del plugin está aquí: GitHub
Pero también puedes usar el foro de WordPress.

He encontrado un fallo y lo he arreglado. ¿Donde puedo colaborar?

Puedes publicarlo en GitHub o—si trabajas en un repositorio clonado—envíame una petición de publicación.


10 de agosto de 2020
During online training I was advised to download this plugin. However, I got stuck as the template was not looking exactly like the training. I emailed Karolina and Voilá! She replied back in less than 12h, with a step-by-step video. I´m not tech-savvy and I wish I could find more "Karolinas". She saved my day.
21 de enero de 2020
I asked for a help and what is usually a problem was very simply done. Thank you Karolína great plugin!
Leer todas las 52 reseñas

Colaboradores y desarrolladores

«WooCommerce Pay for Payment» es un software de código abierto. Las siguientes personas han colaborado con este plugin.


«WooCommerce Pay for Payment» ha sido traducido a 6 idiomas locales. Gracias a los traductores por sus contribuciones.

Traduce «WooCommerce Pay for Payment» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

2.0.17 (2020-10-15)

2.0.16 (2020-08-10)

  • FIX: Unsupported operand types when adding settings to a payment (fixes Mercadopago fatal error)
  • FIX: Escape tax related settings.

2.0.15 (2020-05-23)

2.0.14 (2020-01-16) (2019-09-04)

  • Fix: Compatibility with WC 3.7.0 – Move saving settings to wp_loaded as WooCommerce does in PR #23091

2.0.12 (2018-02-03)

  • Fix: don’t add the fee when order and shipping amount is 0, see 2.0.11 for more details.

2.0.11 (2018-02-03)

  • Fix: don’t add the fee when order amount is 0. More details here.
  • Updated links in readme and plugin settings.
  • Github: implemented Probot

2.0.10 (2018-11-14)

  • Critical fix of 2.0.9 bug – COD could be anabled as well for «any» shipping method type (accidentaly slipped out from 2.0.9)

2.0.9 (2018-11-14)

  • Fix: Check if COD is enabled for current shipping method otherwise don’t add the fee.
  • Update: WC tested up to 3.5.1 and WP 5.0

2.0.8 (2018-10-17)

  • Fix: Check if logged in user is VAT exempt
  • Update: Return back translations (if installed from FTP, the WP.org translations are loaded after an update/manual install)
  • Update: WC tested up to

2.0.7 (2018-02-10)

  • Update: WC tested up to
  • Fix: added upport for gateways without default option format (#33) and fixed #20, thanks to David de Boer

2.0.6 (2017-10-29)

  • Fix: WC compatibility issue (solved in 2.0.4), compatible with both versions of WC
  • Fix: problem with WooCommerce Multilingual #24, only in WC 3.2+

2.0.5 (2017-10-29)

  • Fix: doubled fee in total
  • Fix: negative fee percentage

2.0.4 (2017-10-22)

  • Fix: WC_Cart->discount_total argument is deprecated error (by @bolint)
  • Fix: backwards compatibility to discount_total
  • Added banner & icon image to the WP repository (by Dušan Konečný)

2.0.3 (2017-10-19)

  • Fix: Compatibility issues with WC version 3.2 (thanks to Peter J. Herrel)

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 asumido por @vyskoczilova
  • totalmente compatible con 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)


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


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


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


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


  • Feature: Minimum and maximum charges.


  • Característica: Desactivar si la versión de WooCommerce es inferior a la requerida.
  • Fix: Missing Taxes


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


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


  • Fix: incorrect fee calculation.


  • Solución: Restringir de forma segura la cuota a 2 decimales.


  • 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.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,


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


  • 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


  • 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!)


  • Fix plugin URL


  • Versión inicial