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

Commit d886554

Browse files
authored
Merge pull request #60 from tristanhall/master
Add static property to set the protocol used with the API URLs.
2 parents 0e293b0 + 0955dba commit d886554

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/TrackConfirm.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class TrackConfirm extends USPSBase
1818

1919
public function getEndpoint()
2020
{
21-
return self::$testMode ? 'http://production.shippingapis.com/ShippingAPITest.dll' : 'http://production.shippingapis.com/ShippingAPI.dll';
21+
return self::$testMode ? 'https://production.shippingapis.com/ShippingAPITest.dll' : 'https://production.shippingapis.com/ShippingAPI.dll';
2222
}
2323

2424
/**

src/USPSBase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
abstract class USPSBase
1414
{
1515
const LIVE_API_URL = 'https://secure.shippingapis.com/ShippingAPI.dll';
16-
const TEST_API_URL = 'http://production.shippingapis.com/ShippingAPITest.dll';
16+
const TEST_API_URL = 'https://production.shippingapis.com/ShippingAPITest.dll';
1717

1818
/**
1919
* @var string - the usps username provided by the usps website

0 commit comments

Comments
 (0)