Skip to content

Commit

Permalink
Version update
Browse files Browse the repository at this point in the history
  • Loading branch information
Štefan Földesi committed Aug 31, 2023
1 parent f739f5c commit 34ae82c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
29 changes: 15 additions & 14 deletions gopay-gateway.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* The plugin bootstrap file
*
Expand All @@ -9,7 +10,7 @@
* Plugin Name: GoPay gateway
* Plugin URI: https://github.com/argo22packages/gopay-woocommerce-integration
* Description: WooCommerce and GoPay payment gateway integration
* Version: 1.0.2
* Version: 1.0.3
* Author: GoPay
* Author URI: https://www.gopay.com/
* Text Domain: gopay-gateway
Expand All @@ -22,21 +23,21 @@

// If this file is called directly, abort.
// Preventing direct access to your WordPress.
if ( ! defined( 'WPINC' ) ) {
if (!defined('WPINC')) {
die();
}

/**
* Constants.
*/
define( 'GOPAY_GATEWAY_DOMAIN', 'gopay-gateway' );
define( 'GOPAY_GATEWAY_ID', 'wc_gopay_gateway' );
define( 'GOPAY_GATEWAY_FULLPATH', __FILE__ );
define( 'GOPAY_GATEWAY_URL', plugin_dir_url( __FILE__ ) );
define( 'GOPAY_GATEWAY_DIR', plugin_dir_path( __FILE__ ) );
define( 'GOPAY_GATEWAY_BASENAME', plugin_basename( __FILE__ ) );
define( 'GOPAY_GATEWAY_BASENAME_DIR', dirname( plugin_basename( __FILE__ ) ) );
define( 'GOPAY_GATEWAY_LOG_TABLE_NAME', 'gopay_gateway_log' );
define('GOPAY_GATEWAY_DOMAIN', 'gopay-gateway');
define('GOPAY_GATEWAY_ID', 'wc_gopay_gateway');
define('GOPAY_GATEWAY_FULLPATH', __FILE__);
define('GOPAY_GATEWAY_URL', plugin_dir_url(__FILE__));
define('GOPAY_GATEWAY_DIR', plugin_dir_path(__FILE__));
define('GOPAY_GATEWAY_BASENAME', plugin_basename(__FILE__));
define('GOPAY_GATEWAY_BASENAME_DIR', dirname(plugin_basename(__FILE__)));
define('GOPAY_GATEWAY_LOG_TABLE_NAME', 'gopay_gateway_log');

// Check requirements.
require GOPAY_GATEWAY_DIR .
Expand All @@ -63,10 +64,10 @@
'includes/class-gopay-gateway.php';

// Register activation/deactivation hook.
register_activation_hook( __FILE__, array( 'Gopay_Gateway_Activator', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'Gopay_Gateway_Deactivator', 'deactivate' ) );
register_activation_hook(__FILE__, array('Gopay_Gateway_Activator', 'activate'));
register_deactivation_hook(__FILE__, array('Gopay_Gateway_Deactivator', 'deactivate'));

// Check if Woocommerce GoPay Gateway was instantiated.
add_action( 'plugins_loaded', array( 'Gopay_Gateway', 'get_instance' ) );
add_action('plugins_loaded', array('Gopay_Gateway', 'get_instance'));
// Load text domain for translations.
add_action( 'init', array( 'Gopay_Gateway', 'load_textdomain' ), 99 );
add_action('init', array('Gopay_Gateway', 'load_textdomain'), 99);
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: WooCommerce, GoPay
Requires at least: 5.4
Tested up to: 6.0
Requires PHP: 7.4
Stable tag: 1.0.2
Stable tag: 1.0.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -70,3 +70,6 @@ Fixed variable products error

= 1.0.2 =
Fixed issues when enabled payment instruments was empty

= 1.0.3 =
Translation fix for payment options

0 comments on commit 34ae82c

Please sign in to comment.