Skip to content

Instantly share code, notes, and snippets.

View jrmaia's full-sized avatar

Junior Maia jrmaia

View GitHub Profile
{
"result": "PREAPPROVED",
"preview": {
"showScript": true,
"simulation": {
"interest": 0.06,
"installmentsNumber": 18,
"downPaymentPercentage": 0,
"pmt": 1385.35,
"totalValue": 24936.27
@jrmaia
jrmaia / parcelex return
Created March 22, 2024 20:47
parcelex return
{
"checkoutId": "65fdedee9518790b0f74f73f",
"result": "APPROVED",
"downPaymentOptions": [
{
"downPaymentPercentage": 0,
"downPaymentValue": 0,
"dueDateOptions": [
{
"firstDueDate": "2024-04-25",
junior@junior iopay-sdk-php % php examples/split/create.php
Array
(
[receiver] => 9f9e387d-f13f-4c64-b7ea-0e2884301d40
[receiver_fee_type] => proportional
[split_type] => percent
[split_value] => 10
[min_amount] => 100
[max_amount] => 100000
[chargeback_liable] => 1
#Cotação
Endpoint: http://34.200.233.189/mova/quotation
Body:
{
"request_info": {
"product_id": 801,
"external_id": "abc26"
},
"financial_info": {
$payload = array (
'api_version' => self::API_VERSION,
'transaction_id' => '593f33f6-6122-4624-8c1c-6602a14a730e',
'data' => array(
'request_info' => array(
"product_id" => $product_id,
"external_id" => $external_id
),
'borrower_info' => array(
"person_type" => $person_type,
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => self::URL,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false,
{
"payment_method":"credit_card",
"amount":53500,
"recurrence":false,
"installments":1,
"capture":true,
"antifraudEnabled":false,
"customer":{
"phone":{
"ddd":"41",
"amount":40000,
"description":"COTURNO T\u00c1TICO -41",
"quantity":1
},
{
"amount":94958,
"description":"PED CONJUNTO CAMUFLADO-CAMUFLADO COYOTE-M",
"quantity":1
}
],
server {
listen 9041 default;
server_name casa_stillo.local *.casa_stillo.local; ## Domain is here twice so server_name_in_redirect will favour the www
server_name_in_redirect off;
root /usr/local/var/casa_stillo/;
autoindex off;
location /app/ { deny all; }
location /includes/ { deny all; }
{
"error": {
"status": "Bad Request",
"status_code": 400,
"type": "invalid_request_error",
"category": "invalid_payment_information",
"message": "Invalid payment information. Please verify request parameters.",
"reversible": false
},
"id": "c31f9952067c4001822f1b175eafe4aa",