Solved

One Page Cart PHP google checkout/paypal

Posted on 2011-02-26
3
660 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
  • 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 500 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Read about how to choose the best possible content marketing agency to suit your needs. Content marketing has become an integral part of running a successful tech business, so it is wise to be informed.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now