Skip to content

Commit

Permalink
Added compatibility with Eurobank WooCommerce Payment Gateway]
Browse files Browse the repository at this point in the history
  • Loading branch information
vyskoczilova committed Oct 4, 2021
1 parent fd4e8d6 commit 59b2b35
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://paypal.me/KarolinaVyskocilova
Tags: ecommerce, woocommerce, payment gateway, fee
Requires at least: 4.6
Tested up to: 5.8
Stable tag: 2.1.3
Stable tag: 2.1.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -100,6 +100,10 @@ Either post it on [GitHub](https://github.com/vyskoczilova/woocommerce-payforpay

== Changelog ==

= 2.1.4 (2021-10-04) =

* Fix: Added compatibility with [Eurobank WooCommerce Payment Gateway](https://el.wordpress.org/plugins/woo-payment-gateway-for-eurobank/) plugin

= 2.1.3 (2021-09-16) =

* Fix - WPML exchange rates (apply filter `wcml_raw_price_amount`)
Expand Down
7 changes: 7 additions & 0 deletions inc/class-pay4pay-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,13 @@ public function update_payment_options() {
global $current_section;

$class_id = $current_section;

// Fix for Eurobank WooCommerce Payment Gateway https://el.wordpress.org/plugins/woo-payment-gateway-for-eurobank/
// TODO add filter and move this to filter.
if ( $class_id === 'wc_eurobank_gateway') {
$class_id = "eurobank_gateway";
}

$prefix = 'woocommerce_' . $class_id;
$postfix = '_settings';

Expand Down
4 changes: 2 additions & 2 deletions woocommerce-payforpayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
Plugin Name: Pay for Payment for WooCommerce
Plugin URI: https://kybernaut.cz/pluginy/woocommerce-pay-for-payment/
Description: Setup individual charges for each payment method in WooCommerce.
Version: 2.1.3
Version: 2.1.4
Author: Karolína Vyskočilová
Author URI: https://kybernaut.cz
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Text Domain: woocommerce-pay-for-payment
Domain Path: /languages
WC requires at least: 2.6
WC tested up to: 5.5.2
WC tested up to: 5.7.1
*/

/**
Expand Down

0 comments on commit 59b2b35

Please sign in to comment.