samarudge 16 Posting Whiz

Hi,
I'm developing a custom shopping cart application for a client, there are two shipping rates; an international one and a domestic (US) one. When the user is on Paypal and they enter there address I need the shipping to change depending on the country. I currently have the code

//Items
           nvp('L_NAME0', 'Test Item');
           nvp('L_AMT0', '10.00');
           nvp('L_QTY0', '2');
           nvp('CALLBACKTIMEOUT', '4');
           nvp('MAXAMT', '28.00');
           nvp('AMT', '20.00');
           nvp('SHIPPINGCALCULATIONMODE', 'Callback');
           
           nvp('L_SHIPPINGOPTIONAMOUNT1', '8.00');
           nvp('L_SHIPPINGOPTIONLABEL1', 'International Shipping');

           nvp('L_SHIPPINGOPTIONAMOUNT2', '5.00');
           nvp('L_SHIPPINGOPTIONLABEL2', 'Domestic Shipping');
           
           nvp('notify_url', "http://{$_SERVER['HTTP_HOST']}/test.php");
           
           //General Information
           nvp('ADDRESSOVERIDE', '0');
           nvp('ReturnUrl', $returnURL);
           nvp('CANCELURL', $cancelURL);
           nvp('CURRENCYCODE', $currencyCodeType);
           nvp('PAYMENTACTION', 'Sale');

*Where NVP is the funtion that adds a parameter to the NVP string sent through to PayPal
-Sam

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.