Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #60 from tristanhall/master
Browse files Browse the repository at this point in the history
Add static property to set the protocol used with the API URLs.
  • Loading branch information
VinceG authored Mar 15, 2021
2 parents 0e293b0 + 0955dba commit d886554
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/TrackConfirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class TrackConfirm extends USPSBase

public function getEndpoint()
{
return self::$testMode ? 'http://production.shippingapis.com/ShippingAPITest.dll' : 'http://production.shippingapis.com/ShippingAPI.dll';
return self::$testMode ? 'https://production.shippingapis.com/ShippingAPITest.dll' : 'https://production.shippingapis.com/ShippingAPI.dll';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/USPSBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
abstract class USPSBase
{
const LIVE_API_URL = 'https://secure.shippingapis.com/ShippingAPI.dll';
const TEST_API_URL = 'http://production.shippingapis.com/ShippingAPITest.dll';
const TEST_API_URL = 'https://production.shippingapis.com/ShippingAPITest.dll';

/**
* @var string - the usps username provided by the usps website
Expand Down

0 comments on commit d886554

Please sign in to comment.