<?php $bsaTrans = 'bsa_pro_plugin_trans_'; $model = new BSA_PRO_Model(); if (isset($_POST) && isset($_POST['bsaProSubmit']) && isset($_GET['site_id'])) { $getForm = $model->getForm('agency', $_GET['site_id']); } else { $getForm = ''; } // get notify action if (isset($_GET['bsa_pro_payment']) && $_GET['bsa_pro_payment'] == 'notify' || isset($_POST['stripeToken'])) { $model->notifyAction('agency'); } echo ' <div class="bsaProOrderingForm"> <div class="bsaProOrderingFormInner"> '; if (isset($_GET["bsa_pro_notice"]) && $_GET["bsa_pro_notice"] == 'success') { ?> <div class="bsaProAlert bsaProAlertSuccess bsaProAlertSuccessNotice"> <strong><?php echo get_option($bsaTrans . "alert_success"); ?> </strong> <p><?php echo get_option($bsaTrans . "payment_success"); ?> </p> </div> <?php } elseif (isset($_GET["bsa_pro_notice"]) && $_GET["bsa_pro_notice"] == 'failed') {
<?php $bsaTrans = 'bsa_pro_plugin_trans_'; $model = new BSA_PRO_Model(); if (isset($_POST) && isset($_POST['bsaProSubmit'])) { $getForm = $model->getForm(); } else { $getForm = ''; } // get notify action if (isset($_GET['bsa_pro_payment']) && $_GET['bsa_pro_payment'] == 'notify' || isset($_POST['stripeToken'])) { $model->notifyAction(); } echo ' <div class="bsaProOrderingForm"> <div class="bsaProOrderingFormInner"> '; if (isset($_GET["bsa_pro_notice"]) && $_GET["bsa_pro_notice"] == 'success') { ?> <div class="bsaProAlert bsaProAlertSuccess bsaProAlertSuccessNotice"> <strong><?php echo get_option($bsaTrans . "alert_success"); ?> </strong> <p><?php echo get_option($bsaTrans . "payment_success"); ?> </p> </div> <?php } elseif (isset($_GET["bsa_pro_notice"]) && $_GET["bsa_pro_notice"] == 'failed') {