Plugin Directory

Changeset 3269381


Ignore:
Timestamp:
04/09/2025 07:20:24 AM (12 months ago)
Author:
bitsstech
Message:

fix in shiprocket

Location:
shipment-tracker-for-woocommerce/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • shipment-tracker-for-woocommerce/trunk/bt-sync-shipment-tracking.php

    r3267231 r3269381  
    1717 * Plugin URI:        https://shipment-tracker-for-woocommerce.bitss.tech/
    1818 * Description:       Most comprehensive shipment tracking plugin that extends your woocommerce store with shipment related features. Keeps you & your customers informed about shipment movement.
    19  * Version:           1.4.24.4
     19 * Version:           1.4.24.5
    2020 * Author:            Bitss Techniques
    2121 * Author URI:        https://shipment-tracker-for-woocommerce.bitss.tech
     
    5959
    6060define( 'Carbon_Fields\URL', trailingslashit( plugin_dir_url( __FILE__ ) ) . 'vendor/htmlburger/carbon-fields/' );//fix for Bitnami installations.
    61 define( 'BT_SYNC_SHIPMENT_TRACKING_VERSION', '1.4.24.4' );
     61define( 'BT_SYNC_SHIPMENT_TRACKING_VERSION', '1.4.24.5' );
    6262define( 'BT_SHIPPING_PROVIDERS', array('delhivery' =>'Delhivery','nimbuspost' => 'Nimbuspost (Deprecated)','nimbuspost_new' => 'Nimbuspost','shipmozo'=>'Shipmozo','shiprocket' => 'Shiprocket', 'xpressbees' => 'Xpressbees', 'manual' =>'Custom Shipping') );
    6363define( 'BT_SHIPPING_PROVIDERS_WITH_NONE', array('none' =>'none','delhivery' =>'Delhivery', 'nimbuspost' => 'Nimbuspost (OLD)','nimbuspost_new' => 'Nimbuspost(NEW)','shipmozo'=>'Shipmozo','shiprocket' => 'Shiprocket', 'xpressbees' => 'Xpressbees','manual' =>'Custom Shipping') );
  • shipment-tracker-for-woocommerce/trunk/includes/shipping_providers/shiprocket.php

    r3227952 r3269381  
    211211            return null;
    212212        }
    213 
    214         $body = array(
    215             'email'    => $this->username,
    216             'password'   => $this->password,
     213        $args = array(
     214            'headers' => array(
     215                'Content-Type'  => 'application/json',
     216            ),
     217            'body'    => json_encode(array(
     218                'email'    => $this->username,
     219                'password'   => $this->password,
     220            )),
     221            'method'  => 'POST',
     222            'timeout' => 45,
    217223        );
    218         $body = json_encode($body);
    219         $args = array(
    220             'body'        => $body,
    221             'headers'     => array(
    222                 "Content-Type: application/json"
    223             ),
    224         );
     224       
    225225
    226226        $response = wp_remote_post( "https://apiv2.shiprocket.in/v1/external/auth/login", $args );
     
    245245        }
    246246
    247         $body = array(
    248             'email'    => $this->username,
    249             'password'   => $this->password,
    250         );
    251         $body = json_encode($body);
    252247        $args = array(
    253             'body'        => $body,
    254             'headers'     => array(
    255                 "Content-Type: application/json"
    256               ),
     248            'headers' => array(
     249                'Content-Type'  => 'application/json',
     250            ),
     251            'body'    => json_encode(array(
     252                'email'    => $this->username,
     253                'password'   => $this->password,
     254            )),
     255            'method'  => 'POST',
     256            'timeout' => 45,
    257257        );
    258258
  • shipment-tracker-for-woocommerce/trunk/vendor/composer/installed.php

    r3267231 r3269381  
    44        'pretty_version' => '1.14.21.x-dev',
    55        'version' => '1.14.21.9999999-dev',
    6         'reference' => '78533775bf8d1c360bb19e010ac80ded6d357bda',
     6        'reference' => '451ccedb4e2ac338e09266dda599d9b99b2e503b',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => '1.14.21.x-dev',
    1515            'version' => '1.14.21.9999999-dev',
    16             'reference' => '78533775bf8d1c360bb19e010ac80ded6d357bda',
     16            'reference' => '451ccedb4e2ac338e09266dda599d9b99b2e503b',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.