diff --git a/includes/payments/class-wc-woomercadopago-basic-gateway.php b/includes/payments/class-wc-woomercadopago-basic-gateway.php index 085abc594..e28111b75 100755 --- a/includes/payments/class-wc-woomercadopago-basic-gateway.php +++ b/includes/payments/class-wc-woomercadopago-basic-gateway.php @@ -25,18 +25,17 @@ class WC_WooMercadoPago_Basic_Gateway extends WC_WooMercadoPago_Payment_Abstract * @throws WC_WooMercadoPago_Exception On load payment exception. */ public function __construct() { - $this->id = self::ID; + $this->id = self::ID; + $this->description = __( 'It offers all means of payment: credit and debit cards, cash and account money. Your customers choose whether they pay as guests or from their Mercado Pago account.', 'woocommerce-mercadopago' ); + $this->title = $this->get_option_mp( 'title', __( 'Pay with the payment method you prefer', 'woocommerce-mercadopago' ) ); if ( ! $this->validate_section() ) { return; } - $this->description = __( 'It offers all means of payment: credit and debit cards, cash and account money. Your customers choose whether they pay as guests or from their Mercado Pago account.', 'woocommerce-mercadopago' ); - $this->form_fields = array(); $this->method_title = __( 'Mercado Pago - Checkout Pro', 'woocommerce-mercadopago' ); $this->method = $this->get_option_mp( 'method', 'redirect' ); - $this->title = $this->get_option_mp( 'title', __( 'Pay with the payment method you prefer', 'woocommerce-mercadopago' ) ); $this->method_description = $this->description; $this->auto_return = $this->get_option_mp( 'auto_return', 'yes' ); $this->success_url = $this->get_option_mp( 'success_url', '' ); diff --git a/includes/payments/class-wc-woomercadopago-custom-gateway.php b/includes/payments/class-wc-woomercadopago-custom-gateway.php index 15943e32d..3c22977d4 100755 --- a/includes/payments/class-wc-woomercadopago-custom-gateway.php +++ b/includes/payments/class-wc-woomercadopago-custom-gateway.php @@ -33,16 +33,16 @@ class WC_WooMercadoPago_Custom_Gateway extends WC_WooMercadoPago_Payment_Abstrac * @throws WC_WooMercadoPago_Exception Exception load payment. */ public function __construct() { - $this->id = self::ID; + $this->id = self::ID; + $this->description = __( 'Accept card payments on your website with the best possible financing and maximize the conversion of your business. With personalized checkout your customers pay without leaving your store!', 'woocommerce-mercadopago' ); + $this->title = $this->get_option_mp( 'title', __( 'Pay with debit and credit cards', 'woocommerce-mercadopago' ) ); if ( ! $this->validate_section() ) { return; } - $this->description = __( 'Accept card payments on your website with the best possible financing and maximize the conversion of your business. With personalized checkout your customers pay without leaving your store!', 'woocommerce-mercadopago' ); $this->form_fields = array(); $this->method_title = __( 'Mercado Pago - Custom Checkout', 'woocommerce-mercadopago' ); - $this->title = $this->get_option_mp( 'title', __( 'Pay with debit and credit cards', 'woocommerce-mercadopago' ) ); $this->method_description = $this->description; $this->coupon_mode = $this->get_option_mp( 'coupon_mode', 'no' ); $this->wallet_button = $this->get_option_mp( 'wallet_button', 'yes' ); diff --git a/includes/payments/class-wc-woomercadopago-pix-gateway.php b/includes/payments/class-wc-woomercadopago-pix-gateway.php index 3a93569f0..8bf967d48 100755 --- a/includes/payments/class-wc-woomercadopago-pix-gateway.php +++ b/includes/payments/class-wc-woomercadopago-pix-gateway.php @@ -26,13 +26,14 @@ class WC_WooMercadoPago_Pix_Gateway extends WC_WooMercadoPago_Payment_Abstract { * @throws WC_WooMercadoPago_Exception Load payment exception. */ public function __construct() { - $this->id = self::ID; + $this->id = self::ID; + $this->description = __( 'Accept payments via Pix Transfer and receive the funds instantly. Your customers can pay at any time, without date or time restrictions.', 'woocommerce-mercadopago' ); + $this->title = __( 'Pay with PIX ', 'woocommerce-mercadopago' ); if ( ! $this->validate_section() ) { return; } - $this->description = __( 'Accept payments via Pix Transfer and receive the funds instantly. Your customers can pay at any time, without date or time restrictions.', 'woocommerce-mercadopago' ); $this->form_fields = array(); $this->method_title = __( 'Mercado Pago - Custom Checkout', 'woocommerce-mercadopago' ); $this->title = $this->get_option_mp( 'title', __( 'Pay with PIX ', 'woocommerce-mercadopago' ) ); diff --git a/includes/payments/class-wc-woomercadopago-ticket-gateway.php b/includes/payments/class-wc-woomercadopago-ticket-gateway.php index 905cc9614..5f1cb38a4 100755 --- a/includes/payments/class-wc-woomercadopago-ticket-gateway.php +++ b/includes/payments/class-wc-woomercadopago-ticket-gateway.php @@ -26,16 +26,16 @@ class WC_WooMercadoPago_Ticket_Gateway extends WC_WooMercadoPago_Payment_Abstrac * @throws WC_WooMercadoPago_Exception Load payment exception. */ public function __construct() { - $this->id = self::ID; + $this->id = self::ID; + $this->description = __( 'Accept cash payments within the custom checkout and expand your customers purchase options.', 'woocommerce-mercadopago' ); + $this->title = $this->get_option_mp( 'title', __( 'Pay with cash', 'woocommerce-mercadopago' ) ); if ( ! $this->validate_section() ) { return; } - $this->description = __( 'Accept cash payments within the custom checkout and expand your customers purchase options.', 'woocommerce-mercadopago' ); $this->form_fields = array(); $this->method_title = __( 'Mercado Pago - Custom Checkout', 'woocommerce-mercadopago' ); - $this->title = $this->get_option_mp( 'title', __( 'Pay with cash', 'woocommerce-mercadopago' ) ); $this->method_description = $this->description; $this->coupon_mode = $this->get_option_mp( 'coupon_mode', 'no' ); $this->stock_reduce_mode = $this->get_option_mp( 'stock_reduce_mode', 'no' );