Changeset 2676089
- Timestamp:
- 02/10/2022 01:08:58 AM (4 years ago)
- Location:
- switchpay-pagamentos/trunk
- Files:
-
- 3 edited
-
includes/SwitchPayGateway.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
switchpay-woocommerce.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
switchpay-pagamentos/trunk/includes/SwitchPayGateway.php
r2644697 r2676089 160 160 file_put_contents(__DIR__ . "/../response.json", json_encode($response, JSON_PRETTY_PRINT)); 161 161 162 if ($response['status'] == "failed" || $response['error'] ) {162 if ($response['status'] != "succeeded" || $response['error'] ) { 163 163 return array( 164 164 'result' => "error", … … 184 184 185 185 if ($payment == "credit") { 186 $order->update_status('completed', 'Pago'); 187 } 186 if ($response['status'] == "succeeded" ) { 187 $order->update_status('completed'); 188 }else{ 189 $order->update_status('failed'); 190 } 191 } 188 192 189 193 return array( -
switchpay-pagamentos/trunk/readme.txt
r2644700 r2676089 3 3 Tags: payments, pagamentos, gateway, boleto, boleto bancário, cartão de crédito, pagamentos, woocommerce 4 4 Requires at least: 5.2 5 Tested up to: 5. 8.25 Tested up to: 5.9 6 6 Requires PHP: 7.2 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 94 94 == Changelog == 95 95 96 = 1.0.2 - 2022/02/02 = 97 98 - Correções de bugs. 99 96 100 = 1.0.1 - 2021/12/15 = 97 101 -
switchpay-pagamentos/trunk/switchpay-woocommerce.php
r2644697 r2676089 5 5 * Plugin URI: https://wordpress.org/plugins/switchpay-pagamentos 6 6 * Description: A SwitchPay é a melhor forma de receber pagamentos online na modalidade de cartão de crédito e boleto bancário, sendo possível o cliente fazer todo o pagamento sem sair da sua loja WooCommerce de forma rápida, fácil e prática! 7 * Version: 1.0. 17 * Version: 1.0.2 8 8 * Requires at least: 5.2 9 9 * Requires PHP: 7.2
Note: See TracChangeset
for help on using the changeset viewer.