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/1.1 200 OK 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: Tue, 28 May 2024 01:36:40 GMT Content-Length: 157 {"id":"VdcPay-150471","pickup":"Via dell' Aeroporto di Fiumicino, 00054 Fiumicino ","delivery":"Via Vittorio Fiorini, 44, rome","code":"005873","price":4500}
curl_exec response
Array ( [id] => VdcPay-150471 [pickup] => Via dell' Aeroporto di Fiumicino, 00054 Fiumicino [delivery] => Via Vittorio Fiorini, 44, rome [code] => 005873 [price] => 4500 )