Changeset 2644697
- Timestamp:
- 12/15/2021 07:06:15 PM (4 years ago)
- Location:
- switchpay-pagamentos/trunk
- Files:
-
- 3 edited
-
includes/SwitchPayGateway.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
switchpay-woocommerce.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
switchpay-pagamentos/trunk/includes/SwitchPayGateway.php
r2640725 r2644697 120 120 "amount" => floatval($order->get_total()), 121 121 "reference" => $order_id, 122 "call _back" => get_site_url() . "/?wc-api=switchpay",122 "callBack" => get_site_url() . "/?wc-api=switchpay", 123 123 "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" => $cvvcart124 "cardNumber" => intval(str_replace(' ', '', $numcart)), 125 "expirationMonth" => $data[0], 126 "expirationYear" => $data[1], 127 "holderName" => $namcart, 128 "securityCode" => $cvvcart 129 129 ], 130 130 "installment" => [ 131 "number _installments" => $parcelcart,131 "numberInstallments" => $parcelcart, 132 132 "fee" => $this->juros_min < $parcelcart ? $this->juros : 0, 133 "number_installments_not_fee" => $this->juros_min134 133 ], 135 134 "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], 139 138 "billing" => [ 140 "late _fee" => [139 "lateFee" => [ 141 140 "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')))) 143 142 ], 144 143 "interest" => [ 145 144 "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')))) 147 146 ] 148 147 ] -
switchpay-pagamentos/trunk/readme.txt
r2640777 r2644697 94 94 == Changelog == 95 95 96 = 1.0.1 - 2021/12/15 = 97 98 - Alteração nomes atributos da chamada API. 99 96 100 = 1.0.0 - 2021/12/01 = 97 101 -
switchpay-pagamentos/trunk/switchpay-woocommerce.php
r2640725 r2644697 3 3 /** 4 4 * Plugin Name: SwitchPay pagamentos para woocommerce 5 * Plugin URI: 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. 07 * Version: 1.0.1 8 8 * Requires at least: 5.2 9 9 * Requires PHP: 7.2
Note: See TracChangeset
for help on using the changeset viewer.