Changeset 3087281
- Timestamp:
- 05/15/2024 04:28:30 PM (22 months ago)
- Location:
- swipe-for-gravity-forms/trunk
- Files:
-
- 6 edited
-
README.md (modified) (2 diffs)
-
includes/class-swipego-gf.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-gf.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
swipe-for-gravity-forms/trunk/README.md
r2888184 r3087281 4 4 Requires at least: 4.6 5 5 Tested up to: 6.0.1 6 Stable tag: 1.0. 56 Stable tag: 1.0.6 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 26 26 ## Changelog 27 27 28 1.0.6 - 2024-05-16 29 - Fix expired token 30 28 31 1.0.5 - 2023-03-28 29 32 - Add event for success and fail -
swipe-for-gravity-forms/trunk/includes/class-swipego-gf.php
r2875097 r3087281 6 6 // Load dependencies 7 7 public function __construct() { 8 8 9 9 // Libraries 10 10 require_once( SWIPEGO_GF_PATH . 'libraries/swipego/class-swipego.php' ); 11 11 12 // Functions 13 require_once( SWIPEGO_GF_PATH . 'includes/functions.php' ); 12 if ( swipego_is_plugin_activated( 'gravityforms/gravityforms.php' ) ) { 14 13 15 // Admin 16 require_once( SWIPEGO_GF_PATH . 'admin/class-swipego-gf-admin.php' ); 14 // Functions 15 require_once( SWIPEGO_GF_PATH . 'includes/functions.php' ); 16 17 // Admin 18 require_once( SWIPEGO_GF_PATH . 'admin/class-swipego-gf-admin.php' ); 19 20 // API 21 require_once( SWIPEGO_GF_PATH . 'libraries/swipego/includes/abstracts/abstract-swipego-client.php' ); 22 require_once( SWIPEGO_GF_PATH . 'libraries/swipego/includes/class-swipego-api.php' ); 23 require_once( SWIPEGO_GF_PATH . 'includes/class-swipego-gf-api.php' ); 17 24 18 // API 19 require_once( SWIPEGO_GF_PATH . 'libraries/swipego/includes/abstracts/abstract-swipego-client.php' ); 20 require_once( SWIPEGO_GF_PATH . 'libraries/swipego/includes/class-swipego-api.php' ); 21 require_once( SWIPEGO_GF_PATH . 'includes/class-swipego-gf-api.php' ); 22 23 // Initialize payment gateway 24 require_once( SWIPEGO_GF_PATH . 'includes/class-swipego-gf-init.php' ); 25 if ( swipego_get_integration() ) { 26 27 // Initialize payment gateway 28 require_once( SWIPEGO_GF_PATH . 'includes/class-swipego-gf-init.php' ); 29 30 } 31 32 if ( swipego_is_logged_in() ) { 33 34 // Settings 35 require_once( SWIPEGO_GF_PATH . 'admin/class-swipego-gf-settings.php' ); 36 37 } 38 } 25 39 26 if ( swipego_is_logged_in() && swipego_is_plugin_activated( 'gravityforms/gravityforms.php' ) ) {27 // Settings28 require_once( SWIPEGO_GF_PATH . 'admin/class-swipego-gf-settings.php' );29 }30 40 31 41 } -
swipe-for-gravity-forms/trunk/libraries/swipego/admin/class-swipego-admin.php
r2757021 r3087281 230 230 if ( isset( $data['token'] ) && !empty( $data['token'] ) ) { 231 231 swipego_update_access_token( $data['token'], $remember ); 232 swipego_update_integration($email); 232 233 } else { 233 234 throw new Exception( __( 'An error occured! Please try again.', 'swipego' ) ); … … 265 266 266 267 swipego_delete_access_token(); 268 swipego_delete_integration(); 267 269 268 270 wp_send_json_success(); -
swipe-for-gravity-forms/trunk/libraries/swipego/includes/functions.php
r2753484 r3087281 30 30 } 31 31 32 // Get integration 33 function swipego_get_integration() { 34 return get_transient( 'swipego_integration' ); 35 } 36 37 // Update integration 38 function swipego_update_integration($email) { 39 return set_transient( 'swipego_integration', $email, 0 ); 40 } 41 42 // Delete integration 43 function swipego_delete_integration() { 44 return delete_transient( 'swipego_integration' ); 45 } 46 47 // Check if the user is has integration into Swipe 48 function swipego_has_integration() { 49 return swipego_get_integration() ? true : false; 50 } 51 32 52 // Check if the specified plugin is installed and activated 33 53 function swipego_is_plugin_activated( $plugin_path ) { -
swipe-for-gravity-forms/trunk/readme.txt
r2888184 r3087281 4 4 Requires at least: 4.6 5 5 Tested up to: 6.0.1 6 Stable tag: 1.0. 56 Stable tag: 1.0.6 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 91 91 92 92 == Changelog == 93 = 1.0.5 - 2023-03-28 93 94 = 1.0.6 - 2024-05-16 = 95 - Fix expired token 96 97 = 1.0.5 - 2023-03-28 = 94 98 - Add event for success and fail 95 99 -
swipe-for-gravity-forms/trunk/swipego-gf.php
r2888184 r3087281 3 3 * Plugin Name: Swipe for Gravity Forms 4 4 * Description: Swipe payment integration for Gravity Forms. 5 * Version: 1.0. 55 * Version: 1.0.6 6 6 * Requires at least: 4.6 7 7 * Requires PHP: 7.0
Note: See TracChangeset
for help on using the changeset viewer.