예제 #1
0
 function init()
 {
     parent::init();
     add_payment_field('epayph_vars', 'ePay subscription terms', 'hidden', '');
     add_product_field('trial1_days', 'Trial 1 Duration', 'period', 'read ePay docs for explanation, leave empty to not use trial', 'validate_period');
     add_product_field('trial1_price', 'Trial 1 Price', 'money', 'set 0 for free trial');
     add_product_field('rebill_times', 'Recurring Times', 'text', 'Recurring Times. This is the number of payments which<br />
          will occur at the regular rate. If omitted, payment will<br />
          continue to recur at the regular rate until the subscription<br />
          is cancelled.<br />
          NOTE: this option is working for particular payment processing methods only');
     if ($this->config['allow_create']) {
         add_product_field('epayph_id', 'ePay Product ID', 'text', 'an ID of corresponding product in your ePay account (item_number)');
     }
     if ($this->config['other_account']) {
         add_product_field('epayph_other_account', 'Other ePay Account', 'text', 'email address of an other ePay account<br />which will be used with this product');
     }
     add_product_field('epayph_currency', 'ePay Currency', 'select', 'valid only for ePay processing.<br /> You should not change it<br /> if you use
         another payment processors', '', array('options' => array('' => 'USD', 'GBP' => 'GBP', 'EUR' => 'EUR', 'CAD' => 'CAD', 'AUD' => 'AUD', 'JPY' => 'JPY', 'PHP' => 'PHP')));
     add_payment_field('txn_id', 'ePay Transaction Id', 'readonly', 'internal');
     add_payment_field('failed_orig_expiration', 'Failed payment original expiration date', 'readonly', 'internal');
     add_member_field('epayph_email_rewritten', 'ePay had reset user e-mail', 'hidden', 'internal');
     if ($this->config['testing']) {
         $this->epayph_domain = "www.epay.ph";
     } else {
         $this->epayph_domain = "www.epay.ph";
     }
 }
 function init()
 {
     parent::init();
     add_product_field('1shoppingcart_id', '1ShoppingCart Product ID#', 'text', "please take product ID# from 1ShoppingCart control panel<br>\n             and enter here. To avoid confusion, product must have the same<br>\n             price and duration settings");
     add_product_field('trial1_days', 'Trial 1 Duration', 'period', 'read docs for explanation, leave empty to not use trial');
     add_product_field('trial1_price', 'Trial 1 Price', 'money', 'set 0 for free trial');
     $this->config['api_url'] = 'https://www.mcssl.com/API/';
 }
예제 #3
0
 function init()
 {
     parent::init();
     add_product_field('clickbank_id', 'ClickBank ID', 'text', 'You must create this same product<br />in Clickbank and enter its number here', 'validate_clickbank_id');
     add_product_field('clickbank_cbskin', 'ClickBank Skin ID', 'text', 'an ID if your custom skin (cbskin parameter) for an order page');
     add_product_field('trial1_days', 'Trial 1 Duration', 'period', 'read docs for explanation, leave empty to not use trial');
     add_product_field('trial1_price', 'Trial 1 Price', 'money', 'set 0 for free trial');
 }