From d643887c2e95967085e26941b15e8ca3fc46464c Mon Sep 17 00:00:00 2001 From: Anderson Campanha Date: Tue, 26 Sep 2017 19:51:33 -0300 Subject: [PATCH 01/27] Show one click button only if customer has document --- woocommerce-gateway-ebanx/templates/one-click/one-click.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woocommerce-gateway-ebanx/templates/one-click/one-click.php b/woocommerce-gateway-ebanx/templates/one-click/one-click.php index 8da4e4fe..9b097c6a 100644 --- a/woocommerce-gateway-ebanx/templates/one-click/one-click.php +++ b/woocommerce-gateway-ebanx/templates/one-click/one-click.php @@ -9,7 +9,7 @@ ?> - +userId, '_ebanx_billing_brazil_document', true )) || ! empty(get_user_meta( $this->userId, '_ebanx_billing_colombia_document', true )) || WC()->customer->get_country() === 'MX')): ?>
From 02598bf7e975ccb9db2af51dc7105de4b5a761f1 Mon Sep 17 00:00:00 2001 From: Anderson Campanha Date: Tue, 26 Sep 2017 20:51:23 -0300 Subject: [PATCH 02/27] Fixed saving customer document when creating account on checkout --- woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php index 44d721b3..f0b832a8 100644 --- a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php +++ b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php @@ -846,6 +846,10 @@ protected function save_order_meta_fields($order, $request) */ protected function save_user_meta_fields($order) { + if (!$this->userId) { + $this->userId = get_current_user_id(); + } + if ($this->userId) { $document = false; From a2eb38fa6e748eb69003c27a3b8756c843b89063 Mon Sep 17 00:00:00 2001 From: Anderson Campanha Date: Wed, 27 Sep 2017 14:29:23 -0300 Subject: [PATCH 03/27] Fixed never showing button --- .../gateways/class-wc-ebanx-gateway.php | 4 ++++ .../services/class-wc-ebanx-one-click.php | 10 +++++++++- .../templates/one-click/one-click.php | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php index 44d721b3..f0b832a8 100644 --- a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php +++ b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php @@ -846,6 +846,10 @@ protected function save_order_meta_fields($order, $request) */ protected function save_user_meta_fields($order) { + if (!$this->userId) { + $this->userId = get_current_user_id(); + } + if ($this->userId) { $document = false; diff --git a/woocommerce-gateway-ebanx/services/class-wc-ebanx-one-click.php b/woocommerce-gateway-ebanx/services/class-wc-ebanx-one-click.php index 8339fee9..96cf6762 100644 --- a/woocommerce-gateway-ebanx/services/class-wc-ebanx-one-click.php +++ b/woocommerce-gateway-ebanx/services/class-wc-ebanx-one-click.php @@ -278,6 +278,13 @@ public function customer_can() { return !is_user_logged_in() || !get_user_meta( $this->userId, '_billing_email', true ) && !empty( $this->cards ); } + public function should_show_button() { + return $this->cards + && (! empty(get_user_meta( $this->userId, '_ebanx_billing_brazil_document', true )) + || ! empty(get_user_meta( $this->userId, '_ebanx_billing_colombia_document', true )) + || $this->userCountry === WC_EBANX_Constants::COUNTRY_MEXICO); + } + /** * Render the button "One-Click Purchase" using a template * @@ -335,7 +342,8 @@ public function print_button() { 'action' => self::CREATE_ORDER_ACTION, 'permalink' => get_permalink($product->id), 'country' => $country, - 'currency' => $currency + 'currency' => $currency, + 'should_show_button' => $this->should_show_button(), ) ); wc_get_template( 'one-click.php', $args, '', WC_EBANX::get_templates_path() . 'one-click/' ); diff --git a/woocommerce-gateway-ebanx/templates/one-click/one-click.php b/woocommerce-gateway-ebanx/templates/one-click/one-click.php index 9b097c6a..1ecb9e42 100644 --- a/woocommerce-gateway-ebanx/templates/one-click/one-click.php +++ b/woocommerce-gateway-ebanx/templates/one-click/one-click.php @@ -9,7 +9,7 @@ ?> -userId, '_ebanx_billing_brazil_document', true )) || ! empty(get_user_meta( $this->userId, '_ebanx_billing_colombia_document', true )) || WC()->customer->get_country() === 'MX')): ?> + From a8e44c95f3a28fe9372af7a0da334105e32e8f5d Mon Sep 17 00:00:00 2001 From: Anderson Campanha Date: Thu, 28 Sep 2017 13:08:39 -0300 Subject: [PATCH 04/27] Removed ::class from same file that checks if php version is supported --- woocommerce-gateway-ebanx/woocommerce-gateway-ebanx.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woocommerce-gateway-ebanx/woocommerce-gateway-ebanx.php b/woocommerce-gateway-ebanx/woocommerce-gateway-ebanx.php index 2d73321a..a691d81c 100644 --- a/woocommerce-gateway-ebanx/woocommerce-gateway-ebanx.php +++ b/woocommerce-gateway-ebanx/woocommerce-gateway-ebanx.php @@ -137,7 +137,7 @@ private function __construct() */ add_filter('woocommerce_payment_gateways', array($this, 'add_gateway')); add_filter('plugin_action_links_' . plugin_basename(__FILE__), array($this, 'plugin_action_links')); - add_filter('woocommerce_my_account_my_orders_actions', array(WC_EBANX_Cancel_Order::class, 'add_my_account_cancel_order_action'), 10, 2); + add_filter('woocommerce_my_account_my_orders_actions', array('WC_EBANX_Cancel_Order', 'add_my_account_cancel_order_action'), 10, 2); } /** From b8f1be0f1dbc027e62e7069466b6b6994d1499c7 Mon Sep 17 00:00:00 2001 From: Anderson Campanha Date: Mon, 2 Oct 2017 16:40:06 -0300 Subject: [PATCH 05/27] Added fake birthdate to payment data (#569) * Added fake birthdate to payment data --- woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php index f0b832a8..568f8e2b 100644 --- a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php +++ b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php @@ -484,6 +484,8 @@ protected function get_data() 'ebanx_billing_brazil_cnpj' => WC_EBANX_Request::read($this->names['ebanx_billing_brazil_cnpj'], null), 'ebanx_billing_chile_document' => WC_EBANX_Request::read($this->names['ebanx_billing_chile_document'], null), 'ebanx_billing_colombia_document' => WC_EBANX_Request::read($this->names['ebanx_billing_colombia_document'], null), + 'ebanx_billing_brazil_birth_date' => '31/12/1969', + 'ebanx_billing_chile_birth_date' => '31/12/1969', 'billing_postcode' => WC_EBANX_Request::read('billing_postcode', null), 'billing_address_1' => WC_EBANX_Request::read('billing_address_1', null), 'billing_address_2' => WC_EBANX_Request::read('billing_address_2', null), From b1ee2053a3cb7b5d42142307fe149b013343b13c Mon Sep 17 00:00:00 2001 From: Guilherme Pressutto Date: Mon, 2 Oct 2017 17:48:42 -0300 Subject: [PATCH 06/27] Added Argentina to settings page --- .../gateways/class-wc-ebanx-global-gateway.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-global-gateway.php b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-global-gateway.php index f5629f72..11b13ee5 100644 --- a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-global-gateway.php +++ b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-global-gateway.php @@ -44,6 +44,7 @@ final class WC_EBANX_Global_Gateway extends WC_Payment_Gateway 'ebanx-safetypay', 'ebanx-pagoefectivo', ), + 'argentina_payment_methods' => array(), 'save_card_data' => 'yes', 'one_click' => 'yes', 'capture_enabled' => 'yes', @@ -68,7 +69,7 @@ public function __construct() $this->id = 'ebanx-global'; $this->method_title = __('EBANX', 'woocommerce-gateway-ebanx'); - $this->method_description = __('EBANX easy-to-setup checkout allows your business to accept local payments in Brazil, Mexico, Colombia, Chile & Peru.', 'woocommerce-gateway-ebanx'); + $this->method_description = __('EBANX easy-to-setup checkout allows your business to accept local payments in Brazil, Mexico, Argentina, Colombia, Chile & Peru.', 'woocommerce-gateway-ebanx'); $this->merchant_currency = strtoupper(get_woocommerce_currency()); @@ -229,6 +230,13 @@ public function init_form_fields() { 'ebanx-pagoefectivo', ), ), + 'argentina_payment_methods' => array( + 'title' => __('Argentina', 'woocommerce-gateway-ebanx'), + 'type' => 'multiselect', + 'class' => 'wc-enhanced-select', + 'options' => array(), + 'default' => array(), + ), 'payments_options_title' => array( 'title' => __('Payment Options', 'woocommerce-gateway-ebanx'), 'type' => 'title' From e21a89e6935d98beb31b951a7357f2bd1cec9426 Mon Sep 17 00:00:00 2001 From: Guilherme Pressutto Date: Mon, 2 Oct 2017 17:50:07 -0300 Subject: [PATCH 07/27] Added Argentina to readme.txt --- woocommerce-gateway-ebanx/readme.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/woocommerce-gateway-ebanx/readme.txt b/woocommerce-gateway-ebanx/readme.txt index a8dbdda2..382c58b3 100644 --- a/woocommerce-gateway-ebanx/readme.txt +++ b/woocommerce-gateway-ebanx/readme.txt @@ -1,6 +1,6 @@ === EBANX Payment Gateway for WooCommerce === Contributors: ebanxwp -Tags: credit card, boleto, ebanx, woocommerce, approval rate, conversion rate, brazil, mexico, peru, colombia, chile, oxxo, baloto, cash payment, local payment one-click payment, installments, alternative payments, accept more payments +Tags: credit card, boleto, ebanx, woocommerce, approval rate, conversion rate, brazil, mexico, argentina, peru, colombia, chile, oxxo, baloto, cash payment, local payment one-click payment, installments, alternative payments, accept more payments Requires at least: 4.0 Tested up to: 4.7 Stable tag: 1.20.0 @@ -19,7 +19,7 @@ Ready to accept local payments but don’t have an account yet? Finish our [simp **Plugin Description** -The WooCommerce EBANX Payment Gateway plugin allows you to accept local & international payment methods directly on your ecommerce store. Using the EBANX plugin you can process relevant cash, online debit, and credit card payments in Brazil, Mexico, Chile, Colombia & Peru, and access over 20M EBANX Wallet users. **No technical knowledge is needed for installation. Installation is simple, the way it should be.** +The WooCommerce EBANX Payment Gateway plugin allows you to accept local & international payment methods directly on your ecommerce store. Using the EBANX plugin you can process relevant cash, online debit, and credit card payments in Brazil, Mexico, Argentina, Chile, Colombia & Peru, and access over 20M EBANX Wallet users. **No technical knowledge is needed for installation. Installation is simple, the way it should be.** **EBANX Advantages** @@ -105,6 +105,7 @@ The [Developer’s Academy](https://www.ebanx.com/business/en/developers/integra * OXXO, Cash Payment * Debit & Credit Cards * EBANX Wallet, Debit Transfer +* Argentina * Chile * Sencillito, Cash Payment * Servipag, Online Debit Transfer From fb6a6947c022877ccbd30de1f5f1760b1d68a6af Mon Sep 17 00:00:00 2001 From: Guilherme Pressutto Date: Mon, 2 Oct 2017 17:58:36 -0300 Subject: [PATCH 08/27] Added Argentina to constants --- .../services/class-wc-ebanx-constants.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/woocommerce-gateway-ebanx/services/class-wc-ebanx-constants.php b/woocommerce-gateway-ebanx/services/class-wc-ebanx-constants.php index 03aada4b..a59db617 100644 --- a/woocommerce-gateway-ebanx/services/class-wc-ebanx-constants.php +++ b/woocommerce-gateway-ebanx/services/class-wc-ebanx-constants.php @@ -14,10 +14,12 @@ abstract class WC_EBANX_Constants const COUNTRY_BRAZIL = 'br'; const COUNTRY_MEXICO = 'mx'; const COUNTRY_COLOMBIA = 'co'; + const COUNTRY_ARGENTINA = 'ar'; /** * The full name of countries that EBANX processes */ + const COUNTRY_ARGENTINA_NAME = 'Argentina'; const COUNTRY_BRAZIL_NAME = 'Brazil'; const COUNTRY_CHILE_NAME = 'Chile'; const COUNTRY_COLOMBIA_NAME = 'Colombia'; @@ -39,6 +41,7 @@ abstract class WC_EBANX_Constants const CURRENCY_CODE_MXN = 'MXN'; // Mexico const CURRENCY_CODE_COP = 'COP'; // Colombia const CURRENCY_CODE_CLP = 'CLP'; // Chile + const CURRENCY_CODE_ARS = 'ARS'; // Argentina /** * Only the currencies allowed and processed by EBANX @@ -52,7 +55,8 @@ abstract class WC_EBANX_Constants self::CURRENCY_CODE_PEN, self::CURRENCY_CODE_MXN, self::CURRENCY_CODE_COP, - self::CURRENCY_CODE_CLP + self::CURRENCY_CODE_CLP, + self::CURRENCY_CODE_ARS, ); /** @@ -63,7 +67,8 @@ abstract class WC_EBANX_Constants self::COUNTRY_CHILE => self::CURRENCY_CODE_CLP, self::COUNTRY_COLOMBIA => self::CURRENCY_CODE_COP, self::COUNTRY_MEXICO => self::CURRENCY_CODE_MXN, - self::COUNTRY_PERU => self::CURRENCY_CODE_PEN + self::COUNTRY_PERU => self::CURRENCY_CODE_PEN, + self::COUNTRY_ARGENTINA => self::CURRENCY_CODE_ARS, ); /** @@ -98,6 +103,7 @@ abstract class WC_EBANX_Constants self::COUNTRY_MEXICO, self::COUNTRY_PERU, self::COUNTRY_CHILE, + self::COUNTRY_ARGENTINA, ); /** @@ -249,7 +255,8 @@ abstract class WC_EBANX_Constants 'ebanx-credit-card-mx', 'ebanx-debit-card', 'ebanx-oxxo' - ) + ), + self::COUNTRY_ARGENTINA => array(), ); /** From 0cc05a29a73e159b30fd706d4ac4ecf3856095c2 Mon Sep 17 00:00:00 2001 From: Guilherme Pressutto Date: Mon, 2 Oct 2017 18:08:25 -0300 Subject: [PATCH 09/27] Added Efectivo to constants, settings and readme --- .../gateways/class-wc-ebanx-global-gateway.php | 12 +++++++++--- woocommerce-gateway-ebanx/readme.txt | 1 + .../services/class-wc-ebanx-constants.php | 4 +++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-global-gateway.php b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-global-gateway.php index 11b13ee5..810ad2a7 100644 --- a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-global-gateway.php +++ b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-global-gateway.php @@ -44,7 +44,9 @@ final class WC_EBANX_Global_Gateway extends WC_Payment_Gateway 'ebanx-safetypay', 'ebanx-pagoefectivo', ), - 'argentina_payment_methods' => array(), + 'argentina_payment_methods' => array( + 'ebanx-efectivo', + ), 'save_card_data' => 'yes', 'one_click' => 'yes', 'capture_enabled' => 'yes', @@ -234,8 +236,12 @@ public function init_form_fields() { 'title' => __('Argentina', 'woocommerce-gateway-ebanx'), 'type' => 'multiselect', 'class' => 'wc-enhanced-select', - 'options' => array(), - 'default' => array(), + 'options' => array( + 'ebanx-efectivo' => 'Efectivo', + ), + 'default' => array( + 'ebanx-efectivo' + ), ), 'payments_options_title' => array( 'title' => __('Payment Options', 'woocommerce-gateway-ebanx'), diff --git a/woocommerce-gateway-ebanx/readme.txt b/woocommerce-gateway-ebanx/readme.txt index 382c58b3..d5f4f5e6 100644 --- a/woocommerce-gateway-ebanx/readme.txt +++ b/woocommerce-gateway-ebanx/readme.txt @@ -106,6 +106,7 @@ The [Developer’s Academy](https://www.ebanx.com/business/en/developers/integra * Debit & Credit Cards * EBANX Wallet, Debit Transfer * Argentina + * Efectivo * Chile * Sencillito, Cash Payment * Servipag, Online Debit Transfer diff --git a/woocommerce-gateway-ebanx/services/class-wc-ebanx-constants.php b/woocommerce-gateway-ebanx/services/class-wc-ebanx-constants.php index a59db617..5ccf616a 100644 --- a/woocommerce-gateway-ebanx/services/class-wc-ebanx-constants.php +++ b/woocommerce-gateway-ebanx/services/class-wc-ebanx-constants.php @@ -256,7 +256,9 @@ abstract class WC_EBANX_Constants 'ebanx-debit-card', 'ebanx-oxxo' ), - self::COUNTRY_ARGENTINA => array(), + self::COUNTRY_ARGENTINA => array( + 'ebanx-efectivo' + ), ); /** From 080ca0542a3152383bd668a91d45c24c9f2f68b8 Mon Sep 17 00:00:00 2001 From: Guilherme Pressutto Date: Mon, 2 Oct 2017 18:24:19 -0300 Subject: [PATCH 10/27] Created efectivo gateway files --- .../class-wc-ebanx-efectivo-gateway.php | 132 ++++++++++++++++++ .../templates/efectivo/payment-completed.php | 1 + .../templates/efectivo/payment-failed.php | 11 ++ .../templates/efectivo/payment-form.php | 32 +++++ .../templates/efectivo/payment-on-hold.php | 32 +++++ .../templates/efectivo/payment-processing.php | 17 +++ .../woocommerce-gateway-ebanx.php | 3 + 7 files changed, 228 insertions(+) create mode 100644 woocommerce-gateway-ebanx/gateways/class-wc-ebanx-efectivo-gateway.php create mode 100644 woocommerce-gateway-ebanx/templates/efectivo/payment-completed.php create mode 100644 woocommerce-gateway-ebanx/templates/efectivo/payment-failed.php create mode 100644 woocommerce-gateway-ebanx/templates/efectivo/payment-form.php create mode 100644 woocommerce-gateway-ebanx/templates/efectivo/payment-on-hold.php create mode 100644 woocommerce-gateway-ebanx/templates/efectivo/payment-processing.php diff --git a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-efectivo-gateway.php b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-efectivo-gateway.php new file mode 100644 index 00000000..6bd9a903 --- /dev/null +++ b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-efectivo-gateway.php @@ -0,0 +1,132 @@ +id = 'ebanx-efectivo'; + $this->method_title = __('EBANX - Efectivo', 'woocommerce-gateway-ebanx'); + + $this->api_name = 'efectivo'; + $this->title = 'Efectivo'; + $this->description = 'Paga con Efectivo.'; + + parent::__construct(); + + $this->enabled = is_array($this->configs->settings['argentina_payment_methods']) ? in_array($this->id, $this->configs->settings['argentina_payment_methods']) ? 'yes' : false : false; + } + + /** + * This method always will return false, it doesn't need to show to the customers + * + * @return boolean Always return false + */ + public function is_available() + { + return parent::is_available() && $this->getTransactionAddress('country') == WC_EBANX_Constants::COUNTRY_ARGENTINA; + } + + /** + * Check if the currency is processed by EBANX + * + * @param string $currency Possible currencies: ARS + * @return boolean Return true if EBANX process the currency + */ + public function ebanx_process_merchant_currency($currency) { + return $currency === WC_EBANX_Constants::CURRENCY_CODE_ARS; + } + + /** + * The HTML structure on checkout page + */ + public function payment_fields() + { + if ($description = $this->get_description()) { + echo wp_kses_post(wpautop(wptexturize($description))); + } + + wc_get_template( + 'efectivo/payment-form.php', + array( + 'id' => $this->id + ), + 'woocommerce/ebanx/', + WC_EBANX::get_templates_path() + ); + + parent::checkout_rate_conversion(WC_EBANX_Constants::CURRENCY_CODE_ARS); + } + + /** + * Save order's meta fields for future use + * + * @param WC_Order $order The order created + * @param Object $request The request from EBANX success response + * @return void + */ + protected function save_order_meta_fields($order, $request) + { + parent::save_order_meta_fields($order, $request); + + update_post_meta($order->id, '_efectivo_url', $request->payment->efectivo_url); + } + + /** + * The page of order received, we call them as "Thank you pages" + * + * @param WC_Order $order The order created + * @return void + */ + public static function thankyou_page($order) + { + $efectivo_url = get_post_meta($order->id, '_efectivo_url', true); + $efectivo_basic = $efectivo_url . "&format=basic"; + $efectivo_pdf = $efectivo_url . "&format=pdf"; + $efectivo_print = $efectivo_url . "&format=print"; + $customer_email = get_post_meta($order->id, '_ebanx_payment_customer_email', true); + $efectivo_hash = get_post_meta($order->id, '_ebanx_payment_hash', true); + + $data = array( + 'data' => array( + 'url_basic' => $efectivo_basic, + 'url_pdf' => $efectivo_pdf, + 'url_print' => $efectivo_print, + 'url_iframe' => get_site_url() . '/?ebanx=order-received&hash=' . $efectivo_hash . '&payment_type=efectivo', + 'customer_email' => $customer_email + ), + 'order_status' => $order->get_status(), + 'method' => 'efectivo' + ); + + parent::thankyou_page($data); + + wp_enqueue_script('woocommerce_ebanx_clipboard', plugins_url('assets/js/vendor/clipboard.min.js', WC_EBANX::DIR, false, true)); + wp_enqueue_script('woocommerce_ebanx_order_received', plugins_url('assets/js/order-received.js', WC_EBANX::DIR, false, true)); + } + + /** + * Mount the data to send to EBANX API + * + * @param WC_Order $order + * @return array + */ + protected function request_data($order) + { + /*TODO: ? if (empty($_POST['ebanx_efectivo_rfc'])) { + throw new Exception("Missing rfc."); + }*/ + + $data = parent::request_data($order); + + $data['payment']['payment_type_code'] = $this->api_name; + + return $data; + } +} diff --git a/woocommerce-gateway-ebanx/templates/efectivo/payment-completed.php b/woocommerce-gateway-ebanx/templates/efectivo/payment-completed.php new file mode 100644 index 00000000..4244bcd6 --- /dev/null +++ b/woocommerce-gateway-ebanx/templates/efectivo/payment-completed.php @@ -0,0 +1 @@ + + +
+ + +
+ +
+
+ +
+
+ +
+
diff --git a/woocommerce-gateway-ebanx/templates/efectivo/payment-on-hold.php b/woocommerce-gateway-ebanx/templates/efectivo/payment-on-hold.php new file mode 100644 index 00000000..bcf58cc2 --- /dev/null +++ b/woocommerce-gateway-ebanx/templates/efectivo/payment-on-hold.php @@ -0,0 +1,32 @@ + + +
+
+

Su Voucher fue generado con éxito.

+

Una copia de la voucher fue enviada al correo electrónico .

+

Si tienes dudas, por favor escribe a soporte@ebanx.com.

+
+ +
+ +
+ +
+ +
diff --git a/woocommerce-gateway-ebanx/templates/efectivo/payment-processing.php b/woocommerce-gateway-ebanx/templates/efectivo/payment-processing.php new file mode 100644 index 00000000..8bc85f17 --- /dev/null +++ b/woocommerce-gateway-ebanx/templates/efectivo/payment-processing.php @@ -0,0 +1,17 @@ + + +
+ +
diff --git a/woocommerce-gateway-ebanx/woocommerce-gateway-ebanx.php b/woocommerce-gateway-ebanx/woocommerce-gateway-ebanx.php index a691d81c..d87667ec 100644 --- a/woocommerce-gateway-ebanx/woocommerce-gateway-ebanx.php +++ b/woocommerce-gateway-ebanx/woocommerce-gateway-ebanx.php @@ -492,6 +492,9 @@ private function includes() include_once WC_EBANX_GATEWAYS_DIR . 'class-wc-ebanx-debit-card-gateway.php'; include_once WC_EBANX_GATEWAYS_DIR . 'class-wc-ebanx-oxxo-gateway.php'; + // Argentina Gateways + include_once WC_EBANX_GATEWAYS_DIR . 'class-wc-ebanx-efectivo-gateway.php'; + // Colombia Gateways include_once WC_EBANX_GATEWAYS_DIR . 'class-wc-ebanx-baloto-gateway.php'; include_once WC_EBANX_GATEWAYS_DIR . 'class-wc-ebanx-eft-gateway.php'; From 8b95be88e9b69b0de353cafc63511a84ec8698fb Mon Sep 17 00:00:00 2001 From: Guilherme Pressutto Date: Mon, 2 Oct 2017 19:12:45 -0300 Subject: [PATCH 11/27] Efectivo Working --- .../gateways/class-wc-ebanx-efectivo-gateway.php | 10 ++++++---- .../services/class-wc-ebanx-constants.php | 6 ++++++ .../services/class-wc-ebanx-errors.php | 2 ++ .../woocommerce-gateway-ebanx.php | 3 +++ 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-efectivo-gateway.php b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-efectivo-gateway.php index 6bd9a903..f661d91a 100644 --- a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-efectivo-gateway.php +++ b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-efectivo-gateway.php @@ -116,16 +116,18 @@ public static function thankyou_page($order) * * @param WC_Order $order * @return array + * @throws Exception */ protected function request_data($order) { - /*TODO: ? if (empty($_POST['ebanx_efectivo_rfc'])) { - throw new Exception("Missing rfc."); - }*/ + if ( ! WC_EBANX_Request::has('efectivo') + || ! in_array(WC_EBANX_Request::read('efectivo'), WC_EBANX_Constants::$VOUCHERS_EFECTIVO_ALLOWED)) { + throw new Exception('MISSING-VOUCHER'); + } $data = parent::request_data($order); - $data['payment']['payment_type_code'] = $this->api_name; + $data['payment']['payment_type_code'] = WC_EBANX_Request::read('efectivo'); return $data; } diff --git a/woocommerce-gateway-ebanx/services/class-wc-ebanx-constants.php b/woocommerce-gateway-ebanx/services/class-wc-ebanx-constants.php index 5ccf616a..98cedd52 100644 --- a/woocommerce-gateway-ebanx/services/class-wc-ebanx-constants.php +++ b/woocommerce-gateway-ebanx/services/class-wc-ebanx-constants.php @@ -196,6 +196,12 @@ abstract class WC_EBANX_Constants ) ); + public static $VOUCHERS_EFECTIVO_ALLOWED = array( + 'rapipago', + 'pagofacil', + 'cupon', + ); + /** * Payment type API codes for each plugin payment gateway * diff --git a/woocommerce-gateway-ebanx/services/class-wc-ebanx-errors.php b/woocommerce-gateway-ebanx/services/class-wc-ebanx-errors.php index 0016e19b..56655cb7 100644 --- a/woocommerce-gateway-ebanx/services/class-wc-ebanx-errors.php +++ b/woocommerce-gateway-ebanx/services/class-wc-ebanx-errors.php @@ -54,6 +54,7 @@ public static function get_errors() { 'MISSING-CVV' => 'Por favor digite o CVV do seu cartão de crédito.', 'MISSING-INSTALMENTS' => 'Por favor escolha em quantas parcelas você quer pagar.', 'MISSING-BANK-NAME' => 'Escolha um banco que deseja efetuar a sua compra.', + 'MISSING-VOUCHER' => 'Escolha o tipo de voucher que deseja para efetuar a sua compra.', 'INVALID-SAFETYPAY-TYPE' => 'Escolha uma opção para o método de pagamento SafetyPay.', 'INVALID-FIELDS' => 'Alguns campos não foram preenchidos corretamente. Por favor, verifique e tente novamente.', 'INVALID-BILLING-COUNTRY' => 'Por favor, escolha um país.', @@ -107,6 +108,7 @@ public static function get_errors() { 'MISSING-CVV' => 'Por favor, introduce el CVV de tu tarjeta de crédito.', 'MISSING-INSTALMENTS' => 'Por favor, escoge en cuántos meses sin intereses deseas pagar.', 'MISSING-BANK-NAME' => 'Por favor, escoge el banco para finalizar la compra.', + 'MISSING-VOUCHER' => 'Por favor, escoge el tipo de voucher que desea para finalizar la compra.', 'INVALID-SAFETYPAY-TYPE' => 'Por favor, escoge una opción para el método de pago SafetyPay.', 'INVALID-FIELDS' => 'Algunos campos no fueron llenados correctamente. Por favor verifica e inténtalo de nuevo.', 'INVALID-BILLING-COUNTRY' => 'Por favor, escoge un país.', diff --git a/woocommerce-gateway-ebanx/woocommerce-gateway-ebanx.php b/woocommerce-gateway-ebanx/woocommerce-gateway-ebanx.php index d87667ec..15dca681 100644 --- a/woocommerce-gateway-ebanx/woocommerce-gateway-ebanx.php +++ b/woocommerce-gateway-ebanx/woocommerce-gateway-ebanx.php @@ -565,6 +565,9 @@ public function add_gateway($methods) $methods[] = 'WC_EBANX_Pagoefectivo_Gateway'; $methods[] = 'WC_EBANX_Safetypay_Gateway'; + // Argentina + $methods[] = 'WC_EBANX_Efectivo_Gateway'; + return $methods; } From 1401fa72d942414871e24eff91c097daf379bf12 Mon Sep 17 00:00:00 2001 From: Guilherme Pressutto Date: Tue, 3 Oct 2017 14:18:51 -0300 Subject: [PATCH 12/27] Added images to efectivo form --- .../assets/images/ebanx-cupon.png | Bin 0 -> 2275 bytes .../assets/images/ebanx-efectivo.png | Bin 0 -> 249 bytes .../assets/images/ebanx-pagofacil.png | Bin 0 -> 15287 bytes .../assets/images/ebanx-rapipago.png | Bin 0 -> 2697 bytes .../templates/efectivo/payment-form.php | 6 +++--- 5 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 woocommerce-gateway-ebanx/assets/images/ebanx-cupon.png create mode 100644 woocommerce-gateway-ebanx/assets/images/ebanx-efectivo.png create mode 100644 woocommerce-gateway-ebanx/assets/images/ebanx-pagofacil.png create mode 100644 woocommerce-gateway-ebanx/assets/images/ebanx-rapipago.png diff --git a/woocommerce-gateway-ebanx/assets/images/ebanx-cupon.png b/woocommerce-gateway-ebanx/assets/images/ebanx-cupon.png new file mode 100644 index 0000000000000000000000000000000000000000..a67e8c06a6f46b728aab28825d4dc9acd305a5cc GIT binary patch literal 2275 zcmV<92pso`P)Qud+Y1#0A(?YqPgho@tvKWsmr?Z_4niH?Ie3o04-rNTZDtO zocHrz+07I|adM8Tk*B@I(cD~pox;Mx!Oq$` zh+(nN!O7I$@b>crXf^cs_I;PJ7esR#NOdh%f4s`q@bmWW^zl)2mizqtoWroa*vmtX zX??JlPL**NJ#AEVm{OK>Yl)_yv&KnmkZ!1pA4_=o`uhMJRc?!@xW?7K%h&*BGXynf zNRe&W*x2Uq>s6R{R(Y8KQyOQ6q~PZ4rnt(--O>+5X-sgF$==fdV=e|bYPi+L1!OP_ zXEX^nX%BBe=jZ35qN4Tn^%QVG1YkZ4a5@HRIB~Fwu)xp|KW|`wpRT^ou)oilnVJ9p z|7}m&rvLy3`AI}URCwC#nu}N3*cOKmA&CeEXlNb}kj)RFi{A$c==TeBfd|SoAPqHOWMh~S^ZwsBiOfPDTV-viCIOrlV;_XFs~)ky=!1ujGPZ~A$_Q*I8Ik*- zp|P%qC0m_C6Nhm)hP!z>Vf4$e{ zlkhfKWGVKZhw#5tMNw2$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HcmV?d00001 diff --git a/woocommerce-gateway-ebanx/assets/images/ebanx-efectivo.png b/woocommerce-gateway-ebanx/assets/images/ebanx-efectivo.png new file mode 100644 index 0000000000000000000000000000000000000000..e7e17972217835222c1fcf389844abe485e50bdd GIT binary patch literal 249 zcmeAS@N?(olHy`uVBq!ia0vp^Hb88^!VDz$3$R!LDU|@95ZC{x04NL>`1!Mhd9`pph41CEr;a+EGm04qsgMzT&siqd=4-V6GS-NbUT9*mfWtO%bNV&6# bZ4pDRk-6Bb;&^qSI~Y7&{an^LB{Ts5P~U5k literal 0 HcmV?d00001 diff --git a/woocommerce-gateway-ebanx/assets/images/ebanx-pagofacil.png b/woocommerce-gateway-ebanx/assets/images/ebanx-pagofacil.png new file mode 100644 index 0000000000000000000000000000000000000000..6900bacf67c001660b4c1027d9ca33e2a6f890c1 GIT binary patch literal 15287 zcmaL8by!r<*EW162+2XDYrvqpdyo{Q5ow0*9;5^Y5G14o0m-35DM64P1O#a$1!-xe zJ3oBh=l8tdAK&xMHF3_q?sc!V*IL&)v(Gv^N=rkTn1Gf50081ADhfIP00P~90DRor zk(#OwgWDe(l%fGj*Uc8?W8rB7$XUBt+Q6TewN zm75EX#Xk&>uZ#PwGyq7+`np?KIoY7#mNs?{uF@Hc22Wx4T=fdiI>hAJ3_6{ok zo;JGv8hTd#PFCX9EV43iDPM_O0v8*U1>D!g+0{$JSDNL&cqML+{|)o9!2b(^a*}5G zKSmj-Yr*B+JZ<2@Jc8U-eEj@y5fL7KAz={_elEBGAHM)E-|bt3n_oymSVTfV6#m~Y zmRoI}*0vHl3QGU2>-J2V#U6!nm*C~~@$upD5#(|6wBzL$7Z?A>At1ngi{SS1b46MB za=Uun{||$LjhB_DgFDK>%@zKS(ZbTr8zs$hYw7=)f{XkA(7Jm4x0`Mq#_Mb0&dblk z_isx70jjJ2|3h6|{s--a(y{r!_Wpkod+GVP+wkhxc)59dTHOZD_WnOr?h^8zHWny1 zPdzs`=l^(7%iay;=4J2Z4wu&zfwM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!`X*Q1N-{)3l>Y+vG1ZR9P`LB!TAakluwi9A zbg$Cj(43eCvCLDVq1#sP&VT1&=i~WID;z7vt9j4HlGE4R0WB@)*yczH^=p!j{6Qe} zF+C6U9m_$)$R5o^n^mB#!Tx0pESmk&uRr^7y+UdYr*&p#xIkKY1x=;1aHY9Kw&@m zq}L_*s0FRYQkUEQh_wyhbl5PGZX+;K@HBkG_T(tEq%5)8B-(Inf6No&t*l=8avSsXHb;H?sjo76UtgG;m7F*6_FAJU4wK=N+x z+|iW!l(7@Dc*t5NMe-{I5r{>%hK^3?z7mu4J!+l_&19WSEirfg41_p%NoVfJj)opPWe zESZ^lg~-CX!fE-%hZp{9m$zG>!rBvcgu^U0#>eP6$u%Fi zR)ej(r!_JGhollhr1|Sq()I$TMepyW5?P?swv0U7IjT~;c`+g01_}Apj^ubsZcDot z`pkV;IQe`;$&(!NceQ0M`$pI&Tmn{dmk0^1xvx&~Z6>9oq-|Y>01xa9ym}8Kvi()8 zT}HN1x;NBRvV*`>Acu)V07RN+PNZ;S{BjP{ctC>+coi1MEY|GVi`KFlW>J!;NMu@H*l0Y*Z zHt!@Y64&u93V$GKpjSGN5o^sqxgGy$Lo^Gc-+qR*uvCcK4o_^^Ipz5(33C_mPk_ZZ y5eG=Mc+ow#3^pfqc)7dgVbChBaeRYA4a{7urz!p6`TlP!?Gr@}g^I_>(EkU9RxJbo literal 0 HcmV?d00001 diff --git a/woocommerce-gateway-ebanx/assets/images/ebanx-rapipago.png b/woocommerce-gateway-ebanx/assets/images/ebanx-rapipago.png new file mode 100644 index 0000000000000000000000000000000000000000..b1a170c98752dad580a33a6c35a8af73f5bc583f GIT binary patch literal 2697 zcmaKuXD}REABR`(tR;Hqs5#J1?Be{dc&mT!fd!-}C>&7yf8juG{%bIR(K?Edl#`T0nAhtsh(Fvci<#1b|EF zIBx32Q3px-qqVXd>i2v_*Lyl-KF#3soE0SLW?y4i$-W=<)F(v+1^5g$7sA!2-qxEw zLVDd|2em)RiVxI_w}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}Id)7$cj?4#=p@;Sr zNNp0?pMus-&Dau1Ub?`cd9T~%IBu;9vbI_37{6PM0@nAl-Z9%7$3374EV~n=02Rw_ zMt1juGgJPSfGHS-V_kgS{gE{zRJ{A_8`N;wReoz)I`h+l;vwjwDCep_|yG{TFiAB0hNr#DV+3 zw?E`2DL7F@1Ue18vpub-{gybk2KApzGW-AnIlF8F?rl=%^i`G0+W7~CL$gF(zHI8Lz+i&s?+J?)$m~pQtQYC%@YBW z<=&dH@iWb^!PWT=$>aS+Qb46Rmju7EO5DQgO9hmTvSriC-pu@AYmV8;!ReGb`Ho@2 zhC|bj79oa~t~YQ@zBgO#XH~2rv7yW_QT-NwGi#f;OC2tchm8nl1l!--ln{yO@>*iS zg=(mYH!Z2yMC%4WpWVN@(l7X!#Pf!q?7i}OqBnn&7ui_(b2}aX+I7E1(Uld}zgQQN z+bvRBF};oQc}{jzN?LfQiYAzByr_{cel{a)OFVM<QMHQboZJkRz^;z@Fj5SCl}mX&7l&_ez7Vq=1n(g8~o4`{5uBa?n`q zJ4Tfp!&TVh*(L~-Qi}IE8zrF;J*!BCTS*egcpG(0yti5!m&+{$>pHp++Dd61G>H8! z1Bl!k=4>VpvaA|+H{;-#1er<;zTHla{jIKY4^zHUf=qB3EYPg!=DHvC1~}D&PxsLd zJ9eNdUFH3Y>vZkh=22g>sORG5$D_B32Q ztxV`PS;?Ye`{TZG-#KDWMzc?A0A5L7y+6S=2Rb7pn_F z6y8ysRjiSSKcK|TEg@XD>RmHec8B_N7_9Jgbj`0}1*lFkG!zjIwBL0;jQ8xgl7!5o zb8u&09{zY|q=73N>A{*QKlQ6Iw~%LAeU>@TfOt5-^suU9U5{!;=N>Y3`+X*
From 0eac8a414aca7305ecb2d2b5229743ea8691d442 Mon Sep 17 00:00:00 2001 From: Guilherme Pressutto Date: Tue, 3 Oct 2017 14:20:54 -0300 Subject: [PATCH 13/27] Added efectivo thank you page --- .../services/class-wc-ebanx-my-account.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/woocommerce-gateway-ebanx/services/class-wc-ebanx-my-account.php b/woocommerce-gateway-ebanx/services/class-wc-ebanx-my-account.php index ab746311..c456d736 100644 --- a/woocommerce-gateway-ebanx/services/class-wc-ebanx-my-account.php +++ b/woocommerce-gateway-ebanx/services/class-wc-ebanx-my-account.php @@ -124,6 +124,9 @@ public static function order_details($order) case 'ebanx-baloto': WC_EBANX_Baloto_Gateway::thankyou_page($order); break; + case 'ebanx-efectivo': + WC_EBANX_Efectivo_Gateway::thankyou_page($order); + break; } } } From d629a10854d91da614cb883f9409554eb629544b Mon Sep 17 00:00:00 2001 From: Guilherme Pressutto Date: Tue, 3 Oct 2017 14:21:09 -0300 Subject: [PATCH 14/27] Added efectivo to cash payments array --- woocommerce-gateway-ebanx/services/class-wc-ebanx-constants.php | 1 + 1 file changed, 1 insertion(+) diff --git a/woocommerce-gateway-ebanx/services/class-wc-ebanx-constants.php b/woocommerce-gateway-ebanx/services/class-wc-ebanx-constants.php index 98cedd52..5d2700f2 100644 --- a/woocommerce-gateway-ebanx/services/class-wc-ebanx-constants.php +++ b/woocommerce-gateway-ebanx/services/class-wc-ebanx-constants.php @@ -156,6 +156,7 @@ abstract class WC_EBANX_Constants 'ebanx-sencillito', 'ebanx-safetypay-cash', 'ebanx-baloto', + 'ebanx-efectivo', ); /** From 53e55c86d2ccf797bb7b3605e8f3f90b51195d15 Mon Sep 17 00:00:00 2001 From: Guilherme Pressutto Date: Tue, 3 Oct 2017 14:21:30 -0300 Subject: [PATCH 15/27] Added efectivo timezones to constants --- .../services/class-wc-ebanx-constants.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/woocommerce-gateway-ebanx/services/class-wc-ebanx-constants.php b/woocommerce-gateway-ebanx/services/class-wc-ebanx-constants.php index 5d2700f2..f42acc4d 100644 --- a/woocommerce-gateway-ebanx/services/class-wc-ebanx-constants.php +++ b/woocommerce-gateway-ebanx/services/class-wc-ebanx-constants.php @@ -142,6 +142,10 @@ abstract class WC_EBANX_Constants 'sencillito' => 'America/Santiago', 'safetypay-cash' => 'America/Lima', 'baloto' => 'America/Bogota', + 'efectivo' => 'America/Argentina/Buenos_Aires', + 'rapipago' => 'America/Argentina/Buenos_Aires', + 'pagofacil' => 'America/Argentina/Buenos_Aires', + 'cupon' => 'America/Argentina/Buenos_Aires', ); /** From 72565f7518cdc93f5f3f0453ec5d4c509c9d235a Mon Sep 17 00:00:00 2001 From: Guilherme Pressutto Date: Tue, 3 Oct 2017 14:21:50 -0300 Subject: [PATCH 16/27] Using a new method to get iframe url --- .../class-wc-ebanx-api-controller.php | 46 +++++++++++-------- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/woocommerce-gateway-ebanx/controllers/class-wc-ebanx-api-controller.php b/woocommerce-gateway-ebanx/controllers/class-wc-ebanx-api-controller.php index 482281a7..ba8f41a9 100644 --- a/woocommerce-gateway-ebanx/controllers/class-wc-ebanx-api-controller.php +++ b/woocommerce-gateway-ebanx/controllers/class-wc-ebanx-api-controller.php @@ -80,24 +80,7 @@ private function get_integration_key() { * @return void */ public function order_received($hash, $payment_type) { - $is_sandbox = $this->config->get_setting_or_default('sandbox_mode_enabled', 'yes') === 'yes'; - - $subdomain = $is_sandbox ? 'sandbox' : 'print'; - $url = "https://{$subdomain}.ebanx.com/"; - - if ($payment_type !== 'cip') { - $url .= 'print/'; - } - - if ($payment_type !== null && $payment_type !== 'boleto') { - $url .= "{$payment_type}/"; - } - - $url .= "?hash={$hash}"; - - if ($payment_type !== 'baloto') { - $url .= '&format=basic#'; - } + $url = $this->get_url($hash, $payment_type); if (!in_array('curl', get_loaded_extensions())) { echo file_get_contents($url); @@ -124,4 +107,31 @@ public function order_received($hash, $payment_type) { private function is_sandbox() { return $this->config->settings['sandbox_mode_enabled'] === 'yes'; } + + private function get_url($hash, $payment_type) { + $is_sandbox = $this->config->get_setting_or_default('sandbox_mode_enabled', 'yes') === 'yes'; + + $subdomain = $is_sandbox ? 'sandbox' : 'print'; + $url = "https://{$subdomain}.ebanx.com/"; + + if ($payment_type !== 'cip') { + $url .= 'print/'; + } + + if ($payment_type === 'efectivo') { + $url .= 'voucher/'; + } + + if ($payment_type !== null && $payment_type !== 'boleto' && $payment_type !== 'efectivo') { + $url .= "{$payment_type}/"; + } + + $url .= "?hash={$hash}"; + + if ($payment_type !== 'baloto') { + $url .= '&format=basic#'; + } + + return $url; + } } From efd43fafec1ecb064fbd2c847b3170b6725f37b8 Mon Sep 17 00:00:00 2001 From: Guilherme Pressutto Date: Tue, 3 Oct 2017 14:45:32 -0300 Subject: [PATCH 17/27] Using voucher_url on efectivo --- .../gateways/class-wc-ebanx-efectivo-gateway.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-efectivo-gateway.php b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-efectivo-gateway.php index f661d91a..f852a787 100644 --- a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-efectivo-gateway.php +++ b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-efectivo-gateway.php @@ -75,7 +75,7 @@ protected function save_order_meta_fields($order, $request) { parent::save_order_meta_fields($order, $request); - update_post_meta($order->id, '_efectivo_url', $request->payment->efectivo_url); + update_post_meta($order->id, '_efectivo_url', $request->payment->voucher_url); } /** From 38f43405fc9c38513795f4b94514274b21291897 Mon Sep 17 00:00:00 2001 From: Guilherme Pressutto Date: Tue, 3 Oct 2017 15:50:23 -0300 Subject: [PATCH 18/27] Changed efectivo images --- .../assets/images/ebanx-cupon.png | Bin 2275 -> 3207 bytes .../assets/images/ebanx-pagofacil.png | Bin 15287 -> 3733 bytes .../assets/images/ebanx-rapipago.png | Bin 2697 -> 2346 bytes 3 files changed, 0 insertions(+), 0 deletions(-) diff --git a/woocommerce-gateway-ebanx/assets/images/ebanx-cupon.png b/woocommerce-gateway-ebanx/assets/images/ebanx-cupon.png index a67e8c06a6f46b728aab28825d4dc9acd305a5cc..5f57125d51e499da009b209b2c6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Ejp5Q7m*j1^{Xp;oMt-^n4@8}Y zz0#`Y!8)+=XO^KeVbJ%R*K3QtfuriB2^8c;BvMU@Zfx>8AlgJPQ?lTRNmp6V-vJZG zNNqg++%!b=4&PVdS#>JY$U)||HOk9Ky({IFt5U-2ognfHeWxD08tQY)xQeWjV$#*M z;<}FsJEj<}In}%;D2wwDv|54~g+b^fn{c3Sf9xWKq_&Oe8n~f=hJ^eQlwFk;q!Y0k zNnULEE7>x5)n>y?v5CgrN2MT)S`)tzd1JI^yUMFp27haw^vjPg$CinZkE?LfXI6hF zhLf7hZHR^(4h4#x)+(Pf_#-)^sWEIQU30I|*XwVeYmLMTh8lt641I((`Pe<)c7_NX)p7p#n;l(~gyO53x@#`2r)bzI8+E{^zu< zsQG=4lKbSpgU|tZY;*ANnBHqinU@ERQ^DyRzX5$xZ%b9DT>3*o*z3Idosx9oOJC9kODlVxkj1z z+^XVn>Dk8@ekiIb3Ky%7UCd$`A2TO{_G!`ruR~&3B|Cjkb3ir&>~-0h{>>Wt z<&%|+`Ykku5&cXT66&tOF!rF(Vt!`nm>m9{=~lr5!3ma`+IX%{VG=9*B%5=OuE&4bkWM2RH=p32St`bChQ>E-9ZT|mlR>(P`^6!n9LfCe vH+eEVwFE6F>|brKxEnT0X&zn?&;e6tt0~HV`F~t@VgiqpG!@GpV1oY#b0L$G diff --git a/woocommerce-gateway-ebanx/assets/images/ebanx-rapipago.png b/woocommerce-gateway-ebanx/assets/images/ebanx-rapipago.png index b1a170c98752dad580a33a6c35a8af73f5bc583f..61b66ef1213db83eca1d67f8f4537fc11753e9d8 100644 GIT binary patch literal 2346 zcmaJ@dsGuw9?psg2uj5j1jNK36sXB0yh2g}B?*sEf(R%mDkNbNQ%oi%0YVZ$P(+F^ z!~)6zS8K)E<_x+ydp2-Rc z_FuKqY9#`JSVa$@g~Dqf{NfCk!C#`WJPlqfCBBi8Fo+{bWQst9Pb|a&QFK0&3xRS3kmv%jgehQybQ&2A>tK1jSQ6e3Pb0WcsX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xu(OfLKGul9G9K3{m~pQsk>JL`2d1^*sFS;v-dV#=y;;}Id)7$cj?4#=p@;Sr zNNp0?pMus-&Dau1Ub?`cd9T~%IBu;9vbI_37{6PM0@nAl-Z9%7$3374EV~n=02Rw_ zMt1juGgJPSfGHS-V_kgS{gE{zRJ{A_8`N;wReoz)I`h+l;vwjwDCep_|yG{TFiAB0hNr#DV+3 zw?E`2DL7F@1Ue18vpub-{gybk2KApzGW-AnIlF8F?rl=%^i`G0+W7~CL$gF(zHI8Lz+i&s?+J?)$m~pQtQYC%@YBW z<=&dH@iWb^!PWT=$>aS+Qb46Rmju7EO5DQgO9hmTvSriC-pu@AYmV8;!ReGb`Ho@2 zhC|bj79oa~t~YQ@zBgO#XH~2rv7yW_QT-NwGi#f;OC2tchm8nl1l!--ln{yO@>*iS zg=(mYH!Z2yMC%4WpWVN@(l7X!#Pf!q?7i}OqBnn&7ui_(b2}aX+I7E1(Uld}zgQQN z+bvRBF};oQc}{jzN?LfQiYAzByr_{cel{a)OFVM<QMHQboZJkRz^;z@Fj5SCl}mX&7l&_ez7Vq=1n(g8~o4`{5uBa?n`q zJ4Tfp!&TVh*(L~-Qi}IE8zrF;J*!BCTS*egcpG(0yti5!m&+{$>pHp++Dd61G>H8! z1Bl!k=4>VpvaA|+H{;-#1er<;zTHla{jIKY4^zHUf=qB3EYPg!=DHvC1~}D&PxsLd zJ9eNdUFH3Y>vZkh=22g>sORG5$D_B32Q ztxV`PS;?Ye`{TZG-#KDWMzc?A0A5L7y+6S=2Rb7pn_F z6y8ysRjiSSKcK|TEg@XD>RmHec8B_N7_9Jgbj`0}1*lFkG!zjIwBL0;jQ8xgl7!5o zb8u&09{zY|q=73N>A{*QKlQ6Iw~%LAeU>@TfOt5-^suU9U5{!;=N>Y3`+X* Date: Tue, 3 Oct 2017 16:12:50 -0300 Subject: [PATCH 19/27] Using images on the left on Efectivo --- .../templates/efectivo/payment-form.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/woocommerce-gateway-ebanx/templates/efectivo/payment-form.php b/woocommerce-gateway-ebanx/templates/efectivo/payment-form.php index f408d1a2..36f13370 100644 --- a/woocommerce-gateway-ebanx/templates/efectivo/payment-form.php +++ b/woocommerce-gateway-ebanx/templates/efectivo/payment-form.php @@ -16,17 +16,17 @@
From 61fb8e881371ce3f5f9425d969ea76c7577e35aa Mon Sep 17 00:00:00 2001 From: Guilherme Pressutto Date: Fri, 6 Oct 2017 18:57:56 -0300 Subject: [PATCH 20/27] Overwriting libjs invalid expiry date error --- woocommerce-gateway-ebanx/assets/js/checkout-fields.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/woocommerce-gateway-ebanx/assets/js/checkout-fields.js b/woocommerce-gateway-ebanx/assets/js/checkout-fields.js index 957a8c42..38e8023b 100644 --- a/woocommerce-gateway-ebanx/assets/js/checkout-fields.js +++ b/woocommerce-gateway-ebanx/assets/js/checkout-fields.js @@ -1,3 +1,6 @@ +EBANX.errors.summary.pt_BR['BP-DR-57'] = 'A data do cartão de crédito deve estar no formato MM/AA'; +EBANX.errors.summary.es['BP-DR-57'] = 'Por favor, escribe la fecha en el formato MM/AA'; + jQuery (function ($) { // Custom select fields if ('select2' in $.fn) { From dc9483483bf6a8ae9c76b87a79bd9d238d2ce09d Mon Sep 17 00:00:00 2001 From: Guilherme Pressutto Date: Fri, 6 Oct 2017 19:24:44 -0300 Subject: [PATCH 21/27] Overwriting libjs error on document ready --- woocommerce-gateway-ebanx/assets/js/checkout-fields.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/woocommerce-gateway-ebanx/assets/js/checkout-fields.js b/woocommerce-gateway-ebanx/assets/js/checkout-fields.js index 38e8023b..68f780bd 100644 --- a/woocommerce-gateway-ebanx/assets/js/checkout-fields.js +++ b/woocommerce-gateway-ebanx/assets/js/checkout-fields.js @@ -1,7 +1,6 @@ -EBANX.errors.summary.pt_BR['BP-DR-57'] = 'A data do cartão de crédito deve estar no formato MM/AA'; -EBANX.errors.summary.es['BP-DR-57'] = 'Por favor, escribe la fecha en el formato MM/AA'; - jQuery (function ($) { + EBANX.errors.summary.pt_BR['BP-DR-57'] = 'A data do cartão de crédito deve estar no formato MM/AA'; + EBANX.errors.summary.es['BP-DR-57'] = 'Por favor, escribe la fecha en el formato MM/AA'; // Custom select fields if ('select2' in $.fn) { $('select.ebanx-select-field').select2(); From c7d2fd7bcfeb980b501ee3301ff0f633940f4f4d Mon Sep 17 00:00:00 2001 From: Guilherme Pressutto Date: Fri, 6 Oct 2017 19:47:46 -0300 Subject: [PATCH 22/27] Saving document on redirect payment methods --- .../gateways/class-wc-ebanx-redirect-gateway.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-redirect-gateway.php b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-redirect-gateway.php index e1f2b4c1..f1bce18a 100644 --- a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-redirect-gateway.php +++ b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-redirect-gateway.php @@ -26,6 +26,8 @@ protected function process_response($request, $order) } $redirect = $request->payment->redirect_url; + parent::process_response($request, $order); + update_post_meta($order->id, '_ebanx_payment_hash', $request->payment->hash); $this->redirect_url = $redirect; From 2840055253f2ee6134b087efdd576f1d1ac58152 Mon Sep 17 00:00:00 2001 From: Guilherme Coelho Piovesan Date: Sat, 7 Oct 2017 15:33:48 -0300 Subject: [PATCH 23/27] Iframe resizer was not working --- woocommerce-gateway-ebanx/assets/js/order-received.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woocommerce-gateway-ebanx/assets/js/order-received.js b/woocommerce-gateway-ebanx/assets/js/order-received.js index 891658ac..f01aca62 100644 --- a/woocommerce-gateway-ebanx/assets/js/order-received.js +++ b/woocommerce-gateway-ebanx/assets/js/order-received.js @@ -35,7 +35,7 @@ jQuery(document).ready(function ($) { if (iframe) { var resizeIframe = function resizeIframe(iframe) { - iframe.style.height = iframe.contentWindow.document.body.parentElement.scrollHeight + 'px'; + iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px'; } $(window).on('load', function () { From d670dce214b54ce63f831ae303fd547d81ac9b1f Mon Sep 17 00:00:00 2001 From: Guilherme Pressutto Date: Mon, 9 Oct 2017 16:04:45 -0300 Subject: [PATCH 24/27] Showing instalments on local currency --- .../class-wc-ebanx-credit-card-br-gateway.php | 1 + .../class-wc-ebanx-credit-card-co-gateway.php | 1 + .../gateways/class-wc-ebanx-credit-card-gateway.php | 2 ++ .../class-wc-ebanx-credit-card-mx-gateway.php | 1 + .../services/class-wc-ebanx-one-click.php | 4 +++- woocommerce-gateway-ebanx/templates/instalments.php | 12 ++++++++++-- 6 files changed, 18 insertions(+), 3 deletions(-) diff --git a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-credit-card-br-gateway.php b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-credit-card-br-gateway.php index 774774f8..28e96717 100644 --- a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-credit-card-br-gateway.php +++ b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-credit-card-br-gateway.php @@ -12,6 +12,7 @@ public function __construct() { $this->id = 'ebanx-credit-card-br'; $this->method_title = __('EBANX - Credit Card Brazil', 'woocommerce-gateway-ebanx'); + $this->currency_code = WC_EBANX_Constants::CURRENCY_CODE_BRL; $this->title = 'Cartão de Crédito'; $this->description = 'Pague com cartão de crédito.'; diff --git a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-credit-card-co-gateway.php b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-credit-card-co-gateway.php index f85cdf4d..62b37fa3 100644 --- a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-credit-card-co-gateway.php +++ b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-credit-card-co-gateway.php @@ -13,6 +13,7 @@ public function __construct() { $this->id = 'ebanx-credit-card-co'; $this->method_title = __('EBANX - Credit Card Colombia', 'woocommerce-gateway-ebanx'); + $this->currency_code = WC_EBANX_Constants::CURRENCY_CODE_COP; $this->title = 'Tarjeta de Crédito'; $this->description = 'Pay with credit card.'; diff --git a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-credit-card-gateway.php b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-credit-card-gateway.php index 7eaeed03..0977e719 100644 --- a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-credit-card-gateway.php +++ b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-credit-card-gateway.php @@ -493,6 +493,8 @@ public function payment_fields() { 'currency' => $currency, 'country' => $country, 'instalments_terms' => $instalments_terms, + 'currency' => $this->currency_code, + 'currency_rate' => round(floatval($this->get_local_currency_rate_for_site($this->currency_code)), 2), 'cards' => (array) $cards, 'cart_total' => $cart_total, 'place_order_enabled' => $save_card, diff --git a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-credit-card-mx-gateway.php b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-credit-card-mx-gateway.php index 11bde1f0..8ffb12d5 100644 --- a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-credit-card-mx-gateway.php +++ b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-credit-card-mx-gateway.php @@ -13,6 +13,7 @@ public function __construct() { $this->id = 'ebanx-credit-card-mx'; $this->method_title = __('EBANX - Credit Card Mexico', 'woocommerce-gateway-ebanx'); + $this->currency_code = WC_EBANX_Constants::CURRENCY_CODE_MXN; $this->title = 'Tarjeta de Crédito'; $this->description = 'Pay with credit card.'; diff --git a/woocommerce-gateway-ebanx/services/class-wc-ebanx-one-click.php b/woocommerce-gateway-ebanx/services/class-wc-ebanx-one-click.php index 96cf6762..17642f72 100644 --- a/woocommerce-gateway-ebanx/services/class-wc-ebanx-one-click.php +++ b/woocommerce-gateway-ebanx/services/class-wc-ebanx-one-click.php @@ -329,12 +329,15 @@ public function print_button() { $instalments_terms = $this->gateway->get_payment_terms($cart_total, $max_instalments, $tax); $currency = WC_EBANX_Constants::$LOCAL_CURRENCIES[$country]; + $ebanx = new WC_EBANX_Gateway(); $args = apply_filters( 'ebanx_template_args', array( 'cards' => $this->cards, 'cart_total' => $cart_total, 'product_id' => $product->id, 'installment_taxes' => $this->instalment_rates, + 'currency' => $currency, + 'currency_rate' => round(floatval($ebanx->get_local_currency_rate_for_site($currency)), 2), 'label' => __( 'Pay with one click', 'woocommerce-gateway-ebanx' ), 'instalments' => $messages['instalments'], 'instalments_terms' => $instalments_terms, @@ -342,7 +345,6 @@ public function print_button() { 'action' => self::CREATE_ORDER_ACTION, 'permalink' => get_permalink($product->id), 'country' => $country, - 'currency' => $currency, 'should_show_button' => $this->should_show_button(), ) ); diff --git a/woocommerce-gateway-ebanx/templates/instalments.php b/woocommerce-gateway-ebanx/templates/instalments.php index 7a5863f5..9defbade 100644 --- a/woocommerce-gateway-ebanx/templates/instalments.php +++ b/woocommerce-gateway-ebanx/templates/instalments.php @@ -1,5 +1,13 @@ - 1 ) : ?> + 1 ) : ?>