Plugin Directory

Changeset 2724990


Ignore:
Timestamp:
05/17/2022 06:38:53 AM (4 years ago)
Author:
teamswipe
Message:

Edit Plugin

Location:
swipe-for-woocommerce/trunk/libraries/swipego
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • swipe-for-woocommerce/trunk/libraries/swipego/admin/class-swipego-admin.php

    r2724952 r2724990  
    8585        $is_swipego_plugin_installed = swipego_is_plugin_installed( $swipego_plugin_file );
    8686
     87        $swipego_plugin_download_url = '';
     88
    8789        // If main plugin and Swipe plugin is activated, return settings page URL
    8890        if ( $is_main_plugin_activated && $is_swipego_plugin_activated ) {
  • swipe-for-woocommerce/trunk/libraries/swipego/includes/abstracts/abstract-swipego-client.php

    r2724952 r2724990  
    44abstract class Swipego_Client {
    55
    6     const PRODUCTION_URL = 'https://stg-api.swipego.io/api/';
    7     const SANDBOX_URL    = 'https://stg-test-api.swipego.io/api/';
    8 
    9     // const PRODUCTION_URL = 'https://api.swipego.io/api/';
    10     // const SANDBOX_URL    = 'https://api-test.swipego.io/api/';
     6
     7    const PRODUCTION_URL = 'https://api.swipego.io/api/';
     8    const SANDBOX_URL    = 'https://api-test.swipego.io/api/';
    119
    1210    protected $access_token = null;
     
    255253
    256254        $encoded_hash = implode( '', array_values( $data ) );
    257         $generated_hash = hash_hmac( 'SHA256', $encoded_hash, $this->signature_key );
     255        $generated_hash = hash_hmac( 'SHA256', $this->signature_key . $encoded_hash, $this->signature_key );
    258256
    259257        return $hash == $generated_hash;
Note: See TracChangeset for help on using the changeset viewer.