Files
Testing/include/class_payment.php

127 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
<?php
/* PAYMENT GATEWAY BASE CLASS */
class semods_paymentgw_base {
var $config = array();
var $gateway_id = 0;
var $supported_credit_cards = array();
function __construct( $params ) {
}
function cancel_subscription() {
}
// api supporting gateways like paypal -> create session & redirect to payment processor
// cart - semods_Cart
function checkout( $cart ) {
}
// api supporting gateways like paypal -> pay for cart items + paypal recurring hach
// cart - semods_cart, can be null, e.g. in paypal case where it's retrieved from "custom"
function pay( $cart = null, $params = array() ) {
}
/*
* process IPN and similar callbacks from payment gateway
*
*/
function process_notification() {
}
function create_checkout_blob($cart) {
}
function verify_plan_parameters(&$plan_info) {
return true;
}
function get_supported_credit_cards() {
return $this->supported_credit_cards;
}
function test_api( $params = array() ) {
// not implemented
return false;
}
}
?>