Beispiel #1
0
        $this->ajax = true;
        $this->createPDFInvoice($transaction, true, $transactions);
    }
}
$mod = new billing();
if (isset($_POST['stripeToken'])) {
    $mod->updateToken($_POST);
} else {
    if (isset($_GET['cancelsub'])) {
        $mod->cancelSubscription();
    } else {
        if (isset($_GET['checking'])) {
            $mod->checkingMain();
        } else {
            if (isset($_POST['createDwollaAccount'])) {
                $mod->createDwollaAccount($_POST);
            } else {
                if (isset($_POST['addAccount'])) {
                    $mod->addBankAccount($_POST);
                } else {
                    if (isset($_GET['invoices'])) {
                        $mod->showInvoices();
                    } else {
                        if (isset($_GET['downloadInvoice'])) {
                            $mod->downloadInvoice($_GET);
                        } else {
                            $mod->main();
                        }
                    }
                }
            }