Skip to content

Commit

Permalink
Merge pull request mercadopago#295 from PluginAndPartners/feature/com…
Browse files Browse the repository at this point in the history
…patibility-yith-pos

Feature/compatibility yith pos
  • Loading branch information
luana-ogawa authored Aug 27, 2021
2 parents 1b9da0c + ba8e162 commit 64d72d7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
7 changes: 3 additions & 4 deletions includes/payments/class-wc-woomercadopago-basic-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', '' );
Expand Down
6 changes: 3 additions & 3 deletions includes/payments/class-wc-woomercadopago-custom-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down
5 changes: 3 additions & 2 deletions includes/payments/class-wc-woomercadopago-pix-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) );
Expand Down
6 changes: 3 additions & 3 deletions includes/payments/class-wc-woomercadopago-ticket-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down

0 comments on commit 64d72d7

Please sign in to comment.