-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdotpay.php
More file actions
35 lines (29 loc) · 759 Bytes
/
dotpay.php
File metadata and controls
35 lines (29 loc) · 759 Bytes
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
<?php
/*
Plugin Name: Gravity Forms Dotpay Add-On
Plugin URI: https://trui.pl
Description: Integrates Gravity Forms with Dotpay Payments, enabling end users to purchase goods and services through Gravity Forms.
Version: 0.1
Author: Trui.pl
Author URI: https://trui.pl
License: GPL-2.0+
Text Domain: gravityformsdotpay
Domain Path: /languages
*/
defined('ABSPATH') || die();
define('GF_DOTPAY_VERSION', '0.1');
add_action('gform_loaded', ['GFDotpayBootstrap', 'load'], 5);
class GFDotpayBootstrap
{
public static function load()
{
if (!method_exists('GFForms', 'include_payment_addon_framework')) {
return;
}
require_once('class-gf-dotpay.php');
GFAddOn::register('GFDotpay');
}
}
function gf_dotpay() {
return GFDotpay::get_instance();
}