Using Paypal to process orders - Basic Guide


No avatar

2004-10-25 18:06

to do this you need to register at

which is a complete paypal mirror which isnt real and therefore allows you to go through the complete order process

now download the Paypal PHP Development Kit

Config the kit to your webhost and add your paypal sandbox business account (one that can process creditcards)

now you can modfty

to "Post" the required variables to process.php in the paypal development kit
//process.php takes the posted variables from orders_delivery.tpl and sends them to paypal(sandbox/developers version)

My version which is far from fully functional is avaliable here

there is a bit of javascript which simply calculates Tax at 17.5%

Postage in the template is fixed at Ł12 simply for convience

Because the template "posts" to process.php and not to "quick carts" order facility, therefore any orders made dont show up in quick carts administration it may be possible to "post" the information to both quick carts admin section and to paypal using two "

post" forms i havent tried this as it would be possible that a person could finish the order process on your website is sent to paypal to make the payment but decides not to buy. This would mean that quick cart would have logged the order but no payment would

have been made leading to confusion.

a further problem i have had is that you can only have one item in the shopping cart this is beacuse of the way quick cart displays multiple items on the order page using the same product name variable ( $aBasket[sName] )
if i insert this variable into

<input name="item_name" type="hidden" id="item_name" value="$aBasket[sName]" size="40">

if there is only one item in the shopping cart then every thing is ok and when the customer presses submit they are sent to paypal where the correct product name is listed

how ever paypal doesnt support multiple items (easily) beacuse there is only one item varible (item_name)

this is ok if i could say list the shopping carts item names in a row but beacuse quick cart uses only one name varible which is changed if there are more than one item

$aBasket[sName] = Item number 1

$aBasket[sName] = Item number 2

$aBasket[sName] = Item number 3

example 2
<input name="item_name" type="hidden" id="item_name" value="$aBasket[sName]$aBasket[sName]$aBasket[sName]" size="40">

would be displayed as
<input name="item_name" type="hidden" id="item_name" value="Item Number 3Item Number 3Item Number 3" size="40">

not as
<input name="item_name" type="hidden" id="item_name" value="Item Number 1Item Number 2Item Number 3" size="40">
which would be fine

If any one as any idea what im on about i would appreciate all help

If anyone can think of a solution which allow me to post all item names to paypal then i would grately appreciate it


treewood (OpenSolution)

Avatar: treewood

2004-10-25 21:08

Edward301 - WOW ... do You know php well? if Yes then please go to download and get some plugins.
See how it works and create plugin to paypal.


No avatar

2005-02-16 02:07

i would like to look at the code to see if i can help


m a t t z e r e@y a h o o.c o.u k


No avatar

2005-02-16 06:49

PayPal has changed the way that customers check out with credit card details. Now the customer does not need to set up a PayPal account to pay!

Its now easier than ever to receive PayPal payments, so who wants to start the plugin !!!!!



No avatar

2005-04-21 19:25

As it stands right now, there is really no way to take care of the cart once it's completed. What is needed is a paypal plugin. Anybody have one that works properly?


No avatar

2005-05-21 13:44

The only thing that had stopped me from getting into Paypal is that the customer have to create an account first.. But is that not a requeirement these days, it's even better!
Unfortunately I'm not that good on PHP that I can create e plugin.. But I'd love the one who did! :)


No avatar

2005-05-21 16:31

try this

For those of you who want to include PayPal on the Cart do this:

Replace the txt in "orders_saved.tpl"

<table class='operation_table' cellspacing='0' align='center'>
<td class='ok'>
<br /><br /><br /><br />

<form action="" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="your@">
<input type="hidden" name="item_name" value="Payment -">
<input type="hidden" name="item_number" value="Order ID $iOrder">
<input type="hidden" name="amount" value="$fSummary">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="" border="0"

name="submit" alt="Payable by PayPal it is for free , fast , and certainly !">
<br /><br />
<a href='javascript:windowNew( "?p=windowPrintOrder&amp;iOrder=$iOrder" );'><b>$lang[Order_print]

<a href='?p='>$lang[Homepage]</a>
<br /><br /><br /><br />


No avatar

2005-05-21 20:02

Looks like it works, only a small error (at least in qc v3.0). To print the order correct on the screen it must be:
<a href='javascript:windowNew( "?p=ordersWindowPrint&amp;iOrder=$iOrder" );'><b>$lang[Order_print]</b></a>
<br /><br /><a href='?p='>$lang[Homepage]</a>

Instead of:

<a href='javascript:windowNew( "?p=windowPrintOrder&amp;iOrder=$iOrder" );'><b>$lang[Order_print] </b></a>

In short, only windowPrintOrder must be ordersWindowPrint


No avatar

2005-05-23 00:46

To -Dj-
You wrote: "PayPal has changed the way that customers check out with credit card details. Now the customer does not need to set up a PayPal account to pay!"
But is that true? When I click my own 'Pay now with paypal' after I ordered my things, I get to a page that says I have to create an account.. Please explain that to me!



No avatar

2005-05-23 05:17

I think you need to have a Business Account to get the "No PayPal Required" be careful though, some fees are more with a Business Account too - I believe.



No avatar

2005-07-15 02:20

Whats the latest with the paypal integration? has anyone completed it yet and modified Quick.Cart for Multiple Items? "bob" post beofre worked well but has there been any further advances?



Avatar: paula

2005-07-22 20:45

Well, when I do what bob said to do, it just prints out the code on the successful order page, it doesn't actually interpret the code. I'm not sure in which file to paste that code.


No avatar

2005-07-26 13:09

Maybe it's time for a plugin to be created... ;-) Anyone that feels up for it?


Avatar: Guido

2010-05-04 18:31

bob on 2005-05-21 16:31:02 -

It's a few years later and I cannot find 'orders_saved.tpl' anymore.

Something changed in the new version of quick.cart?

Please help me ;-)!


Avatar: beholder

2010-05-05 12:55

Man, this topic is old!
Now it's orders_print.tpl, I guess..

and yes.. everything changed.


Avatar: Guido

2010-05-05 23:46

Yes, I know it's old....
But can somebody tell me how to connect paypal to the shoppingcart of the most recent free version of quick.cart?


Avatar: cgan

2010-05-06 07:24

Guido - check this:



Avatar: Guido

2010-05-06 21:38

Thanks for the link, I already downloaded Q.C with paypal from:


Avatar: ar-carsystems

2010-05-09 21:39

pff, hi guys

i can't get it done, i tried everything an i can't get it to work

i just want to integrate paypal, can someone tell me what to do?

it's frustrading


quickcart free version (last one)

koen tombeur


Avatar: Guido

2010-08-02 19:58

I just downloaded the whole quick.cart (including paypal) free from:

So I did not have to fool around with php code ;-).

Back to top
about us | contact