Skip to content

Commit 555474f

Browse files
fix: update payment method label to use settings title if available
1 parent 4e2d268 commit 555474f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Block/ReactCheckout/AbstractPaymentMethodBlock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function get_payment_method_data()
4848
$paymentData = [
4949
'name' => $this->name,
5050
'key' => static::PAYMENT_METHOD_KEY,
51-
'label' => $this->paymentModel->getName() ,
51+
'label' => $this->settings['title'] ?? __($this->paymentModel->getName(), 'woo-pagarme-payments'),
5252
'ariaLabel' => __( static::ARIA_LABEL, 'woo-pagarme-payments' )
5353
];
5454

0 commit comments

Comments
 (0)