Plugin Directory

Changeset 2679916


Ignore:
Timestamp:
02/16/2022 02:15:12 PM (4 years ago)
Author:
switchpaybrasil
Message:

Actualization of rules

Location:
switchpay-pagamentos/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • switchpay-pagamentos/trunk/includes/SwitchPayGateway.php

    r2676089 r2679916  
    160160        file_put_contents(__DIR__ . "/../response.json", json_encode($response, JSON_PRETTY_PRINT));
    161161
    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" ) {
    163170            return array(
    164171                'result' => "error",
     
    184191
    185192        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                 }
    192195
    193196        return array(
  • switchpay-pagamentos/trunk/readme.txt

    r2676089 r2679916  
    55Tested up to: 5.9
    66Requires PHP: 7.2
    7 Stable tag: 1.0.2
     7Stable tag: 1.0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9494== Changelog ==
    9595
     96= 1.0.3 - 2022/02/16 =
     97
     98- Correção de conexão API.
     99
    96100= 1.0.2 - 2022/02/02 =
    97101
  • switchpay-pagamentos/trunk/switchpay-woocommerce.php

    r2676089 r2679916  
    55 * Plugin URI:  https://wordpress.org/plugins/switchpay-pagamentos     
    66 * 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.2
     7 * Version: 1.0.3
    88 * Requires at least: 5.2
    99 * Requires PHP: 7.2
Note: See TracChangeset for help on using the changeset viewer.