Development

Changeset 12749

You must first sign up to be able to contribute.

Changeset 12749

Show
Ignore:
Timestamp:
11/08/08 08:44:35 (5 years ago)
Author:
davec
Message:

Added a couple comments to the sample test code

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfUPSShippingPlugin/test/sfUPSShippingTest.php

    r12748 r12749  
    1515$upsAccountNumber = ''; 
    1616 
     17//Create the object thru which we will make UPS API requists 
    1718$ups = new UPSShipping($accessKey, $userId, $password, $shipperPostalCode, $shipperCountry, $upsAccountNumber); 
    1819$ups->debugOn = true; 
    1920 
    20  
     21//Get a price quote for a single shipping type 
    2122$price = $ups->getSingleShippingCost(97007, 'US', 90210, 'US', UPSShipping::SERVICE_CODE_GROUND, 1.2, 12, 12, 12); 
    2223print "Price is $price\n"; 
    2324 
    24  
     25//Get a list of price/shipping type options  
    2526$priceList = $ups->getShippingPriceOptionList(97007, 'US', 90210, 'US', 1.2, 12, 12, 12); 
    2627print "Options are : " . print_r($priceList, true) . "\n";