-
Notifications
You must be signed in to change notification settings - Fork 0
/
lifterlms-gateway-sample.php
48 lines (43 loc) · 1.35 KB
/
lifterlms-gateway-sample.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* LifterLMS Sample Payment Gateway Plugin
*
* This main file is loaded by WordPress, defines a few constants, and includes the main plugin class.
*
* @package LifterLMS_Sample_Gateway/Main
*
* @since 2020-09-04
* @version 2020-09-04
*
* Plugin Name: LifterLMS Sample Payment Gateway
* Plugin URI: https://github.com/gocodebox/lifterlms-gateway-sample
* Description: This plugin is a sample payment gateway which exists to demonstrate how to build a payment gateway plugin for LifterLMS
* Version: 2020-09-04
* Author: LifterLMS
* Author URI: https://lifterlms.com
* Text Domain: lifterlms-sample-gateway
* Domain Path: /i18n
* License: GPLv3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/
defined( 'ABSPATH' ) || exit;
if ( ! defined( 'LLMS_SAMPLE_GATEWAY_PLUGIN_FILE' ) ) {
define( 'LLMS_SAMPLE_GATEWAY_PLUGIN_FILE', __FILE__ );
}
if ( ! defined( 'LLMS_SAMPLE_GATEWAY_PLUGIN_DIR' ) ) {
define( 'LLMS_SAMPLE_GATEWAY_PLUGIN_DIR', dirname( LLMS_SAMPLE_GATEWAY_PLUGIN_FILE ) . '/' );
}
if ( ! class_exists( 'LifterLMS_Sample_Gateway' ) ) {
require_once LLMS_SAMPLE_GATEWAY_PLUGIN_DIR . 'class-lifterlms-sample-gateway.php';
}
/**
* Main gateway instance
*
* @since 2020-09-04
*
* @return LifterLMS_Sample_Gateway
*/
function llms_sample_gateway() {
return LifterLMS_Sample_Gateway::instance();
}
return llms_sample_gateway();