SAAS-973: Airtime Billing page - Add support for August promotion plans
Made WHMCS Airtime group id a constant Check for CSRF token on promo eligibilty ajax check
This commit is contained in:
parent
bccba2f9d5
commit
b2fbb27801
4 changed files with 27 additions and 9 deletions
|
@ -3,6 +3,11 @@ class Application_Form_BillingUpgradeDowngrade extends Zend_Form
|
|||
{
|
||||
public function init()
|
||||
{
|
||||
$csrf_namespace = new Zend_Session_Namespace('csrf_namespace');
|
||||
$csrf_element = new Zend_Form_Element_Hidden('csrf');
|
||||
$csrf_element->setValue($csrf_namespace->authtoken)->setRequired('true')->removeDecorator('HtmlTag')->removeDecorator('Label');
|
||||
$this->addElement($csrf_element);
|
||||
|
||||
$productPrices = array();
|
||||
$productTypes = array();
|
||||
list($productPrices, $productTypes) = Billing::getProductPricesAndTypes();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue