Skip to content

Commit

Permalink
Express Checkout - Adjustments Necessary, ref #686
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed May 8, 2017
1 parent 4d2b586 commit 9b22ee0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,9 @@ public function woocommerce_before_cart() {
$payment_gateways = WC()->payment_gateways->get_available_payment_gateways();
unset($payment_gateways['paypal_pro']);
unset($payment_gateways['paypal_pro_payflow']);
if( $this->show_on_checkout != 'regular' && $this->show_on_checkout != 'both' && empty($payment_gateways)) {
$payment_gateways = 1;
}
if ($this->enabled == 'yes' && count($payment_gateways) == 1) {
if ($this->paypal_pro_enabled == 'yes' || $this->paypal_flow_enabled == 'yes') {
$checkout_button_display_text = $this->show_on_cart == 'yes' ? __('Pay with Credit Card', 'paypal-for-woocommerce') : __('Proceed to Checkout','paypal-for-woocommerce');
Expand Down

0 comments on commit 9b22ee0

Please sign in to comment.