Changeset 2715496
- Timestamp:
- 04/27/2022 02:24:09 PM (4 years ago)
- Location:
- appmax-woocommerce/trunk
- Files:
-
- 4 edited
-
appmax-woocommerce.php (modified) (2 diffs)
-
includes/class-awc-process-payment.php (modified) (3 diffs)
-
includes/domain/class-awc-errors-api.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
appmax-woocommerce/trunk/appmax-woocommerce.php
r2613863 r2715496 3 3 * Plugin Name: AppMax WooCommerce 4 4 * Description: Gateway de pagamento AppMax para WooCommerce. 5 * Version: 2.0.4 55 * Version: 2.0.46 6 6 * License: GPLv2 or later 7 7 * Author: AppMax Plataforma de Vendas Ltda … … 24 24 class AppMax_WC 25 25 { 26 const VERSION = '2.0.4 5';26 const VERSION = '2.0.46'; 27 27 28 28 /** -
appmax-woocommerce/trunk/includes/class-awc-process-payment.php
r2613863 r2715496 522 522 $this->awc_add_log( $log_content ); 523 523 524 $message_exception = sprintf( "%s", AWC_Errors_Api::AWC_MESSAGE_ERROR_PAYMENT ); 525 throw new \Exception( $message_exception ); 526 } 527 524 $message_exception = sprintf( "%s", AWC_Errors_Api::AWC_MESSAGE_005 ); 525 throw new \Exception( $message_exception ); 526 } 528 527 529 528 $response_body = AWC_Helper::awc_decode_object( wp_remote_retrieve_body( $response ) ); 530 529 531 532 530 $this->awc_verify_access_token( $response_body ); 533 531 534 532 if ( ! $response_body->success and $response_body->text == AWC_Errors_Api::AWC_VALIDATE_REQUEST ) { 535 $message_exception = sprintf( "%s", AWC_Errors_Api::AWC_MESSAGE_ERROR_PAYMENT ); 533 534 $message_exception = sprintf( "%s", AWC_Errors_Api::AWC_MESSAGE_005 ); 536 535 537 536 if ($response_body->data) { … … 548 547 if ( ! $response_body->success ) { 549 548 550 $order->update_status( AWC_Order_Status::AWC_FAILED, $response_body->text ); 549 if ($order->status == AWC_Order_Status::AWC_FAILED) { 550 $order->add_order_note( $response_body->text ); 551 } 552 553 if ($order->status != AWC_Order_Status::AWC_FAILED) { 554 $order->update_status( AWC_Order_Status::AWC_FAILED, $response_body->text ); 555 } 551 556 552 557 if ( $this->awc_enable_debug() ) { … … 556 561 } 557 562 558 $message_exception = sprintf( "%s - %s", AWC_Errors_Api::AWC_MESSAGE_ERROR_PAYMENT, $response_body->text);563 $message_exception = sprintf( "%s", AWC_Errors_Api::AWC_MESSAGE_005 ); 559 564 throw new \Exception( $message_exception ); 560 565 } -
appmax-woocommerce/trunk/includes/domain/class-awc-errors-api.php
r2533054 r2715496 11 11 const AWC_MESSAGE_003 = "Há um problema de conexão com o gateway de pagamento. Desculpe pela inconveniência."; 12 12 const AWC_MESSAGE_004 = "Chave de API inválida. Contate o gateway de pagamento."; 13 const AWC_MESSAGE_005 = "Houve um erro ao processar seu pagamento. Verifique mais detalhes nas informações do seu pedido."; 13 14 14 15 const AWC_MESSAGE_ERROR_CUSTOMER = "Erro no processamento de informações do cliente."; -
appmax-woocommerce/trunk/readme.txt
r2613863 r2715496 4 4 Requires at least: 4.0 5 5 Tested up to: 5.1 6 Stable tag: 2.0.4 56 Stable tag: 2.0.46 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 138 138 == Changelog == 139 139 140 = 2.0.46 = 141 142 * Alteração de mensagem exibida em caso de problemas com pagamento. 143 140 144 = 2.0.45 = 141 145
Note: See TracChangeset
for help on using the changeset viewer.