Changeset 2679916
- Timestamp:
- 02/16/2022 02:15:12 PM (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
r2676089 r2679916 160 160 file_put_contents(__DIR__ . "/../response.json", json_encode($response, JSON_PRETTY_PRINT)); 161 161 162 if ($response['status'] != "succeeded" || $response['error'] ) { 162 if ($response['status'] == "failed" || $response['error'] ) { 163 return array( 164 'result' => "error", 165 'redirect' => $this->get_return_url($order) 166 ); 167 } 168 169 if ($response['status'] == "canceled_security_risk" ) { 163 170 return array( 164 171 'result' => "error", … … 184 191 185 192 if ($payment == "credit") { 186 if ($response['status'] == "succeeded" ) { 187 $order->update_status('completed'); 188 }else{ 189 $order->update_status('failed'); 190 } 191 } 193 $order->update_status('completed', 'Pago'); 194 } 192 195 193 196 return array( -
switchpay-pagamentos/trunk/readme.txt
r2676089 r2679916 5 5 Tested up to: 5.9 6 6 Requires PHP: 7.2 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 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.3 - 2022/02/16 = 97 98 - Correção de conexão API. 99 96 100 = 1.0.2 - 2022/02/02 = 97 101 -
switchpay-pagamentos/trunk/switchpay-woocommerce.php
r2676089 r2679916 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. 27 * Version: 1.0.3 8 8 * Requires at least: 5.2 9 9 * Requires PHP: 7.2
Note: See TracChangeset
for help on using the changeset viewer.