Example #1
0
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * -----------------------------------------------------------------------------
 *
 * Performs Cetification Test #5 For WildWest reseller
 * Get information about a purchased domain
 *
 * @author     Nicholas Miller <*****@*****.**>
 * @package    WildWest
 * @subpackage Cetification
 */
require_once dirname(__FILE__) . '/common.php';
if (empty($_SESSION['complete'][4])) {
    echo json_encode(array('success' => false, 'message' => 'Complete Step #4 first'));
    exit;
}
$client = new WildWest_Reseller_Client(WildWest_Reseller_Client::WSDL_OTE_TESTING, $_SESSION['account'], $_SESSION['pass']);
try {
    $info = $client->Info($_SESSION['resources']['example.biz'], 'example.biz', $_SESSION['orderid']);
    $_SESSION['complete'][5] = true;
    echo json_encode(array('success' => true));
} catch (Exception $ex) {
    echo json_encode(array('success' => false, 'message' => $ex->getMessage()));
}
Example #2
0
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * -----------------------------------------------------------------------------
 *
 * Performs Cetification Test #1 For WildWest reseller
 * Check domain name availabilty
 *
 * @author     Nicholas Miller <*****@*****.**>
 * @package    WildWest
 * @subpackage Cetification
 */
require_once dirname(__FILE__) . '/common.php';
$client = new WildWest_Reseller_Client(WildWest_Reseller_Client::WSDL_OTE_TESTING, $_SESSION['account'], $_SESSION['pass']);
$client->CheckAvailability(array('example.biz', 'example.us'));
$_SESSION['complete'][1] = true;
echo json_encode(array('success' => true));
Example #3
0
 * A unique user identifier was created and returned during the certification task in section
 * 4.1.2. This identifier also appears in the return XML from the certification task
 * described in section 7.1.3
 *
 * Resource IDs
 * The resource IDs for both domains were retrieved using the previous call to the Poll()
 * method. The DBP resource ID must be retrieved via a new Poll() method call.
 * This will return information from the domain name privacy order from the task
 * described in section 4.1.3.
 *
 * @author     Nicholas Miller <*****@*****.**>
 * @package    WildWest
 * @subpackage Cetification
 */
require_once dirname(__FILE__) . '/common.php';
$client = new WildWest_Reseller_Client(WildWest_Reseller_Client::WSDL_OTE_TESTING, $_SESSION['account'], $_SESSION['pass']);
if (empty($_SESSION['complete'][5])) {
    echo json_encode(array('success' => false, 'message' => 'Complete Step #5 first'));
    exit;
}
$order = new WildWest_Reseller_OrderItem();
$order->duration = '1';
$order->productid = '350087';
$order->quantity = '1';
$order->riid = '1';
$order2 = clone $order;
$order2->productid = '350137';
$order3 = clone $order;
$order3->productid = '387001';
$item = new WildWest_Reseller_DomainRenewal();
$item->period = '1';
Example #4
0
 *   + ZIP - 97123
 *   + Country - United States
 *   + Phone - (777)555-1212
 *   + Password - "ghijk"
 *
 * Upon completion of the above steps, the reseller's status will be updated
 * in the WWD database and a certification confirmation email message will
 * be sent to the reseller. At this point, the reseller is granted permission
 * to the production reseller extranet and API environments.
 *
 * @author     Nicholas Miller <*****@*****.**>
 * @package    WildWest
 * @subpackage Cetification
 */
require_once dirname(__FILE__) . '/common.php';
$client = new WildWest_Reseller_Client(WildWest_Reseller_Client::WSDL_OTE_TESTING, $_SESSION['account'], $_SESSION['pass']);
if (empty($_SESSION['complete'][6])) {
    echo json_encode(array('success' => false, 'message' => 'Complete Step #7 first'));
    exit;
}
$shopper = new WildWest_Reseller_Shopper();
$shopper->firstname = 'Joe';
$shopper->lastname = 'Smith';
$shopper->email = '*****@*****.**';
$shopper->phone = '+1.7775551212';
$shopper->pwd = 'ghijk';
$shopper->user = '******';
$order = new WildWest_Reseller_OrderItem();
$order->productid = '350011';
$order->quantity = '1';
$transfer = new WildWest_Reseller_DomainTransfer();
Example #5
0
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * -----------------------------------------------------------------------------
 *
 * Resets The Certification Process incase anything went awry
 *
 * @author     Nicholas Miller <*****@*****.**>
 * @package    WildWest
 * @subpackage Cetification
 */
require_once realpath(dirname(__FILE__) . '/common.php');
session_destroy();
session_start();
if (empty($_REQUEST['account']) || empty($_REQUEST['pass'])) {
    echo json_encode(array('success' => false, 'message' => 'missing credentials.'));
    exit;
}
$client = new WildWest_Reseller_Client(WildWest_Reseller_Client::WSDL_OTE_TESTING, $_REQUEST['account'], $_REQUEST['pass']);
$_SESSION['account'] = $_REQUEST['account'];
$_SESSION['pass'] = $_REQUEST['pass'];
try {
    $client->RestartCertification();
    echo json_encode(array('success' => true));
} catch (Exception $ex) {
    echo json_encode(array('success' => false, "message" => $ex->getMessage()));
}
unset($_SESSION['complete']);
Example #6
0
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * -----------------------------------------------------------------------------
 *
 * Performs Cetification Test #2 For WildWest reseller
 * 
 * @author     Nicholas Miller <*****@*****.**>
 * @package    WildWest
 * @subpackage Cetification
 */
require_once dirname(__FILE__) . '/common.php';
$client = new WildWest_Reseller_Client(WildWest_Reseller_Client::WSDL_OTE_TESTING, $_SESSION['account'], $_SESSION['pass']);
if (empty($_SESSION['complete'][1])) {
    echo json_encode(array('success' => false, 'message' => 'Complete Step #1 first'));
    exit;
}
$ns1 = new WildWest_Reseller_NS();
$ns1->name = 'ns1.example.com';
$ns2 = new WildWest_Reseller_NS();
$ns2->name = 'ns2.example.com';
$order = new WildWest_Reseller_OrderItem();
$order->productid = '350077';
$order->quantity = '1';
$order2 = new WildWest_Reseller_OrderItem();
$order2->productid = '350127';
$order2->quantity = '1';
$r = new WildWest_Reseller_ContactInfo();
Example #7
0
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * -----------------------------------------------------------------------------
 *
 * Performs Cetification Test #3 For WildWest reseller
 *
 * @author     Nicholas Miller <*****@*****.**>
 * @package    WildWest
 * @subpackage Cetification
 */
require_once dirname(__FILE__) . '/common.php';
$client = new WildWest_Reseller_Client(WildWest_Reseller_Client::WSDL_OTE_TESTING, $_SESSION['account'], $_SESSION['pass']);
if (empty($_SESSION['complete'][2])) {
    echo json_encode(array('success' => false, 'message' => 'Complete Step #2 first'));
    exit;
}
$shopper = new WildWest_Reseller_Shopper();
$shopper->firstname = 'Artemus';
$shopper->lastname = 'Gordon';
$shopper->phone = '+18885551212';
$shopper->user = $_SESSION['userid'];
$shopper->pwd = 'abcde';
$shopper->email = '*****@*****.**';
$shopper->dbpuser = '******';
$shopper->dbppwd = 'defgh';
$shopper->dbpemail = '*****@*****.**';
$order = new WildWest_Reseller_OrderItem();