Changeset 3087279
- Timestamp:
- 05/15/2024 04:26:38 PM (22 months ago)
- Location:
- swipe-for-woocommerce/trunk
- Files:
-
- 6 edited
-
README.md (modified) (2 diffs)
-
includes/class-swipego-wc.php (modified) (2 diffs)
-
libraries/swipego/admin/class-swipego-admin.php (modified) (2 diffs)
-
libraries/swipego/includes/functions.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
swipego-wc.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
swipe-for-woocommerce/trunk/README.md
r2756673 r3087279 4 4 Requires at least: 4.6 5 5 Tested up to: 6.0.1 6 Stable tag: 1.0. 06 Stable tag: 1.0.2 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 91 91 ## Changelog 92 92 93 = 1.0.2 - 2024-05-16 = 94 - Fix expired token 95 93 96 = 1.0.0 - 2022-04-11 = 94 97 - Initial release of the plugin -
swipe-for-woocommerce/trunk/includes/class-swipego-wc.php
r2757019 r3087279 9 9 // Libraries 10 10 require_once( SWIPEGO_WC_PATH . 'libraries/swipego/class-swipego.php' ); 11 12 // Functions13 require_once( SWIPEGO_WC_PATH . 'includes/functions.php' );14 15 // Admin16 require_once( SWIPEGO_WC_PATH . 'admin/class-swipego-wc-admin.php' );17 18 if ( swipego_is_logged_in() && swipego_is_plugin_activated( 'woocommerce/woocommerce.php' ) ) {11 12 if ( swipego_is_plugin_activated( 'woocommerce/woocommerce.php' ) ) { 13 14 // Functions 15 require_once( SWIPEGO_WC_PATH . 'includes/functions.php' ); 16 17 // Admin 18 require_once( SWIPEGO_WC_PATH . 'admin/class-swipego-wc-admin.php' ); 19 19 20 20 // API … … 23 23 require_once( SWIPEGO_WC_PATH . 'includes/class-swipego-wc-api.php' ); 24 24 25 // Settings 26 require_once( SWIPEGO_WC_PATH . 'admin/class-swipego-wc-settings.php' ); 25 if ( swipego_get_integration() ) { 26 27 // Initialize payment gateway 28 require_once( SWIPEGO_WC_PATH . 'includes/class-swipego-wc-init.php' ); 29 30 } 31 32 if ( swipego_is_logged_in() ) { 33 34 // Settings 35 require_once( SWIPEGO_WC_PATH . 'admin/class-swipego-wc-settings.php' ); 36 37 } 38 } 27 39 28 // Initialize payment gateway 29 require_once( SWIPEGO_WC_PATH . 'includes/class-swipego-wc-init.php' ); 30 } 40 31 41 32 42 } -
swipe-for-woocommerce/trunk/libraries/swipego/admin/class-swipego-admin.php
r2757019 r3087279 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-woocommerce/trunk/libraries/swipego/includes/functions.php
r2724952 r3087279 25 25 } 26 26 27 // Get integration 28 function swipego_get_integration() { 29 return get_transient( 'swipego_integration' ); 30 } 31 32 // Update integration 33 function swipego_update_integration($email) { 34 return set_transient( 'swipego_integration', $email, 0 ); 35 } 36 37 // Delete integration 38 function swipego_delete_integration() { 39 return delete_transient( 'swipego_integration' ); 40 } 41 42 // Check if the user is has integration into Swipe 43 function swipego_has_integration() { 44 return swipego_get_integration() ? true : false; 45 } 46 27 47 // Check if the user is logged into Swipe 28 48 function swipego_is_logged_in() { -
swipe-for-woocommerce/trunk/readme.txt
r2789045 r3087279 4 4 Requires at least: 4.6 5 5 Tested up to: 6.0.1 6 Stable tag: 1.0. 16 Stable tag: 1.0.2 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 91 91 == Changelog == 92 92 93 = 1.0.2 - 2024-05-16 = 94 - Fix expired token 95 93 96 = 1.0.0 - 2022-04-11 = 94 97 - Initial release of the plugin -
swipe-for-woocommerce/trunk/swipego-wc.php
r2724952 r3087279 3 3 * Plugin Name: Swipe for WooCommerce 4 4 * Description: Swipe payment integration for WooCommerce. 5 * Version: 1.0. 05 * Version: 1.0.2 6 6 * Requires at least: 4.6 7 7 * Requires PHP: 7.0
Note: See TracChangeset
for help on using the changeset viewer.