Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm getting an error saying trustSWregister is unsupported #24

Open
rojermaharjan opened this issue Jun 17, 2016 · 0 comments
Open

I'm getting an error saying trustSWregister is unsupported #24

rojermaharjan opened this issue Jun 17, 2016 · 0 comments

Comments

@rojermaharjan
Copy link

I'm trying to implement opensrs toolkit for my laravel project.
Here is the code:

// Put the data to the Formatted array
$callstring = '';
$callArray = array(
'func' => 'trustSWregister',
'personal' => array(
'first_name' => $item->options[$set]['first_name'],
'last_name' => $item->options[$set]['last_name'],
'org_name' => isset($item->options['organization']['org_name']) ? $item->options['organization']['org_name'] : '',
'address1' => $item->options[$set]['address1'],
'city' => $item->options[$set]['city'],
'state' => $item->options[$set]['state'],
'postal_code' => $item->options[$set]['postal_code'],
'country' => $item->options[$set]['country'],
'phone' => $item->options[$set]['phone'],
'email' => $item->options[$set]['email'],
),
'data' => array(
'approver_email' => isset($item->options['approver_email']) ? $item->options['approver_email'] : '',
'csr' => $item->options['csr'],
'domain' => isset($item->options['domain']) ? $item->options['domain'] : '',
'handle' => 'process',
'product_type' => $productType->slug,
'reg_type' => 'new',
'server_type' => isset($item->options['server_type']) ? $item->options['server_type'] : '',
'period' => $item->qty,
),
);

$callstring = json_encode($callArray);

// Open SRS Call -> Result
$osrsHandler = processOpenSRS('json', $callstring);

dd($osrsHandler->resultFormatted);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant