22/*
33 * Plugin Name: Aplazame
44 * Plugin URI: https://github.com/aplazame/woocommerce
5- * Version: 4.0.1
5+ * Version: 4.0.2
66 * Description: Aplazame offers a payment method to receive funding for the purchases.
77 * Author: Aplazame
88 * Author URI: https://aplazame.com
1111 * Domain Path: /i18n/languages/
1212 *
1313 * WC requires at least: 3.0.0
14- * WC tested up to: 8.6 .1
14+ * WC tested up to: 8.9 .1
1515 *
1616 * License: GNU General Public License v3.0
1717 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
2525require_once 'lib/Aplazame/Aplazame/autoload.php ' ;
2626
2727class WC_Aplazame {
28- const VERSION = '4.0.1 ' ;
28+ const VERSION = '4.0.2 ' ;
2929 const METHOD_ID = 'aplazame ' ;
3030 const METHOD_TITLE = 'Aplazame ' ;
3131
@@ -165,11 +165,11 @@ public function __construct( $apiBaseUri ) {
165165 add_action ( 'woocommerce_api_aplazame ' , array ( $ this , 'api_router ' ) );
166166
167167 // Cart and Checkout Blocks
168- add_action ( 'woocommerce_blocks_loaded ' , array ( $ this , 'add_gateway_block ' ) );
168+ add_action ( 'woocommerce_blocks_loaded ' , array ( $ this , 'add_gateway_block ' ) );
169169 add_action (
170170 'before_woocommerce_init ' ,
171- function () {
172- if ( class_exists ('\Automattic\WooCommerce\Utilities\FeaturesUtil ' ) ) {
171+ function () {
172+ if ( class_exists ( '\Automattic\WooCommerce\Utilities\FeaturesUtil ' ) ) {
173173 \Automattic \WooCommerce \Utilities \FeaturesUtil::declare_compatibility ( 'cart_checkout_blocks ' , __FILE__ , true );
174174 }
175175 }
@@ -179,7 +179,7 @@ function() {
179179 add_action (
180180 'before_woocommerce_init ' ,
181181 function () {
182- if ( class_exists ('\Automattic\WooCommerce\Utilities\FeaturesUtil ' ) ) {
182+ if ( class_exists ( '\Automattic\WooCommerce\Utilities\FeaturesUtil ' ) ) {
183183 \Automattic \WooCommerce \Utilities \FeaturesUtil::declare_compatibility ( 'custom_order_tables ' , __FILE__ , true );
184184 }
185185 }
@@ -288,15 +288,15 @@ public function add_gateway( $methods ) {
288288 }
289289
290290 public function add_gateway_block () {
291- if ( ! class_exists ( 'Automattic\WooCommerce\Blocks\Payments\Integrations\AbstractPaymentMethodType ' ) ) {
291+ if ( ! class_exists ( 'Automattic\WooCommerce\Blocks\Payments\Integrations\AbstractPaymentMethodType ' ) ) {
292292 return ;
293293 }
294294
295295 include_once 'classes/wc-aplazame-gateway-block.php ' ;
296296 add_action (
297297 'woocommerce_blocks_payment_method_type_registration ' ,
298- function ( Automattic \WooCommerce \Blocks \Payments \PaymentMethodRegistry $ payment_method_registry ) {
299- $ payment_method_registry ->register ( new WC_Aplazame_Gateway_Blocks_Support );
298+ function ( Automattic \WooCommerce \Blocks \Payments \PaymentMethodRegistry $ payment_method_registry ) {
299+ $ payment_method_registry ->register ( new WC_Aplazame_Gateway_Blocks_Support () );
300300 }
301301 );
302302 }
0 commit comments