From 044b26ee8d09edf94ccd6238bcf21a0841130c67 Mon Sep 17 00:00:00 2001 From: Joao Graca Date: Fri, 26 Feb 2021 12:41:05 +0000 Subject: [PATCH 1/2] phone cc --- ptisp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ptisp.php b/ptisp.php index 023ac57..90c160f 100644 --- a/ptisp.php +++ b/ptisp.php @@ -291,7 +291,7 @@ function ptisp_RegisterDomain($params) { $request->setUsername($username); $request->setPassword($password); - $phone = $params["fullphonenumber"] ?? $params["phonenumber"]; + $phone = $params["fullphonenumber"] ?? ('+' . $params["phonecc"] . '.' . $params["phonenumber"]); $par = array("name" => $params["firstname"] . " " . $params["lastname"], "nif" => $vatid, "postalcode" => $params["postcode"], "country" => $params["country"], "address" => $params["address1"], "phone" => $phone, "mail" => $params["email"], "city" => $params["city"]); $request->execute($par); $result = json_decode($request->getResponseBody(), true); From 3c947f88c91a5b849110afbbd66e9512f83f22f8 Mon Sep 17 00:00:00 2001 From: Joao Graca Date: Mon, 1 Mar 2021 11:36:59 +0000 Subject: [PATCH 2/2] version bump --- ptisp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ptisp.php b/ptisp.php index 90c160f..4e12af0 100644 --- a/ptisp.php +++ b/ptisp.php @@ -1,6 +1,6 @@