forked from gravityplus/gravity-forms-braintree
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgravity-forms-braintree.php
More file actions
35 lines (26 loc) · 869 Bytes
/
gravity-forms-braintree.php
File metadata and controls
35 lines (26 loc) · 869 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 Braintree Add-On
Plugin URI: http://plugify.io/
Description: Allow your customers to purchase goods and services through Gravity Forms via Braintree Payments
Author: Plugify
Version: 1.1.1
Author URI: http://plugify.io
*/
// Ensure WordPress has been bootstrapped
if( !defined( 'ABSPATH' ) ) {
exit;
}
$path = trailingslashit( dirname( __FILE__ ) );
// Ensure Gravity Forms (payment addon framework) is installed and good to go
if( is_callable( array( 'GFForms', 'include_payment_addon_framework' ) ) ) {
// Bootstrap payment addon framework
GFForms::include_payment_addon_framework();
// Require Braintree Payments core
require_once $path . 'lib/Braintree.php';
// Require plugin entry point
require_once $path . 'lib/class.plugify-gform-braintree.php';
// Fire off entry point
new Plugify_GForm_Braintree();
}
?>