From 5f9b396387867015d0f940393522b12eca989985 Mon Sep 17 00:00:00 2001 From: David Parker Date: Wed, 30 Oct 2024 12:06:17 -0400 Subject: [PATCH] Marking PayFlow, PayPal Standard, and Braintree as deprecated --- includes/deprecated.php | 3 ++- paid-memberships-pro.php | 10 ---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/includes/deprecated.php b/includes/deprecated.php index 830017b74..28b2e74ff 100644 --- a/includes/deprecated.php +++ b/includes/deprecated.php @@ -1012,6 +1012,7 @@ function pmpro_deprecated_add_ons_action_links( $actions, $plugin_file ) { * Cybersource was deprecated in 2.10. * PayPal Website Payments Pro was deprecated in 2.10. * Authorize.net was deprecated in 3.2. + * PayFlow, PayPal Standard, and Braintree were deprecated in TBD. * * This code will add it back those gateways if it was the selected gateway. * In future versions, we will remove gateway code entirely. @@ -1028,7 +1029,7 @@ function pmpro_check_for_deprecated_gateways() { } $default_gateway = get_option( 'pmpro_gateway' ); - $deprecated_gateways = array( 'twocheckout', 'cybersource', 'paypal', 'authorizenet' ); + $deprecated_gateways = array( 'twocheckout', 'cybersource', 'paypal', 'authorizenet', 'payflow', 'paypalstandard', 'braintree' ); foreach ( $deprecated_gateways as $deprecated_gateway ) { if ( $default_gateway === $deprecated_gateway || in_array( $deprecated_gateway, $undeprecated_gateways ) ) { require_once( PMPRO_DIR . '/classes/gateways/class.pmprogateway_' . $deprecated_gateway . '.php' ); diff --git a/paid-memberships-pro.php b/paid-memberships-pro.php index 556652d7d..25d462808 100644 --- a/paid-memberships-pro.php +++ b/paid-memberships-pro.php @@ -120,17 +120,10 @@ // load gateway require_once( PMPRO_DIR . '/classes/gateways/class.pmprogateway.php' ); // loaded by memberorder class when needed -// load payment gateway class -if ( version_compare( PHP_VERSION, '5.4.45', '>=' ) ) { - require_once( PMPRO_DIR . '/classes/gateways/class.pmprogateway_braintree.php' ); -} - require_once( PMPRO_DIR . '/classes/class-pmpro-discount-codes.php' ); // loaded by memberorder class when needed require_once( PMPRO_DIR . '/classes/gateways/class.pmprogateway_check.php' ); -require_once( PMPRO_DIR . '/classes/gateways/class.pmprogateway_payflowpro.php' ); require_once( PMPRO_DIR . '/classes/gateways/class.pmprogateway_paypalexpress.php' ); -require_once( PMPRO_DIR . '/classes/gateways/class.pmprogateway_paypalstandard.php' ); pmpro_check_for_deprecated_gateways(); @@ -189,9 +182,6 @@ function pmpro_gateways() { 'check' => __( 'Pay by Check', 'paid-memberships-pro' ), 'stripe' => __( 'Stripe', 'paid-memberships-pro' ), 'paypalexpress' => __( 'PayPal Express', 'paid-memberships-pro' ), - 'payflowpro' => __( 'PayPal Payflow Pro/PayPal Pro', 'paid-memberships-pro' ), - 'paypalstandard' => __( 'PayPal Standard', 'paid-memberships-pro' ), - 'braintree' => __( 'Braintree Payments', 'paid-memberships-pro' ), ); if ( pmpro_onlyFreeLevels() ) {