mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-08 21:52:55 +08:00
change label of enabled checkbox for credit card gateway
This commit is contained in:
parent
473cc3108d
commit
26f741537d
1 changed files with 15 additions and 0 deletions
|
@ -67,6 +67,21 @@ class CreditCardGateway extends PayPalGateway
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function init_form_fields()
|
||||||
|
{
|
||||||
|
$this->form_fields = [
|
||||||
|
'enabled' => [
|
||||||
|
'title' => __('Enable/Disable', 'woocommerce-paypal-commerce-gateway'),
|
||||||
|
'type' => 'checkbox',
|
||||||
|
'label' => __('Enable Credit Card Payments', 'woocommerce-paypal-commerce-gateway'),
|
||||||
|
'default' => 'yes',
|
||||||
|
],
|
||||||
|
'ppcp' => [
|
||||||
|
'type' => 'ppcp',
|
||||||
|
],
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public function generate_ppcp_html(): string
|
public function generate_ppcp_html(): string
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue