Hosted PayPal Cart

HomespunHolist
Contributor
Contributor

Is the hosted paypal cart (https://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/sc-techview-outside) still current and can we implement it after the latest changes the end of March?

 

Just want to do another simple site with a handful of products and would like the cart and checkout to be hosted with PayPal instead of our site or a third party product.

 

Thanks

Login to Me Too
7 REPLIES 7

MTS_Ciaran
Moderator
Moderator

Yep, it certainly is, the only difference post March 29th changes is that there will be a new checkout flow and that the button code needs to be in line with the documentation HERE

Login to Me Too

HomespunHolist
Contributor
Contributor

Hey Ciaran - Thanks for that. Is there a reference document that outlines the PayPal cart in full - including shipping options etc? - Can't seem to find any other detail on that.

Login to Me Too

MTS_Ciaran
Moderator
Moderator

Sure, you can use this as reference:

 

https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/add_to_cart_ste...

 

The add to cart button is used to add items to the PayPal hosted cart solution, so once you get your add to cart buttons sorted, youre pretty much ready to go for the checkout flow. 

Login to Me Too

HomespunHolist
Contributor
Contributor

Thanks for that. I've succuessfuly added the items to add to the cart - I'm not trying to set up shipping but under profile settings > selling tools > Shipping Calculations - there are no options to a) select which countries I ship to and b) no where to specify shipping costs by location etc. I see from some searches online that these options should be there but all I get is a page with the options in the screenshot attached. Am I missing something simple here to be able to set up shipping countries and rates by something other than price range?

 

Thanks

 Screen Shot 2017-04-03 at 7.11.20 PM.png

Login to Me Too

MTS_Ciaran
Moderator
Moderator

The shipping location options are only available in the US at the moment, outside of the US you cannot set shipping rates based on location, see guide here for setting up auto-calculated shipping charges for non-US merchants:

 

https://developer.paypal.com/docs/classic/admin/checkout-settings/#calculate-shipping-charges-automa...

 

Login to Me Too

HomespunHolist
Contributor
Contributor

Ok Thanks - I think we are nearly there. I have some code that compiles a HTTP GET to add an item to the cart. However - We want a sinlge shipping amount with additional  items shipped with no extra cost. However the GET seems to add multiple amounts to the shipping even though the shipping2=0.00 has been set. It works if you add more of the same items in the cart - but when we add a new product it ads shipping for that item too. Could you let me know what we are doing wrong here please? Will this work with multiple different products using the shipping total of the first item added? I've tried using handling instead of shipping but each item adds to the handling charge . I just want a single shipping value for the complete order that we can pass as a variable to the cart.

 

https://www.paypal.com/cgi-bin/webscr?business=***emailaddressofaccount**&cmd=_cart&add=1&currency_code=AUD&amount=229.85&item_name=S2088W - Serene 'All Metal' 2400 Watt Wall Mounted Fan Heater&shipping=22.00&shipping2=0.00&shopping_url=http://www.heatingspecialists.com.au&return=http://www.heatingspecialists.com.au/

 

Login to Me Too

MTS_Martin
Moderator
Moderator

The shipping parameter you're using, only applies to one item type - if you add a different items, its shipping will still apply.

 

A possible solution would be the use of the handling_cart variable.

 

See: https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitesta...

 

"Single handling fee charged cart-wide. If handling_cart is used in multiple Add to Cart buttons, the handling_cartvalue of the first item is used."

 

https://www.paypal.com/cgi-bin/webscr?business=*** Your E-Mail goes here ***&cmd=_cart&add=1&currency_code=AUD&amount=229.85&item_name=S2088W%20-%20Serene%20'All%20Metal'%202400%20Watt%20Wall%20Mounted%20Fan%20Heater&handling_cart=22.00&shopping_url=http%3A%2F%2Fwww.heatingspecialists.com.au&return=http%3A%2F%2Fwww.heatingspecialists.com.au

 

On a side note, you should url encode all of the values in your parameters, as a single "&" in i.e. the item name is going to cause you some headaches otherwise

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.