Ejemplo n.º 1
0
function getExistingIframeSrc()
{
    global $messages;
    $iframeSrc = PaymentManager::getExistingIframeSrc($_SESSION['email']);
    $messages = $iframeSrc;
}
Ejemplo n.º 2
0
function test_getExistingAccountUrl()
{
    global $EXISTING_CUSTOMER_ACCOUNT_NAME;
    printResultStart(__FUNCTION__);
    $messages = array();
    //Test
    try {
        $iframeSrc = PaymentManager::getExistingIframeSrc($EXISTING_CUSTOMER_ACCOUNT_NAME);
        echo "The iframe below should display a credit card and contact information entry form, " . "prepopulated with existing user, '" . $EXISTING_CUSTOMER_ACCOUNT_NAME . "'s contact information..<br>";
        echo "<iframe src='" . $iframeSrc . "' width='400' height='180'></iframe><br>";
    } catch (Exception $e) {
        array_push($messages, "Iframe URL threw an exception: " . $e->getMessage());
    }
    printResultEnd($messages);
}