Jump to content

Recommended Posts

Posted

v4.1.1 attempting to register a domain for a client. Here are the logs:

Input (Success)

https://httpapi.com/api/customers/search.json
a:5:{s:8:"username";s:17:"customer email address";s:13:"no-of-records";i:10;s:7:"page-no";i:1;s:11:"auth-userid";s:6:"xxxxxx";s:7:"api-key";s:32:"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";}

Output (Success)

https://httpapi.com/api/customers/search.json
{"recsonpage":"0","recsindb":"0"}

Input (Success)

https://httpapi.com/api/customers/signup.json
a:14:{s:4:"name";s:19:"First Name Last Name";s:7:"company";s:14:"Company Name";s:5:"email";s:17:"email_address";s:14:"address-line-1";s:20:"full address ";s:14:"address-line-2";s:9:"address 2";s:4:"city";s:11:"city";s:5:"state";s:2:"state";s:7:"zipcode";s:5:"xxxxx";s:7:"country";s:2:"US";s:8:"username";s:17:"email_address";s:6:"passwd";s:15:"xxxxxxxxxxxx";s:9:"lang-pref";s:2:"en";s:11:"auth-userid";s:6:"xxxxx";s:7:"api-key";s:32:"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";}

Output (Error)

https://httpapi.com/api/customers/signup.json
{"status":"ERROR","message":"Required parameter missing: phone-cc"}

I've of course changed the customers actual info here and I can see that the phone number and phone-cc are not being passed at all. This is a new client being registered along with the domain.

When I attempt to manually edit and activate the service, this error message appears: Required parameter missing: customer-id

Posted

this is because your client didn't filled the phone number. because is a required element for customer in Logicboxes .

we have tweaked the module to allow fill a empty phone . i will release the logicboxes reloaded module with  anew version that will work with the logicboxes core module (it has some feature that the core didn't support it now) .

Posted
  On 10/3/2017 at 11:37 AM, Blesta Addons said:

this is because your client didn't filled the phone number. because is a required element for customer in Logicboxes .

we have tweaked the module to allow fill a empty phone . i will release the logicboxes reloaded module with  anew version that will work with the logicboxes core module (it has some feature that the core didn't support it now) .

Expand  

Our client has added a phone number to their account and we have it set as a required field when creating an account with us.

Posted
  On 10/3/2017 at 11:48 AM, evolvewh said:

Our client has added a phone number to their account and we have it set as a required field when creating an account with us.

Expand  

from your log, the phone or the country code was not send . i still think the phone number was missing .

 

Posted
  On 10/3/2017 at 1:11 PM, Blesta Addons said:

from your log, the phone or the country code was not send . i still think the phone number was missing .

 

Expand  

The issue is that the module is not sending the phone number. The phone number does exist for the customers account but the module isn't passing that value to the registrar.

Posted

i use a custom condition that is working for me, make note of it :

                    } elseif ($key == 'phone-cc') {
                        $part = explode(
                            '.',
                            $this->formatPhone(
                                isset($numbers[0]) ? $numbers[0]->number : null,
                                $client->country
                            )
                        );
                        if (count($part) == 2) {
                            $vars[$key] = ltrim($part[0], '+');
                            $vars['phone'] = $part[1] != '' ? $part[1] : '1111111';
                        }
                    } 

so if the module can't get a number he is filling a unused number '1111111' .

Posted
  On 10/3/2017 at 10:06 PM, Blesta Addons said:

i use a custom condition that is working for me, make note of it :

                    } elseif ($key == 'phone-cc') {
                        $part = explode(
                            '.',
                            $this->formatPhone(
                                isset($numbers[0]) ? $numbers[0]->number : null,
                                $client->country
                            )
                        );
                        if (count($part) == 2) {
                            $vars[$key] = ltrim($part[0], '+');
                            $vars['phone'] = $part[1] != '' ? $part[1] : '1111111';
                        }
                    } 

so if the module can't get a number he is filling a unused number '1111111' .

Expand  

Thanks for the help. This is the first time I've seen this so I'll watch for a bit and see if it continues with others or if it was a one time thing.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...