woocommerce/gateways/gateway.class.php

44 lines
651 B
PHP
Raw Normal View History

2011-08-09 15:16:18 +00:00
<?php
/**
* Jigoshop Payment Gateway class
**/
class jigoshop_payment_gateway {
var $id;
var $title;
var $chosen;
var $has_fields;
var $countries;
var $availability;
var $enabled;
var $icon;
var $description;
function is_available() {
if ($this->enabled=="yes") :
return true;
endif;
return false;
}
function set_current() {
$this->chosen = true;
}
function icon() {
if ($this->icon) :
return '<img src="'. jigoshop::force_ssl($this->icon).'" alt="'.$this->title.'" />';
endif;
}
function admin_options() {}
function process_payment() {}
function validate_fields() { return true; }
}