[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

One Page Cart PHP google checkout/paypal

Posted on 2011-02-26
3
Medium Priority
?
685 Views
Last Modified: 2012-05-11
Hi,

I would like to have a one page cart for a single product. This should integrate with google check out and paypal. Anyone have a simple example or tutorial. If code is required would like to do this with php.

Thanks.

W
0
Comment
Question by:wilflife
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Expert Comment

by:onemadeye
ID: 34988024
For a single product, why do you need a shopping cart anyway?
Why dont you just simply put BUY NOW buttons ?
0
 

Author Comment

by:wilflife
ID: 34999719
Buy now and then jump to paypal? Surely i need to pass a parameter IE number price quantity?
0
 
LVL 5

Accepted Solution

by:
onemadeye earned 2000 total points
ID: 35000567
Oh, I see that you mean it for clients to be able to enter quantity where the default BUY NOW button will set 1 for quantity.

Actually, you can see basic codes from PayPal here .. it is for Sample HTML Code for a Buy Now Button that Prompts for Quantities
Clients then will be able to set quantities on the PayPal checkout page.

Or, if you want client to enter quantities on your site but later they can update quantities on PayPal checkout page too, then use this (slightly modified from their above codes).
Sample HTML Code for a Buy Now Button that Prompts for Quantities both on your site and on the PayPal checkout page
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="herschelgomez@xyzzyu.com">
<!-- Specify a Buy Now button. -->
<input type="hidden" name="cmd" value="_xclick">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="Hot Sauce-12 oz. Bottle">
<input type="hidden" name="amount" value="5.95">
<input type="hidden" name="currency_code" value="USD">
<!-- Prompt buyers to enter their desired quantities. -->
Enter Quantity: <input type="text" name="quantity" value="1">
<input type="hidden" name="undefined_quantity" value="1"> 
<!-- Display the payment button. -->
<input type="image" name="submit" border="0" src="https://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif" alt="PayPal - The safer, easier way to pay online"><img alt="" border="0" width="1" height="1" src="https://www.paypal.com/en_US/i/scr/pixel.gif" >
</form>

Open in new window

0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article was initially published on Monitis Blog, you can read it here . When it comes to deciding which approach to website performance monitoring is best for your business, unfortunately, like so many options in life . . . it depends. In th…
This article discusses how to implement server side field validation and display customized error messages to the client.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question