Plugin Directory

Changeset 2644697


Ignore:
Timestamp:
12/15/2021 07:06:15 PM (4 years ago)
Author:
switchpaybrasil
Message:

alterações nos atributos da chamada da API

Location:
switchpay-pagamentos/trunk
Files:
3 edited

Legend:

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

    r2640725 r2644697  
    120120            "amount" => floatval($order->get_total()),
    121121            "reference" => $order_id,
    122             "call_back" => get_site_url() . "/?wc-api=switchpay",
     122            "callBack" => get_site_url() . "/?wc-api=switchpay",
    123123            "card" => [
    124                 "card_number" => intval(str_replace(' ', '', $numcart)),
    125                 "expiration_month" => $data[0],
    126                 "expiration_year" => $data[1],
    127                 "holder_name" => $namcart,
    128                 "security_code" => $cvvcart
     124                "cardNumber" => intval(str_replace(' ', '', $numcart)),
     125                "expirationMonth" => $data[0],
     126                "expirationYear" => $data[1],
     127                "holderName" => $namcart,
     128                "securityCode" => $cvvcart
    129129            ],
    130130            "installment" => [
    131                 "number_installments" => $parcelcart,
     131                "numberInstallments" => $parcelcart,
    132132                "fee" => $this->juros_min < $parcelcart ? $this->juros : 0,
    133                 "number_installments_not_fee" => $this->juros_min
    134133            ],
    135134            "payment" => [
    136                 "expiration_date" => date('Y-m-d', strtotime("+{$this->ticket_carencia} days", strtotime(date('Y-m-d')))),
    137                 "payment_limit_date" => date('Y-m-d', strtotime("+{$ticket_dias_apos_vencimento} days", strtotime(date('Y-m-d')))),
    138                 "body_instructions" => [$this->ticket_instrucao],
     135                "expirationDate" => date('Y-m-d', strtotime("+{$this->ticket_carencia} days", strtotime(date('Y-m-d')))),
     136                "paymentLimitDate" => date('Y-m-d', strtotime("+{$ticket_dias_apos_vencimento} days", strtotime(date('Y-m-d')))),
     137                "bodyInstructions" => [$this->ticket_instrucao],
    139138                "billing" => [
    140                     "late_fee" => [
     139                    "lateFee" => [
    141140                        "amount" => $this->ticket_multa,
    142                         "start_date" => date('Y-m-d', strtotime("+5 days", strtotime(date('Y-m-d'))))
     141                        "startDate" => date('Y-m-d', strtotime("+5 days", strtotime(date('Y-m-d'))))
    143142                    ],
    144143                    "interest" => [
    145144                        "amount" => $this->ticket_juros,
    146                         "start_date" => date('Y-m-d', strtotime("+5 days", strtotime(date('Y-m-d'))))
     145                        "startDate" => date('Y-m-d', strtotime("+5 days", strtotime(date('Y-m-d'))))
    147146                    ]
    148147                ]
  • switchpay-pagamentos/trunk/readme.txt

    r2640777 r2644697  
    9494== Changelog ==
    9595
     96= 1.0.1 - 2021/12/15 =
     97
     98- Alteração nomes atributos da chamada API.
     99
    96100= 1.0.0 - 2021/12/01 =
    97101
  • switchpay-pagamentos/trunk/switchpay-woocommerce.php

    r2640725 r2644697  
    33/**
    44 * Plugin Name: SwitchPay pagamentos para woocommerce     
    5  * Plugin URI:       
     5 * 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.0
     7 * Version: 1.0.1
    88 * Requires at least: 5.2
    99 * Requires PHP: 7.2
Note: See TracChangeset for help on using the changeset viewer.