Created
August 26, 2016 10:20
-
-
Save WooForce/de662ee78425eb8f380a041e467e6c9b to your computer and use it in GitHub Desktop.
FedEx - Tin Number
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('wf_fedex_request','wf_fedex_tin_number', 10, 2 ); | |
function wf_fedex_tin_number($request,$order){ | |
$tintype = "BUSINESS_STATE"; | |
$tin_number ="123456"; //replace tin number here | |
if(!empty($tin_number)){ | |
$request['RequestedShipment']['Shipper']['Tins'] = array( | |
'TinType' => $tintype, | |
'Number' => $tin_number | |
); | |
} | |
return $request; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment