<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Algirdas Varnagiris &#187; rates</title>
	<atom:link href="http://www.varnagiris.net/tag/rates/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.varnagiris.net</link>
	<description>The cyber-place where I live</description>
	<lastBuildDate>Thu, 18 Feb 2010 17:19:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>PHP: FedEx shipping rates calculator updated</title>
		<link>http://www.varnagiris.net/2007/08/31/php-fedex-shipping-rates-calculator-updated/</link>
		<comments>http://www.varnagiris.net/2007/08/31/php-fedex-shipping-rates-calculator-updated/#comments</comments>
		<pubDate>Fri, 31 Aug 2007 10:22:56 +0000</pubDate>
		<dc:creator>Algirdas</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[FedEx]]></category>
		<category><![CDATA[rates]]></category>
		<category><![CDATA[shipping]]></category>

		<guid isPermaLink="false">http://www.varnagiris.net/2007/08/31/php-fedex-shipping-rates-calculator-updated/</guid>
		<description><![CDATA[One user was using my FedEx class and could not get rates for Ground service. I have just figured out what was the problem. First of all Ground and Home delivery are ground services and you must set Carrier code to FDXG. $fedex->setCarrierCode("FDXG"); After this I found few bugs witch I fixed and now you [...]]]></description>
			<content:encoded><![CDATA[<p>One user was using my FedEx class and could not get rates for Ground service. I have just figured out what was the problem. First of all Ground and Home delivery are ground services and you must set Carrier code to FDXG.</p>
<pre><code>$fedex->setCarrierCode("FDXG");</code></pre>
<p>After this I found few bugs witch I fixed and now you can download updated FedEx class from <a href="http://www.varnagiris.net/2006/06/01/php-fedex-shipping-rates-calculator/">this post</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.varnagiris.net/2007/08/31/php-fedex-shipping-rates-calculator-updated/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP: FedEx shipping rates calculator</title>
		<link>http://www.varnagiris.net/2006/06/01/php-fedex-shipping-rates-calculator/</link>
		<comments>http://www.varnagiris.net/2006/06/01/php-fedex-shipping-rates-calculator/#comments</comments>
		<pubDate>Thu, 01 Jun 2006 06:49:38 +0000</pubDate>
		<dc:creator>Algirdas</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[FedEx]]></category>
		<category><![CDATA[rates]]></category>
		<category><![CDATA[shipping]]></category>

		<guid isPermaLink="false">http://www.varnagiris.net/2006/06/01/php-fedex-shipping-rates-calculator/</guid>
		<description><![CDATA[FedEx Ship Manager (FSM) Direct was designed to allow customers to connect directly to the FedEx back end systems using their own communications protocol. Welcome to FSM Direct! You can compose FedEx XML Transactions to interface between your e-commerce application and the FedEx server and vice versa. This solution is applicable only to those customers [...]]]></description>
			<content:encoded><![CDATA[<p><strong>FedEx</strong> Ship Manager (FSM) Direct was designed to allow customers to connect directly to the FedEx back end systems using their own communications protocol. Welcome to FSM Direct!<br />
You can compose FedEx XML Transactions to interface between your <strong>e-commerce</strong> application and the FedEx server and vice versa.<br />
This solution is applicable only to those customers that have the development resources and knowledge to develop their own FedEx interface.</p>
<p><em>Before you begin:</em><br />
FSM Direct Site Registration: To register in the FSM Direct program, go to <a href="http://www.fedex.com/us/solutions/wis/">http://www.fedex.com/us/solutions/wis/</a>. Register and complete the brief registration form.</p>
<p>Steps for developing your own communications protocol and integrating it into your application are listed below.</p>
<ul>
<li>Read and accept the FedEx Ship Manager Direct license agreement.</li>
<li>Review the FedEx Direct Documentation: Determine if this alternative or FedEx API is appropriate for your application.</li>
<li>Develop your application.</li>
<li>Send an email to websupport@fedex.com. Request to be set up for testing. Attach FedEx Express and/or FedEx Ground account number(s).</li>
<li>Test your application.</li>
</ul>
<p>All documentation can be found here:</p>
<p>http://www.fedex.com/us/solutions/wis/pdf/fsm_directmanual.pdf</p>
<p>http://www.fedex.com/us/solutions/wis/pdf/xml_transguide.pdf</p>
<p>Here&#8217;s more about this class<br />
<span id="more-36"></span></p>
<p>How to use this Fedex rates class:</p>
<pre>
<code>
    $fedex = new Fedex;
    $fedex->setServer("https://gatewaybeta.fedex.com/GatewayDC");
    $fedex->setAccountNumber(123123123);
    $fedex->setMeterNumber(12312312);
    $fedex->setCarrierCode("FDXE");
    $fedex->setDropoffType("REGULARPICKUP");
    $fedex->setService($service, $serviceName);
    $fedex->setPackaging("YOURPACKAGING");
    $fedex->setWeightUnits("LBS");
    $fedex->setWeight(17);
    $fedex->setOriginStateOrProvinceCode("OH");
    $fedex->setOriginPostalCode(44333);
    $fedex->setOriginCountryCode("US");
    $fedex->setDestStateOrProvinceCode("CA");
    $fedex->setDestPostalCode(90210);
    $fedex->setDestCountryCode("US");
    $fedex->setPayorType("SENDER");

    $price = $fedex->getPrice();
</code></pre>
<p>All available variables can be found here: http://www.fedex.com/us/solutions/wis/pdf/xml_transguide.pdf (FDXRateRequest)</p>
<p>Possible Fedex answer:</p>
<pre>
<code>
fedex Object
(
    [server] => https://gatewaybeta.fedex.com/GatewayDC
    [accountNumber] => 123123123
    [meterNumber] => 12312312
    [carrierCode] => FDXE
    [dropoffType] => REGULARPICKUP
    [service] => STANDARDOVERNIGHT
    [serviceName] => FedEx Standard Overnight
    [packaging] => YOURPACKAGING
    [weightUnits] => LBS
    [weight] => 17
    [originStateOrProvinceCode] => OH
    [originPostalCode] => 44333
    [originCountryCode] => US
    [destStateOrProvinceCode] => CA
    [destPostalCode] => 90210
    [destCountryCode] => US
    [payorType] => SENDER
    [price] => price Object
        (
            [service] => FedEx Standard Overnight
            [rate] => 86.37
            [response] => Array
                (
                  ...//Here is full xml response
                )
        )
)
</code>
</pre>
<p><a id="p37" href="http://www.varnagiris.net/wp-content/uploads/2006/06/Fedex.zip" title="Fedex rates" onclick="javascript: pageTracker._trackPageview('/downloads/FedEx');">Click here to download FedEx shipping rates calculator class</a></p>
<p>Please make a donation of <strong>1$</strong> if you find our software useful and want to support the continued development.</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick"/>
<input type="hidden" name="business" value="algirdas@varnagiris.net"/>
<input type="hidden" name="item_name" value="FedEx Rates Class"/>
<input type="hidden" name="amount" value="1.00"/>
<input type="hidden" name="buyer_credit_promo_code" value=""/>
<input type="hidden" name="buyer_credit_product_category" value=""/>
<input type="hidden" name="buyer_credit_shipping_method" value=""/>
<input type="hidden" name="buyer_credit_user_address_change" value=""/>
<input type="hidden" name="no_shipping" value="0"/>
<input type="hidden" name="no_note" value="1"/>
<input type="hidden" name="currency_code" value="USD"/>
<input type="hidden" name="tax" value="0"/>
<input type="hidden" name="lc" value="US"/>
<input type="hidden" name="bn" value="PP-DonationsBF"/>
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" style="border:0px" onclick="javascript: pageTracker._trackPageview('/goal/donate.html');" />
<img alt="" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" style="border:0px" /><br />
</form>
<p>Thank you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.varnagiris.net/2006/06/01/php-fedex-shipping-rates-calculator/feed/</wfw:commentRss>
		<slash:comments>50</slash:comments>
		</item>
		<item>
		<title>PHP: USPS rates calculator</title>
		<link>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/</link>
		<comments>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/#comments</comments>
		<pubDate>Thu, 04 May 2006 14:10:02 +0000</pubDate>
		<dc:creator>Algirdas</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[rates]]></category>
		<category><![CDATA[USPS]]></category>

		<guid isPermaLink="false">http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/</guid>
		<description><![CDATA[The USPS Web Tools allow developers of web-based and shrink-wrapped applications access to the on-line services of the United States Postal Service (USPS). They provide easy access to shipping information and services for your customers. Your customers can utilize the functions provided by the USPS without ever leaving your web site. Once the Web Tools [...]]]></description>
			<content:encoded><![CDATA[<p>The USPS Web Tools allow developers of web-based and shrink-wrapped applications access to the on-line services of the United States Postal Service (USPS).  They provide easy access to shipping information and services for your customers. Your customers can utilize the functions provided by the USPS without ever leaving your web site.  Once the Web Tools are integrated, your server communicates through the USPS Web Tools server over HTTP using XML (eXtensible Markup Language).</p>
<p> <strong>Rates Calculators</strong></p>
<p> Everything in details can be found here:<br />
 <a href="http://www.usps.com/webtools/rate.htm">http://www.usps.com/webtools/rate.htm</a></p>
<p> First steps:</p>
<ol>
<li>Register online (You will get your own user name)</li>
<li>Test this script (You can use only test data)</li>
<li>Contact ICCC and go live.</li>
</ol>
<p>    When you have completed your testing, email the USPS Internet Customer Care  Center (ICCC).  They will switch your profile to allow you access to the  production server and will provide you with the production URL.<span id="more-34"></span></p>
<p>    <strong>Domestic and International Rates</strong></p>
<p>    <em>Domestic rates</em></p>
<p>    Test 1:</p>
<pre>
<code>
    $usps = new USPS;
    $usps->setServer("http://testing.shippingapis.com/ShippingAPITest.dll");
    $usps->setUserName("?????????");
    $usps->setService("PRIORITY");
    $usps->setDestZip("20008");
    $usps->setOrigZip("10022");
    $usps->setWeight(10, 5);
    $usps->setContainer("Flat Rate Box");
    $usps->setCountry("USA");
    $price = $usps->getPrice();
</code>
</pre>
<p>    Response 1:</p>
<pre>
<code>
    usps Object
    (
        [server] => http://testing.shippingapis.com/ShippingAPITest.dll
        [user] => ???????????
        [pass] =>
        [service] => PRIORITY
        [dest_zip] => 20008
        [orig_zip] => 10022
        [pounds] => 10
        [ounces] => 5
        [container] => Flat Rate Box
        [size] => REGULAR
        [machinable] =>
        [country] => USA
        [zone] => 3
        [list] => Array
            (
                [0] => price Object
                    (
                        [mailservice] => "Priority Mail Flat Rate Box (11.25'' x 8.75'' x 6'')"
                        [rate] => 7.70
                    )
                [1] => price Object
                    (
                        [mailservice] => "Priority Mail Flat Rate Box (14''x 12'' x 3.5'')"
                        [rate] => 7.70
                    )
            )
    )
</code>
</pre>
<p>    Test 2:</p>
<pre>
<code>
    $usps = new USPS;
    $usps->setServer("http://testing.shippingapis.com/ShippingAPITest.dll");
    $usps->setUserName("?????????");
    $usps->setService("All");
    $usps->setDestZip("20008");
    $usps->setOrigZip("10022");
    $usps->setWeight(10, 5);
    $usps->setContainer("Flat Rate Box");
    $usps->setCountry("USA");
    $usps->setMachinable("true");
    $usps->setSize("LARGE");
    $price = $usps->getPrice();
</code>
</pre>
<p>    Response 2:</p>
<pre>
<code>
    usps Object
    (
        [server] => http://testing.shippingapis.com/ShippingAPITest.dll
        [user] => ???????????
        [pass] =>
        [service] => All
        [dest_zip] => 20008
        [orig_zip] => 10022
        [pounds] => 10
        [ounces] => 5
        [container] => Flat Rate Box
        [size] => LARGE
        [machinable] => true
        [country] => USA
        [zone] => 3
        [list] => Array
            (
                [0] => price Object
                    (
                        [mailservice] => "Express Mail to PO Addressee"
                        [rate] => 39.20
                    )
                [1] => price Object
                    (
                        [mailservice] => "Priority Mail"
                        [rate] => 8.95
                    )
                [2] => price Object
                    (
                        [mailservice] => "Parcel Post"
                        [rate] => 7.80
                    )
                [3] => price Object
                    (
                        [mailservice] => "Bound Printed Matter"
                        [rate] => 3.53
                    )
                [4] => price Object
                    (
                        [mailservice] => "Media Mail"
                        [rate] => 5.14
                    )
                [5] => price Object
                    (
                        [mailservice] => "Library Mail"
                        [rate] => 4.91
                    )
            )
    )
</code>
</pre>
<p>    <em>International rates:</em></p>
<p>    Test 1:</p>
<pre>
<code>
    $usps = new USPS;
    $usps->setServer("http://testing.shippingapis.com/ShippingAPITest.dll");
    $usps->setUserName("??????????");
    $usps->setWeight(2, 0);
    $usps->setCountry("Albania");
    $price = $usps->getPrice();
</code>
</pre>
<p>    Response 1:</p>
<pre>
<code>
    usps Object
    (
        [server] => http://testing.shippingapis.com/ShippingAPITest.dll
        [user] => ?????????
        [pass] =>
        [service] =>
        [dest_zip] =>
        [orig_zip] =>
        [pounds] => 2
        [ounces] => 0
        [container] => None
        [size] => REGULAR
        [machinable] =>
        [country] => Albania
        [list] => Array
            (
                [0] => intprice Object
                    (
                        [id] => 0
                        [rate] => 87
                        [pounds] => 2
                        [ounces] => 0
                        [mailtype] => "Package"
                        [country] => "ALBANIA"
                        [svccommitments] => "See Service Guide"
                        [svcdescription] => "Global Express Guaranteed (GXG) Document Service"
                        [maxdimensions] => "Max. length 46'', depth 35'', height 46'' and max. girth 108''"
                        [maxweight] => 22
                    )
                [1] => intprice Object
                    (
                        [id] => 1
                        [rate] => 96
                        [pounds] => 2
                        [ounces] => 0
                        [mailtype] => "Package"
                        [country] => "ALBANIA"
                        [svccommitments] => "See Service Guide"
                        [svcdescription] => "Global Express Guaranteed (GXG) Non-Document Service"
                        [maxdimensions] => "Max. length 46'', depth 35'', height 46'' and max. girth 108''"
                        [maxweight] => 22
                    )
            )
    )
</code>
</pre>
<p>    Possible errors:</p>
<pre>
<code>
    usps Object
    (
        [server] => http://testing.shippingapis.com/ShippingAPITest.dll
        [user] => ???????????
        [pass] =>
        [service] => Alll
        [dest_zip] => 20008
        [orig_zip] => 10022
        [pounds] => 10
        [ounces] => 5
        [container] => Flat Rate Box
        [size] => LARGE
        [machinable] => true
        [country] => USA
        [error] => error Object
            (
                [number] => -2147219487
                [source] => Rate_Respond;SOLServerRatesTest.RateV2_Respond
                [description] => "Invalid value for package size."
                [helpcontext] => 1000440
                [helpfile] =>
            )
    )
</code>
</pre>
<p>Downlod this freeware PHP script: <a id="p35" href="http://www.varnagiris.net/wp-content/uploads/2006/05/USPS.ZIP" onclick="javascript: pageTracker._trackPageview('/downloads/USPS');">USPS rates calculator v1.2</a></p>
<p>Please make a donation of <strong>1$</strong> if you find our software useful and want to support the continued development.</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick"/>
<input type="hidden" name="business" value="algirdas@varnagiris.net"/>
<input type="hidden" name="item_name" value="USPS Rates Class"/>
<input type="hidden" name="amount" value="1.00"/>
<input type="hidden" name="buyer_credit_promo_code" value=""/>
<input type="hidden" name="buyer_credit_product_category" value=""/>
<input type="hidden" name="buyer_credit_shipping_method" value=""/>
<input type="hidden" name="buyer_credit_user_address_change" value=""/>
<input type="hidden" name="no_shipping" value="0"/>
<input type="hidden" name="no_note" value="1"/>
<input type="hidden" name="currency_code" value="USD"/>
<input type="hidden" name="tax" value="0"/>
<input type="hidden" name="lc" value="US"/>
<input type="hidden" name="bn" value="PP-DonationsBF"/>
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" style="border:0px" onclick="javascript: pageTracker._trackPageview('/goal/donate.html');" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" style="border:0px" /><br />
</form>
<p>Thank you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/feed/</wfw:commentRss>
		<slash:comments>47</slash:comments>
		</item>
	</channel>
</rss>
