Plugin Directory

Changeset 2547021


Ignore:
Timestamp:
06/13/2021 10:03:35 AM (5 years ago)
Author:
bostateam
Message:

fix pickup requests api

Location:
bosta-woocommerce
Files:
14 added
3 edited

Legend:

Unmodified
Added
Removed
  • bosta-woocommerce/trunk/bosta-woocommerce.php

    r2545628 r2547021  
    55 * Author: Bosta
    66 * Author URI: https://www.bosta.co/
    7  * Version: 2.5.7
     7 * Version: 2.5.8
    88 * Requires at least: 5.0
    99 * Tested up to: 5.7
  • bosta-woocommerce/trunk/components/pickups/pickups.php

    r2545253 r2547021  
    88    }
    99
    10     $url = 'https://stg-app.bosta.co/api/v0/pickup-locations ';
     10    $url = 'https://app.bosta.co/api/v0/pickup-locations ';
    1111    $result = wp_remote_get($url, array(
    1212        'timeout' => 30,
     
    2727    }
    2828    if ($_GET['pickupId'] && !empty($_GET['pickupId'])) {
    29         $url = 'https://stg-app.bosta.co/api/v0/pickups/' . $_GET['pickupId'];
     29        $url = 'https://app.bosta.co/api/v0/pickups/' . $_GET['pickupId'];
    3030        $pickupEditData = wp_remote_get($url, array(
    3131            'timeout' => 30,
     
    201201    $pickupData->businessLocationId = $businessLocationId;
    202202    if ($_GET['pickupId']) {
    203         $result = wp_remote_request('https://stg-app.bosta.co/api/v0/pickups/' . $_GET['pickupId'], array(
     203        $result = wp_remote_request('https://app.bosta.co/api/v0/pickups/' . $_GET['pickupId'], array(
    204204            'timeout' => 30,
    205205            'method' => 'PUT',
     
    220220    } else {
    221221
    222         $result = wp_remote_post('https://stg-app.bosta.co/api/v0/pickups', array(
     222        $result = wp_remote_post('https://app.bosta.co/api/v0/pickups', array(
    223223            'timeout' => 30,
    224224            'method' => 'POST',
     
    260260
    261261              </p>";
    262         $url = 'https://stg-app.bosta.co/api/v0/pickups/' . $_GET['pickupId'];
     262        $url = 'https://app.bosta.co/api/v0/pickups/' . $_GET['pickupId'];
    263263        $result = wp_remote_post($url, array(
    264264            'timeout' => 30,
     
    341341
    342342            if (count($pickupInfo->deliveryTrackingNumbers) > 0) {
    343                 $url = 'https://stg-app.bosta.co/api/v0/deliveries/search?trackingNumbers=' . join(',', $pickupInfo->deliveryTrackingNumbers);
     343                $url = 'https://app.bosta.co/api/v0/deliveries/search?trackingNumbers=' . join(',', $pickupInfo->deliveryTrackingNumbers);
    344344                $result = wp_remote_post($url, array(
    345345                    'timeout' => 30,
     
    402402}
    403403        if ($_GET['state'] != 'history-pickups' || !isset($_GET['state'])) {
    404             $url = 'https://stg-app.bosta.co/api/v0/pickups/search?state=Requested,Arrived at business,Route Assigned,Picking up,Receiving&pageId=-1';
    405         } else {
    406             $url = 'https://stg-app.bosta.co/api/v0/pickups/search?state=Canceled,Picked up&pageId=-1';
     404            $url = 'https://app.bosta.co/api/v0/pickups/search?state=Requested,Arrived at business,Route Assigned,Picking up,Receiving&pageId=-1';
     405        } else {
     406            $url = 'https://app.bosta.co/api/v0/pickups/search?state=Canceled,Picked up&pageId=-1';
    407407        }
    408408        $result = wp_remote_post($url, array(
  • bosta-woocommerce/trunk/readme.txt

    r2545628 r2547021  
    77Requires PHP: 7.0
    88Tested up to: 5.7
    9 Stable tag: 2.5.7
     9Stable tag: 2.5.8
    1010WC requires at least: 2.6
    1111WC tested up to: 4.4.1
Note: See TracChangeset for help on using the changeset viewer.