Skip to content

Commit

Permalink
set method title when the title is known
Browse files Browse the repository at this point in the history
  • Loading branch information
Timur Karimov authored and Timur Karimov committed Dec 17, 2024
1 parent eb54bb9 commit 7060b6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/class-wc-payment-gateway-wcpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,7 @@ public function __construct(
];

if ( 'card' !== $this->stripe_id ) {
$this->id = self::GATEWAY_ID . '_' . $this->stripe_id;
$this->method_title = "WooPayments ($this->title)";
$this->id = self::GATEWAY_ID . '_' . $this->stripe_id;
}

// Capabilities have different keys than the payment method ID's,
Expand Down Expand Up @@ -366,7 +365,8 @@ public function __construct(
* @return string
*/
public function get_title() {
$this->title = $this->payment_method->get_title();
$this->title = $this->payment_method->get_title();
$this->method_title = "WooPayments ($this->title)";
return parent::get_title();
}

Expand Down

0 comments on commit 7060b6d

Please sign in to comment.