Skip to content

Commit 0132a7c

Browse files
committed
Use central API key for PayPal method
1 parent 131f7f8 commit 0132a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Gateways/PaymentMethods/WCGatewayMoneiPaypal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function __construct(
5757
$this->title = ( ! empty( $this->get_option( 'title' ) ) ) ? $this->get_option( 'title' ) : '';
5858
$this->description = ( ! empty( $this->get_option( 'description' ) ) ) ? $this->get_option( 'description' ) : '';
5959
$this->status_after_payment = ( ! empty( $this->get_option( 'orderdo' ) ) ) ? $this->get_option( 'orderdo' ) : '';
60-
$this->api_key = ( ! empty( $this->get_option( 'apikey' ) ) ) ? $this->get_option( 'apikey' ) : '';
60+
$this->api_key = $this->getApiKey();
6161
$this->shop_name = get_bloginfo( 'name' );
6262
$this->pre_auth = ( ! empty( $this->get_option( 'pre-authorize' ) && 'yes' === $this->get_option( 'pre-authorize' ) ) ) ? true : false;
6363
$this->logging = ( ! empty( $this->get_option( 'debug' ) ) && 'yes' === $this->get_option( 'debug' ) ) ? true : false;

0 commit comments

Comments
 (0)