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

Add static property to set the protocol used with the API URLs. #60

Merged
merged 3 commits into from
Mar 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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