Changeset 3108127
- Timestamp:
- 06/26/2024 12:56:02 PM (20 months ago)
- Location:
- ventipay
- Files:
-
- 8 added
- 6 edited
- 1 copied
-
tags/2.2.1 (copied) (copied from ventipay/trunk)
-
tags/2.2.1/assets/js (added)
-
tags/2.2.1/assets/js/ventipay_checkout.js (added)
-
tags/2.2.1/blocks (added)
-
tags/2.2.1/blocks/wc-gateway-ventipay.php (added)
-
tags/2.2.1/includes/class-wc-gateway-ventipay.php (modified) (1 diff)
-
tags/2.2.1/readme.txt (modified) (1 diff)
-
tags/2.2.1/ventipay.php (modified) (3 diffs)
-
trunk/assets/js (added)
-
trunk/assets/js/ventipay_checkout.js (added)
-
trunk/blocks (added)
-
trunk/blocks/wc-gateway-ventipay.php (added)
-
trunk/includes/class-wc-gateway-ventipay.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/ventipay.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ventipay/tags/2.2.1/includes/class-wc-gateway-ventipay.php
r3077772 r3108127 333 333 if (!empty($meta_payment_id)) { 334 334 if ('pending' === $order->get_status()) { 335 ?> 336 <script> 337 setTimeout(() => { 338 window.location.reload(true) 339 }, 10000) 340 </script> 341 <?php 342 335 343 $message = [ 336 '<script type="text/javascript">setTimeout(function() { window.location.reload(true); }, 10000);</script>',337 344 '<div class="woocommerce-info">', 338 345 '<span>', -
ventipay/tags/2.2.1/readme.txt
r3077772 r3108127 3 3 Tags: ventipay, transbank, webpay, bnpl, chile 4 4 Requires at least: 6.5 5 Tested up to: 6.5. 26 Stable tag: 2. 1.05 Tested up to: 6.5.3 6 Stable tag: 2.2.1 7 7 Requires PHP: 7.0 8 8 License: MIT -
ventipay/tags/2.2.1/ventipay.php
r3077772 r3108127 6 6 * Author: VentiPay 7 7 * Author URI: https://www.ventipay.com/ 8 * Version: 2. 1.08 * Version: 2.2.1 9 9 * Requires at least: 6.5 10 * Tested up to: 6.5. 210 * Tested up to: 6.5.3 11 11 * WC requires at least: 8.0.0 12 * WC tested up to: 8. 8.212 * WC tested up to: 8.9.1 13 13 * Text Domain: ventipay 14 14 * Domain Path: /languages … … 42 42 add_action('plugins_loaded', 'ventipay_init_gateway_class'); 43 43 add_action('wp_enqueue_scripts', 'ventipay_setup_scripts'); 44 add_action('before_woocommerce_init', 'ventipay_declare_features_util_compatibility'); 45 add_action('woocommerce_blocks_loaded', 'ventipay_blocks_loaded'); 44 46 45 47 /** … … 59 61 require_once dirname( __FILE__ ) . '/includes/class-wc-gateway-ventipay.php'; 60 62 } 63 64 function ventipay_declare_features_util_compatibility() 65 { 66 if (!class_exists('\Automattic\WooCommerce\Utilities\FeaturesUtil')) { 67 return; 68 } 69 70 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('cart_checkout_blocks', __FILE__, true); 71 72 // checking woocommerces version for hpos 73 if (version_compare(WC_VERSION, '8.2', '>=')) { 74 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('custom_order_tables', __FILE__, true); 75 } 76 } 77 78 function ventipay_blocks_loaded() 79 { 80 if (!class_exists('Automattic\WooCommerce\Blocks\Payments\Integrations\AbstractPaymentMethodType')) { 81 return; 82 } 83 84 require_once dirname( __FILE__ ) . '/blocks/wc-gateway-ventipay.php'; 85 86 add_action( 87 'woocommerce_blocks_payment_method_type_registration', 88 function( Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry $payment_method_registry ) { 89 $payment_method_registry->register(new WC_Block_Gateway_VentiPay()); 90 } 91 ); 92 } 61 93 ?> -
ventipay/trunk/includes/class-wc-gateway-ventipay.php
r3077772 r3108127 333 333 if (!empty($meta_payment_id)) { 334 334 if ('pending' === $order->get_status()) { 335 ?> 336 <script> 337 setTimeout(() => { 338 window.location.reload(true) 339 }, 10000) 340 </script> 341 <?php 342 335 343 $message = [ 336 '<script type="text/javascript">setTimeout(function() { window.location.reload(true); }, 10000);</script>',337 344 '<div class="woocommerce-info">', 338 345 '<span>', -
ventipay/trunk/readme.txt
r3077772 r3108127 3 3 Tags: ventipay, transbank, webpay, bnpl, chile 4 4 Requires at least: 6.5 5 Tested up to: 6.5. 26 Stable tag: 2. 1.05 Tested up to: 6.5.3 6 Stable tag: 2.2.1 7 7 Requires PHP: 7.0 8 8 License: MIT -
ventipay/trunk/ventipay.php
r3077772 r3108127 6 6 * Author: VentiPay 7 7 * Author URI: https://www.ventipay.com/ 8 * Version: 2. 1.08 * Version: 2.2.1 9 9 * Requires at least: 6.5 10 * Tested up to: 6.5. 210 * Tested up to: 6.5.3 11 11 * WC requires at least: 8.0.0 12 * WC tested up to: 8. 8.212 * WC tested up to: 8.9.1 13 13 * Text Domain: ventipay 14 14 * Domain Path: /languages … … 42 42 add_action('plugins_loaded', 'ventipay_init_gateway_class'); 43 43 add_action('wp_enqueue_scripts', 'ventipay_setup_scripts'); 44 add_action('before_woocommerce_init', 'ventipay_declare_features_util_compatibility'); 45 add_action('woocommerce_blocks_loaded', 'ventipay_blocks_loaded'); 44 46 45 47 /** … … 59 61 require_once dirname( __FILE__ ) . '/includes/class-wc-gateway-ventipay.php'; 60 62 } 63 64 function ventipay_declare_features_util_compatibility() 65 { 66 if (!class_exists('\Automattic\WooCommerce\Utilities\FeaturesUtil')) { 67 return; 68 } 69 70 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('cart_checkout_blocks', __FILE__, true); 71 72 // checking woocommerces version for hpos 73 if (version_compare(WC_VERSION, '8.2', '>=')) { 74 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('custom_order_tables', __FILE__, true); 75 } 76 } 77 78 function ventipay_blocks_loaded() 79 { 80 if (!class_exists('Automattic\WooCommerce\Blocks\Payments\Integrations\AbstractPaymentMethodType')) { 81 return; 82 } 83 84 require_once dirname( __FILE__ ) . '/blocks/wc-gateway-ventipay.php'; 85 86 add_action( 87 'woocommerce_blocks_payment_method_type_registration', 88 function( Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry $payment_method_registry ) { 89 $payment_method_registry->register(new WC_Block_Gateway_VentiPay()); 90 } 91 ); 92 } 61 93 ?>
Note: See TracChangeset
for help on using the changeset viewer.