PluginProbe ʕ •ᴥ•ʔ
Trust Payments Gateway for WooCommerce / 2.1.0
Trust Payments Gateway for WooCommerce v2.1.0
trunk 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 2.0.0 2.0.1 2.1.0 2.1.1 2.1.2
trust-payments-hosted-payment-pages-integration / woocommerce-securetrading-gateway.php
trust-payments-hosted-payment-pages-integration Last commit date
Firebase 5 months ago admin 5 months ago assets 5 months ago i18n 5 months ago includes 5 months ago templates 5 months ago vendor 5 months ago CHANGELOG.md 5 months ago README.md 5 months ago composer.json 5 months ago composer.lock 5 months ago readme.txt 5 months ago woocommerce-securetrading-gateway.php 5 months ago
woocommerce-securetrading-gateway.php
40 lines
1 <?php
2 /**
3 * Plugin Name: Trust Payments Gateway for WooCommerce
4 * Plugin URI: https://www.trustpayments.com/
5 * Description: Allow payment by credit card on your store with Trust Payments.
6 * Version: 2.1.0
7 * Author: Trust Payments
8 * Author URI: https://www.trustpayments.com/
9 * Text Domain: trust-payments-hosted-payment-pages-integration
10 * Domain Path: /i18n/languages/
11 *
12 * License: GPLv3 or later
13 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
14 *
15 * Requires Plugins: woocommerce
16 *
17 */
18 if ( ! defined( 'ABSPATH' ) ) {
19 exit;
20 }
21
22 if ( ! defined( 'TP_PLUGIN_FILE' ) ) {
23 define( 'TP_PLUGIN_FILE', __FILE__ );
24 }
25
26 /**
27 * Returns the main instance of TrustPayments.
28 *
29 * @since 2.0.1
30 * @return Wc_TrustPayments_Main
31 */
32 if ( ! function_exists( 'trustpayments_init_gateways' ) ) {
33 function trustpayments_init_gateways() {
34 if ( ! class_exists( 'Wc_TrustPayments_Main', false ) ) {
35 include_once dirname( TP_PLUGIN_FILE ) . '/includes/class-trust-payments.php';
36 Wc_TrustPayments_Main::getInstance();
37 }
38 }
39 add_action('woocommerce_loaded', 'trustpayments_init_gateways');
40 }