44 lines
651 B
PHP
44 lines
651 B
PHP
<?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; }
|
|
} |