Skip to content

Commit

Permalink
Merge pull request #12 from ptisp/joao
Browse files Browse the repository at this point in the history
phone cc
  • Loading branch information
apocas authored Mar 1, 2021
2 parents 609c1d4 + 3c947f8 commit d46aeae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ptisp.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

//v2.2.8
//v2.2.9

require_once("RestRequest.inc.php");

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit d46aeae

Please sign in to comment.