Beispiel #1
0
function quickOrderBillingAddressVerify()
{
    if (isset($_POST["billing_address_check"])) {
        return quickOrderReceiverAddressVerify();
    }
    $payer_first_name = $_POST["payer_first_name"];
    $payer_last_name = $_POST["payer_last_name"];
    $billingCountryID = $_POST["billingCountryID"];
    if (isset($_POST["billingState"])) {
        $billingState = $_POST["billingState"];
    } else {
        $billingState = "";
    }
    $billingCity = $_POST["billingCity"];
    $billingAddress = $_POST["billingAddress"];
    if (isset($_POST["billingZoneID"])) {
        $billingZoneID = $_POST["billingZoneID"];
    } else {
        $billingZoneID = 0;
    }
    $error = regVerifyAddress($payer_first_name, $payer_last_name, $billingCountryID, $billingZoneID, $billingState, $billingCity, $billingAddress);
    return $error;
}
Beispiel #2
0
     $_POST["state"] = "";
 }
 if (!isset($_POST["zoneID"])) {
     $_POST["zoneID"] = 0;
 }
 if (!isset($_POST["billingState"])) {
     $_POST["billingState"] = "";
 }
 if (!isset($_POST["billingZoneID"])) {
     $_POST["billingZoneID"] = 0;
 }
 $error = "";
 $error = quickOrderContactInfoVerify();
 // receiver address
 if ($error == "") {
     $error = quickOrderReceiverAddressVerify();
 }
 // payer address
 if (CONF_ORDERING_REQUEST_BILLING_ADDRESS == '1' && $error == "") {
     $error = quickOrderBillingAddressVerify();
 }
 if (CONF_ENABLE_CONFIRMATION_CODE) {
     if (!$_POST['fConfirmationCode'] || !isset($_SESSION['captcha_keystring']) || $_SESSION['captcha_keystring'] !== $_POST['fConfirmationCode']) {
         $error = ERR_WRONG_CCODE;
     }
     unset($_SESSION['captcha_keystring']);
 }
 if ($error == "") {
     quikOrderSetCustomerInfo();
     quickOrderSetReceiverAddress();
     if (CONF_ORDERING_REQUEST_BILLING_ADDRESS == '1') {