dolalu Posted July 19, 2004 Posted July 19, 2004 Trying to get fast pay working here is the snippet of code that is used to set it up for your account ****** class fastpay { var $code, $title, $description, $enabled; // class constructor function fastpay() { global $order; $this->code = 'fastpay'; $this->title = MODULE_PAYMENT_fastpay_TEXT_TITLE; $this->description = MODULE_PAYMENT_fastpay_TEXT_DESCRIPTION; $this->sort_order = MODULE_PAYMENT_fastpay_SORT_ORDER; // BOF: WebMakers.com Added: Free Payments and Shipping if ( tep_get_free_charger($this->code) ) { $this->enabled = ((MODULE_PAYMENT_fastpay_STATUS == 'True') ? true : false); } // EOF: WebMakers.com Added: Free Payments and Shipping if ((int)MODULE_PAYMENT_fastpay_ORDER_STATUS_ID > 0) { $this->order_status = MODULE_PAYMENT_fastpay_ORDER_STATUS_ID; } if (is_object($order)) $this->update_status(); $this->form_action_url = 'www.yoururl.com/pl?'; } // class methods function update_status() { global $order; if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_fastpay_ZONE > 0) ) { $check_flag = false; $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_fastpay_ZONE . "' and zone_country_id = '" . $order->billing['country']['id'] . "' order by zone_id"); while ($check = tep_db_fetch_array($check_query)) { if ($check['zone_id'] < 1) { ****** if ( tep_get_free_charger($this->code) ) is causing errors, i just cannot get this to work. Also fastpay only gave me some html code to paste a button in, how does this work in the code. This is very frustrating! help will be greatly appreciated! Luke Dolan
Recommended Posts
Archived
This topic is now archived and is closed to further replies.