Changeset 2745804
- Timestamp:
- 06/21/2022 10:59:16 AM (4 years ago)
- Location:
- payflex-payment-gateway
- Files:
-
- 2 edited
-
tags/2.3.5/partpay.php (modified) (2 diffs)
-
trunk/partpay.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
payflex-payment-gateway/tags/2.3.5/partpay.php
r2728409 r2745804 10 10 * Check if WooCommerce is activated 11 11 */ 12 if ( is_multisite() ) { 13 $fun = wp_get_active_network_plugins(); 14 }else{ 15 $fun = wp_get_active_and_valid_plugins(); 16 } 12 17 13 $plugin_path = trailingslashit( WP_PLUGIN_DIR ) . 'woocommerce/woocommerce.php'; 18 if (in_array( $plugin_path, $fun)) {14 if (in_array($plugin_path, wp_get_active_and_valid_plugins()) || in_array( $plugin_path, wp_get_active_network_plugins())) { 19 15 20 16 add_action('plugins_loaded', 'partpay_gateway', 0); … … 919 915 } 920 916 } else { 921 $order->add_order_note(sprintf(__('Tried to check payment status with Payflex. Unable to access API. Repsonse code is %s Payflex Order ID: %s','woo_partpay'),$response_code,$partpay_order_id));917 // $order->add_order_note(sprintf(__('Tried to check payment status with Payflex. Unable to access API. Repsonse code is %s Payflex Order ID: %s','woo_partpay'),$response_code,$partpay_order_id)); 922 918 } 923 919 -
payflex-payment-gateway/trunk/partpay.php
r2728409 r2745804 10 10 * Check if WooCommerce is activated 11 11 */ 12 if ( is_multisite() ) { 13 $fun = wp_get_active_network_plugins(); 14 }else{ 15 $fun = wp_get_active_and_valid_plugins(); 16 } 12 17 13 $plugin_path = trailingslashit( WP_PLUGIN_DIR ) . 'woocommerce/woocommerce.php'; 18 if (in_array( $plugin_path, $fun)) {14 if (in_array($plugin_path, wp_get_active_and_valid_plugins()) || in_array( $plugin_path, wp_get_active_network_plugins())) { 19 15 20 16 add_action('plugins_loaded', 'partpay_gateway', 0); … … 919 915 } 920 916 } else { 921 $order->add_order_note(sprintf(__('Tried to check payment status with Payflex. Unable to access API. Repsonse code is %s Payflex Order ID: %s','woo_partpay'),$response_code,$partpay_order_id));917 // $order->add_order_note(sprintf(__('Tried to check payment status with Payflex. Unable to access API. Repsonse code is %s Payflex Order ID: %s','woo_partpay'),$response_code,$partpay_order_id)); 922 918 } 923 919
Note: See TracChangeset
for help on using the changeset viewer.