Skip to content

Instantly share code, notes, and snippets.

View travisulrich's full-sized avatar

Travis Ulrich travisulrich

View GitHub Profile
@travisulrich
travisulrich / international.xml
Created June 24, 2015 18:23
Update USPS shipping in Lemondstand - Rates to Canada with origin ZIP
<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)): ?>