コード例 #1
0
        echo $this->Lang('err_parameter');
        return;
    }
    $account_id = $row['account_id'];
    if (!empty($params['currency'])) {
        $row['currency'] = $params['currency'];
    }
    if (!empty($params['surrate'])) {
        $row['surchargerate'] = html_entity_decode($params['surrate']);
    }
    $message = !empty($params['message']) ? html_entity_decode($params['message']) : FALSE;
    //populate inputs from supplied data
    if (!empty($params['amount'])) {
        $amount = html_entity_decode($params['amount']);
        $symbol = StripeGate\Utils::GetSymbol($row['currency']);
        $amount = StripeGate\Utils::CleanPublicAmount($amount, $row['amountformat'], $symbol);
    } else {
        $amount = NULL;
    }
    $cvc = NULL;
    $month = NULL;
    $number = NULL;
    $payfor = !empty($params['payer']) ? $params['payer'] : NULL;
    $paywhat = !empty($params['payfor']) ? $params['payfor'] : NULL;
    $year = NULL;
}
$baseurl = $this->GetModuleURLPath();
$tplvars = array();
if ($row['stylesfile']) {
    //using custom css for checkout display
    $u = StripeGate\Utils::GetUploadsUrl($this) . '/' . str_replace('\\', '/', $row['stylesfile']);