Changeset 12749
- Timestamp:
- 11/08/08 08:44:35 (5 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfUPSShippingPlugin/test/sfUPSShippingTest.php
r12748 r12749 15 15 $upsAccountNumber = ''; 16 16 17 //Create the object thru which we will make UPS API requists 17 18 $ups = new UPSShipping($accessKey, $userId, $password, $shipperPostalCode, $shipperCountry, $upsAccountNumber); 18 19 $ups->debugOn = true; 19 20 20 21 //Get a price quote for a single shipping type 21 22 $price = $ups->getSingleShippingCost(97007, 'US', 90210, 'US', UPSShipping::SERVICE_CODE_GROUND, 1.2, 12, 12, 12); 22 23 print "Price is $price\n"; 23 24 24 25 //Get a list of price/shipping type options 25 26 $priceList = $ups->getShippingPriceOptionList(97007, 'US', 90210, 'US', 1.2, 12, 12, 12); 26 27 print "Options are : " . print_r($priceList, true) . "\n";