Skip to content

Instantly share code, notes, and snippets.

@travisulrich
travisulrich / international.xml
Created Jun 24, 2015
Update USPS shipping in Lemondstand - Rates to Canada with origin ZIP
View international.xml
<IntlRateV2Request USERID="<?= h($user_id) ?>">
<Revision>2</Revision>
<Package ID="PACKAGE">
<Pounds><?= h($pounds) ?></Pounds>
<Ounces><?= h($ounces) ?></Ounces>
<Machinable><?= $machinable ? 'true' : 'false' ?></Machinable>
<MailType>Package</MailType>
<ValueOfContents><?= $total_price ?></ValueOfContents>
<Country><?= $country ?></Country>
<? if (strlen($container)): ?>