My code:
var data = JSON.stringify(orderNo)
options.path = "/1/sales?merchantOrderId=" + orderNo
options.method = 'GET';
console.log(options)
var req = https.request(options, function (res) {...
You are giving the following error code:
TypeError: First argument must be a string or Buffer
My code looks like this:
request: function (dataJson, callback) {
var options = {
hostname: 'apisandbox.cieloecomme...
I got the answer from API from CIELO below, now I'd like to understand how to read and store values.
If someone can help me with what key information should I store in the database?
object(stdClass)#2 (3) { ["MerchantOr...
I'm trying to do a REQUEST of the form below, I'm not getting:
public function subscribe(){
$json_url = 'https://apisandbox.cieloecommerce.cielo.com.br/1/sales/';
$json_string = json_encode(array(
"MerchantOrderId"=>"201411...
In a test in heaven's father I get the message:
URI ' link '
{"Message":"No HTTP resource was found that matches the request URI 'https://apiquerysandbox.cieloecommerce.cielo.com.br/1/sales/'."}
I'm sending in jman postman:
{
"Merch...
When accessing urls link {PaymentId}
when replacing PaymentId by a value: 1 (random value)
I get this message:
"Message": "The requested resource does not support the 'POST' method."
When I send a request simulating a purchase:
URL
link
Json
{
"MerchantOrderId":"2014111703",
"Customer":{
"Name":"Comprador crédito simples"
},
"Payment":{
"Type":"CreditCard",
"Amount":15700,
"Inst...