Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing references to PayPal from the Membership Billing page #3252

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions pages/billing.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
?>
<div class="<?php echo esc_attr( pmpro_get_element_class( 'pmpro' ) ); ?>">
<?php
global $wpdb, $current_user, $gateway, $pmpro_msg, $pmpro_msgt, $show_check_payment_instructions, $show_paypal_link, $pmpro_billing_subscription, $pmpro_billing_level;
global $wpdb, $current_user, $gateway, $pmpro_msg, $pmpro_msgt, $show_check_payment_instructions, $pmpro_billing_subscription, $pmpro_billing_level;
global $bfirstname, $blastname, $baddress1, $baddress2, $bcity, $bstate, $bzipcode, $bcountry, $bemail, $bconfirmemail, $bphone, $CardType, $AccountNumber, $ExpirationMonth, $ExpirationYear;

/**
Expand Down Expand Up @@ -153,15 +153,6 @@
</div>
</div> <!-- end pmpro_card_content -->
</div> <!-- end pmpro_card -->
<?php } elseif ( $show_paypal_link ) { ?>
<div class="<?php echo esc_attr( pmpro_get_element_class( 'pmpro_card' ) ); ?>">
<h2 class="<?php echo esc_attr( pmpro_get_element_class( 'pmpro_card_title pmpro_font-large' ) ); ?>">
<?php esc_html_e( 'Payment Information', 'paid-memberships-pro' ); ?>
</h2>
<div class="<?php echo esc_attr( pmpro_get_element_class( 'pmpro_card_content' ) ); ?>">
<p><?php echo wp_kses( __('Your payment subscription is managed by PayPal. Please <a href="https://www.paypal.com">login to PayPal here</a> to update your billing information.', 'paid-memberships-pro' ), array( 'a' => array( 'href' => array() ) ) );?></p>
</div> <!-- end pmpro_card_content -->
</div> <!-- end pmpro_card -->
<?php } elseif ( $gateway != $default_gateway ) {
// This membership's gateway is not the default site gateway, Pay by Check, or PayPal Express.
?>
Expand Down
5 changes: 1 addition & 4 deletions preheaders/billing.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,10 @@
$current_user->membership_level = $pmpro_billing_level;

//need to be secure?
global $besecure, $gateway, $show_paypal_link, $show_check_payment_instructions;
global $besecure, $gateway, $show_check_payment_instructions;
if (empty($pmpro_billing_order->gateway)) {
//no order
$besecure = false;
} elseif ($pmpro_billing_order->gateway == "paypalexpress") {
$besecure = get_option("pmpro_use_ssl");
$show_paypal_link = true;
} elseif( $pmpro_billing_order->gateway == 'check' ) {
$show_check_payment_instructions = true;
} else {
Expand Down