Set the title and the description from the client settings

This way the user can display the title it wants on the frontend
This commit is contained in:
Mészáros Róbert 2020-04-10 12:53:22 +03:00
parent 9152c4e618
commit 600dd76dd3

View file

@ -39,12 +39,16 @@ class WcGateway extends \WC_Payment_Gateway
$this->orderFactory = $orderFactory;
$this->settingsFields = $settingsFields;
$this->id = self::ID;
$this->title = __('PayPal Payments', 'woocommerce-paypal-gateway');
$this->method_title = __('PayPal Payments', 'woocommerce-paypal-gateway');
$this->method_description = __(
'Provide your customers with the PayPal payment system',
'woocommerce-paypal-gateway'
);
$this->title = $this->get_option('title');
$this->description = $this->get_option('description');
$this->init_form_fields();
$this->init_settings();