Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ public static class ConnectionString

internal static string FEDEX_USER_KEY = "";
internal static string FEDEX_USER_PASSWORD = "";
internal static string FEDEX_ACCOUNTNUMBER = "";
internal static string FEDEX_METERNUMBER = "";

internal static bool ToShowDetails = false;

Expand All @@ -20,10 +22,12 @@ public static void SetupUPSCredential(string licenseNO)
UPS_ACCESS_LICENSE_NO = licenseNO;
}

public static void SetupFedExCredential(string userKey, string password)
public static void SetupFedExCredential(string userKey, string password, string accountnumber, string meternumber)
{
FEDEX_USER_KEY = userKey;
FEDEX_USER_PASSWORD = password;
FEDEX_ACCOUNTNUMBER = accountnumber;
FEDEX_METERNUMBER = meternumber;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private ShippingResult FedExTrackingResultWrap(FedExTrackingResult.TrackReply re

private string GetTrackingInfoFedExInString()
{
string apiUrl = "https://gatewaybeta.fedex.com:443/xml";
string apiUrl = "https://gateway.fedex.com:443/xml";

string xml = @"<TrackRequest xmlns='http://fedex.com/ws/track/v3'>"
+ @"<WebAuthenticationDetail>"
Expand All @@ -109,7 +109,9 @@ private string GetTrackingInfoFedExInString()
string raw_response = UPSRequest(apiUrl,
xml.Replace("%ACC_KEY%", ConnectionString.FEDEX_USER_KEY).
Replace("%ACC_PASSWORD%", ConnectionString.FEDEX_USER_PASSWORD).
Replace("%TRACKINGNO%", trackingNumber));
Replace("%TRACKINGNO%", trackingNumber).
Replace("%ACC_NUMBER%",ConnectionString.FEDEX_ACCOUNTNUMBER).
Replace("%ACC_METER_NUMBER%", ConnectionString.FEDEX_METERNUMBER));

return raw_response;
}
Expand Down