Integration with CIELO

0

I have a question on how to treat --data-binary , header I know I can treat it like this:

$data = [
    'USER'      => $this->username,
    'PWD'       => $this->password,
    'SIGNATURE' => $this->signature,
    'METHOD'    => 'SetExpressCheckout',
    'VERSION'   => 86,
];

Now the --data-binary below, I do not know how to assign.

curl
--data-binary
{  
   "MerchantOrderId":"2014113245231706",
   "Customer":{  
      "Name":"Comprador rec programada"
   },
   "Payment":{  
     "Type":"CreditCard",
     "Amount":1500,
     "Installments":1,
     "SoftDescriptor":"123456789ABCD",
     "RecurrentPayment":{
       "AuthorizeNow":"false",
       "EndDate":"2019-12-01",
       "Interval":"SemiAnnual",
       "StartDate":"2015-06-01"
     },
     "CreditCard":{  
         "CardNumber":"1234123412341231",
         "Holder":"Teste Holder",
         "ExpirationDate":"03/2019",
         "SecurityCode":"262",
         "SaveCard":"false",
         "Brand":"Visa"
     }
   }
}

Can anyone help me?

    
asked by anonymous 21.02.2017 / 03:20

0 answers