Skip to content

Commit

Permalink
Use “payment” instead of “checkout” for payment gateway services.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffstieler committed Feb 19, 2016
1 parent 9e632e7 commit eed27b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions woocommerce-connect-client.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function __construct() {
),
),
),
'checkout' => array(
'payment' => array(
'paypal' => array(
'id' => 'wc-connect-paypal',
'enabled' => 'yes',
Expand Down Expand Up @@ -101,7 +101,7 @@ public function woocommerce_shipping_methods( $shipping_methods ) {

public function woocommerce_payment_gateways( $payment_gateways ) {

$wcc_payment_gateways = (array) $this->services[ 'checkout' ];
$wcc_payment_gateways = (array) $this->services[ 'payment' ];

if ( empty( $wcc_payment_gateways ) ) {
return $payment_gateways;
Expand Down

0 comments on commit eed27b2

Please sign in to comment.