Changeset 3182959
- Timestamp:
- 11/06/2024 08:47:54 AM (17 months ago)
- Location:
- allpay-payment-gateway/trunk
- Files:
-
- 5 added
- 2 edited
-
allpay-gateway.php (modified) (3 diffs)
-
classes (added)
-
classes/class-allpay-blocks-integration.php (added)
-
classes/class-allpay.php (added)
-
js (added)
-
js/allpay-payment-block.js (added)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
allpay-payment-gateway/trunk/allpay-gateway.php
r3014084 r3182959 3 3 * Plugin Name: Allpay payment gateway 4 4 * Plugin URI: https://www.allpay.co.il/integrations/woocommerce 5 * Description: Allpay Payment Gateway for WooCommerce .5 * Description: Allpay Payment Gateway for WooCommerce to accepts Visa, Mastercard, Diners, AmEx and other brands. 6 6 * Author: Allpay 7 7 * Author URI: https://allpay.co.il 8 * Version: 1. 0.48 * Version: 1.1.0 9 9 * Text Domain: allpay-payment-gateway 10 10 * Domain Path: /languages 11 * Tested up to: 6. 412 * WC tested up to: 8.4.011 * Tested up to: 6.6.2 12 * WC tested up to: 9.3.3 13 13 * WC requires at least: 3.0 14 14 * … … 21 21 if ( ! defined( 'ABSPATH' ) ) exit; 22 22 23 add_action( 'plugins_loaded', 'allpay_init', 0 ); 23 add_action( 'plugins_loaded', 'allpay_init', 0 ); 24 25 use Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry; 24 26 25 27 function allpay_init() { 26 // If the parent WC_Payment_Gateway class doesn't exist 27 // it means WooCommerce is not installed on the site 28 // so do nothing 28 29 29 if ( ! class_exists( 'WC_Payment_Gateway' ) ) return; 30 31 include_once( 'classes/class-allpay.php' ); 32 include_once( 'classes/class-allpay-blocks-integration.php' ); 30 33 31 34 // plugin translation 32 35 load_plugin_textdomain( 'allpay-payment-gateway', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); 33 36 34 include_once( 'allpay.php' ); 35 36 add_filter( 'woocommerce_payment_gateways', 'allpay_gateway' ); 37 function allpay_gateway( $methods ) { 37 function add_allpay_gateway( $methods ) { 38 38 $methods[] = 'WC_Allpay'; 39 39 return $methods; 40 40 } 41 41 add_filter( 'woocommerce_payment_gateways', 'add_allpay_gateway' ); 42 43 // blocks 44 if ( class_exists( 'Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry' ) && class_exists( 'Automattic\WooCommerce\Blocks\Payments\Integrations\AbstractPaymentMethodType' ) ) { 45 add_action( 'woocommerce_blocks_payment_method_type_registration', function ( Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry $payment_method_registry ) { 46 $payment_method_registry->register( new AllpayBlocksIntegration() ); 47 } ); 48 } 42 49 } 43 50 … … 52 59 return array_merge( $plugin_links, $links ); 53 60 } 61 62 // поддержка HPOS 63 add_action( 'before_woocommerce_init', function() { 64 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { 65 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); //__FILE__ должен вести в основному файлу вашего плагина 66 } 67 } ); 68 69 70 71 -
allpay-payment-gateway/trunk/readme.txt
r3014084 r3182959 4 4 Requires PHP: 5.6 5 5 Requires at least: 4.7 6 Tested up to: 6. 47 Stable tag: 1. 0.46 Tested up to: 6.6.2 7 Stable tag: 1.1.0 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 57 57 58 58 = How frequent are funds credited to the bank account? = 59 Every 15th day of month.59 Every 6th day of month. 60 60 61 61 == Changelog == 62 = 1.1.0 - 6TH NOVEMBER 2024 = 63 * New: Support of HPOS 64 * New: Adapted to new WooCommerce checkout page 65 * Fix: SSL error 66 * Improvement: Plugin sends to Allpay full list of products so they can be included in receipt 67 62 68 = 1.0.4 - MONDAY, 25TH DECEMBER 2023 = 63 69 * New: Added payment page language support for ENG, HEB and RUS
Note: See TracChangeset
for help on using the changeset viewer.