Skip to content

Commit 9f75699

Browse files
authored
v 1.8.11
v 1.8.11 - [Improvement] - Applepay payment option no longer depends on device and browser type
2 parents 14c0628 + 5c3f8a5 commit 9f75699

6 files changed

Lines changed: 12 additions & 29 deletions

File tree

Readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: Frisbii, billwerk+, visa, mastercard, dankort, mobilepay
44
Requires at least: 4.0
55
Tested up to: 6.8
66
Requires PHP: 7.4
7-
Stable tag: 1.8.10.1
7+
Stable tag: 1.8.11
88
License: GPL
99
License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
1010

@@ -18,6 +18,9 @@ The Frisbii Pay plugin extends WooCommerce allowing you to take payments on your
1818
See installation guide right here: https://docu.billwerk.plus/help/en/apps/woocommerce/setup-woocommerce-plugin.html
1919

2020
== Changelog ==
21+
v 1.8.11
22+
- [Improvement] - Applepay payment option no longer depends on device and browser type
23+
2124
v 1.8.10.1
2225
- [Fix] - Saved card issue with Applepay when Applepay is selected from the general payment method
2326
- [Fix] - Missing ajax nonce reference on thank you page when “Don´t show prorated information” is disabled

assets/css/checkout.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
list-style: none;
44
}
55

6-
li.payment_method_reepay_applepay,
76
li.payment_method_reepay_googlepay{
87
display: none;
98
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Get a plug-n-play payment solution for WooCommerce, that is easy to use, highly secure and is built to maximize the potential of your e-commerce.",
44
"type": "wordpress-plugin",
55
"license": "GPL",
6-
"version": "1.8.10.1",
6+
"version": "1.8.11",
77
"autoload": {
88
"psr-4": {
99
"Reepay\\Checkout\\": "includes/",

includes/Gateways/ApplePay.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
namespace Reepay\Checkout\Gateways;
99

10-
use Reepay\Checkout\Frontend\Assets;
11-
1210
defined( 'ABSPATH' ) || exit();
1311

1412
/**
@@ -66,32 +64,10 @@ public function __construct() {
6664

6765
$this->apply_parent_settings();
6866

69-
if ( 'yes' === $this->enabled ) {
70-
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_additional_assets' ), 10000 );
71-
}
72-
7367
add_action( 'wp_ajax_reepay_card_store_' . $this->id, array( $this, 'reepay_card_store' ) );
7468
add_action( 'wp_ajax_nopriv_reepay_card_store_' . $this->id, array( $this, 'reepay_card_store' ) );
7569
}
7670

77-
/**
78-
* Additional gateway assets
79-
*/
80-
public function enqueue_additional_assets() {
81-
wp_add_inline_script(
82-
Assets::SLUG_CHECKOUT_JS,
83-
"
84-
jQuery('body').on('updated_checkout', function () {
85-
if (true == Reepay.isApplePayAvailable()) {
86-
for (let element of document.getElementsByClassName('wc_payment_method payment_method_reepay_applepay')) {
87-
element.style.display = 'block';
88-
}
89-
}
90-
});
91-
"
92-
);
93-
}
94-
9571
/**
9672
* If There are no payment fields show the description if set.
9773
*

reepay-woocommerce-payment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Description: Get a plug-n-play payment solution for WooCommerce, that is easy to use, highly secure and is built to maximize the potential of your e-commerce.
55
* Author: Frisbii
66
* Author URI: https://frisbii.com
7-
* Version: 1.8.10.1
7+
* Version: 1.8.11
88
* Text Domain: reepay-checkout-gateway
99
* Domain Path: /languages
1010
* WC requires at least: 3.0.0

tests/unit/orderFlow/OrderStatusesTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,12 @@ public function test_payment_complete( string $expected_status ) {
195195
$this->markTestSkipped( 'Reepay subscriptions activated. It\'s changing default function behavior via filter' );
196196
}
197197

198-
$this->order_generator->set_prop( 'payment_method', reepay()->gateways()->checkout() );
198+
$this->order_generator->set_props(
199+
array(
200+
'payment_method' => reepay()->gateways()->checkout(),
201+
'status' => 'on-hold',
202+
)
203+
);
199204

200205
self::$options->set_options(
201206
array(

0 commit comments

Comments
 (0)