array(2) { ["merchantorderid"]=> int(9649) ["paymentid"]=> string(12) "valore-debug" } Array ( [pickup] => Via dell' Aeroporto di Fiumicino, 00054 Fiumicino RM [delivery] => Via Vittorio Fiorini, 44, rome [price] => 4500 [customer] => Andrew Wicks [nr_of_luggage] => 1 [nr_of_pax] => 3 )
https://www.vdc.taxi:44301/ecomcreate
$rest_url
{"pickup":"Via dell' Aeroporto di Fiumicino, 00054 Fiumicino RM","delivery":"Via Vittorio Fiorini, 44, rome","price":4500,"customer":"Andrew Wicks","nr_of_luggage":"1","nr_of_pax":"3"}
$rest_request
Array ( [0] => Content-type: application/json;charset="utf-8" [1] => Accept: application/json [2] => Cache-Control: no-cache [3] => Pragma: no-cache [4] => Authorization: ClientId d0c4d26c-3b73-49bd-973f-2f3a7c156034 [5] => Content-length: 184 )
HTTP/2 200 cache-control: no-cache pragma: no-cache content-type: application/json; charset=utf-8 expires: -1 server: Microsoft-IIS/10.0 x-aspnet-version: 4.0.30319 x-powered-by: ASP.NET date: Fri, 20 May 2022 23:55:39 GMT content-length: 156 {"id":"VdcPay-63131","pickup":"Via dell' Aeroporto di Fiumicino, 00054 Fiumicino ","delivery":"Via Vittorio Fiorini, 44, rome","code":"002155","price":4500}
curl_exec response
Array ( [id] => VdcPay-63131 [pickup] => Via dell' Aeroporto di Fiumicino, 00054 Fiumicino [delivery] => Via Vittorio Fiorini, 44, rome [code] => 002155 [price] => 4500 )