Changeset 3087282
- Timestamp:
- 05/15/2024 04:30:20 PM (22 months ago)
- Location:
- swipe-for-givewp/trunk
- Files:
-
- 6 edited
-
includes/admin/give-swipego-settings.php (modified) (1 diff)
-
includes/class-swipego-gwp.php (modified) (1 diff)
-
libraries/swipego/admin/class-swipego-admin.php (modified) (2 diffs)
-
libraries/swipego/includes/functions.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
swipego-gwp.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
swipe-for-givewp/trunk/includes/admin/give-swipego-settings.php
r2759658 r3087282 61 61 { 62 62 $this->section_id = 'swipego'; 63 $this->section_label = __(' swipeGo', 'give-swipego');63 $this->section_label = __('SwipeGo', 'give-swipego'); 64 64 $this->swipego = new Swipego_GWP_API(); 65 65 -
swipe-for-givewp/trunk/includes/class-swipego-gwp.php
r2759658 r3087282 7 7 public function __construct() 8 8 { 9 9 10 10 // Libraries 11 11 require_once(SWIPEGO_GWP_PATH . 'libraries/swipego/class-swipego.php'); 12 13 // Functions14 require_once(SWIPEGO_GWP_PATH . 'includes/functions.php');15 16 // Admin17 require_once(SWIPEGO_GWP_PATH . 'admin/class-swipego-gwp-admin.php');18 19 if (swipego_is_logged_in() && swipego_is_plugin_activated('give/give.php')) {20 12 13 if ( swipego_is_plugin_activated('give/give.php')) { 14 15 // Functions 16 require_once(SWIPEGO_GWP_PATH . 'includes/functions.php'); 17 18 // Admin 19 require_once(SWIPEGO_GWP_PATH . 'admin/class-swipego-gwp-admin.php'); 20 21 21 // API 22 22 require_once( SWIPEGO_GWP_PATH . 'libraries/swipego/includes/abstracts/abstract-swipego-client.php' ); 23 23 require_once( SWIPEGO_GWP_PATH . 'libraries/swipego/includes/class-swipego-api.php' ); 24 24 require_once( SWIPEGO_GWP_PATH . 'includes/class-swipego-gwp-api.php' ); 25 26 // Initialize payment gateway 27 require_once( SWIPEGO_GWP_PATH . 'includes/class-swipego-gwp-init.php' ); 25 26 if ( swipego_get_integration() ) { 27 28 // Initialize payment gateway 29 require_once( SWIPEGO_GWP_PATH . 'includes/class-swipego-gwp-init.php' ); 30 31 } 32 28 33 } 34 29 35 } 30 36 -
swipe-for-givewp/trunk/libraries/swipego/admin/class-swipego-admin.php
r2759658 r3087282 247 247 if (isset($data['token']) && !empty($data['token'])) { 248 248 swipego_update_access_token($data['token'], $remember); 249 swipego_update_integration($email); 249 250 } else { 250 251 throw new Exception(__('An error occured! Please try again.', 'swipego')); … … 280 281 281 282 swipego_delete_access_token(); 283 swipego_delete_integration(); 282 284 283 285 wp_send_json_success(); -
swipe-for-givewp/trunk/libraries/swipego/includes/functions.php
r2759658 r3087282 45 45 } 46 46 47 // Get integration 48 function swipego_get_integration() { 49 return get_transient( 'swipego_integration' ); 50 } 51 52 // Update integration 53 function swipego_update_integration($email) { 54 return set_transient( 'swipego_integration', $email, 0 ); 55 } 56 57 // Delete integration 58 function swipego_delete_integration() { 59 return delete_transient( 'swipego_integration' ); 60 } 61 62 // Check if the user is has integration into Swipe 63 function swipego_has_integration() { 64 return swipego_get_integration() ? true : false; 65 } 66 47 67 // Check if the specified plugin is installed and activated 48 68 function swipego_is_plugin_activated($plugin_path) -
swipe-for-givewp/trunk/readme.txt
r2793441 r3087282 4 4 Requires at least: 4.2 5 5 Tested up to: 6.0.1 6 Stable tag: 1.0. 06 Stable tag: 1.0.1 7 7 License: GPLv2.1 8 8 License URI: https://opensource.org/licenses/LGPL-2.1 … … 91 91 == Changelog == 92 92 93 = 1.0.1 - 2024-05-16 = 94 * Fix expired token 95 93 96 = 1.0.0 = 94 97 * add from version 1.0.1 Open Stack. -
swipe-for-givewp/trunk/swipego-gwp.php
r2759658 r3087282 3 3 * Plugin Name: Swipe for GiveWP 4 4 * Description: Swipe payment integration for GiveWP. 5 * Version: 1.0. 05 * Version: 1.0.1 6 6 * Requires at least: 4.6 7 7 * Requires PHP: 7.0
Note: See TracChangeset
for help on using the changeset viewer.