Jump to content

Logicboxes phone-cc error


evolvewh

Recommended Posts

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

Link to comment
Share on other sites

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) .

Link to comment
Share on other sites

10 minutes ago, 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) .

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.

Link to comment
Share on other sites

2 hours ago, Blesta Addons said:

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

 

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.

Link to comment
Share on other sites

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' .

Link to comment
Share on other sites

50 minutes ago, 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' .

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...