Pages:

Using Paypal to process orders - Basic Guide

Edward301

No avatar

2004-10-25 18:06

to do this you need to register at
http://developer.paypal.com/

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
at http://paypal.sourceforge.net/

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

now you can modfty
orders_delivery.tpl

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
http://s105203764.websitehome.co.uk/paypal.tpl

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

eg
$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


edward301

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.

witaj.net

zzzcoder

No avatar

2005-02-16 02:07

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

zzz

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

-Dj-

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 !!!!!

hehe

WRStrong

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?

Bengan

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! :)

bob

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"
with:

<table class='operation_table' cellspacing='0' align='center'>
<td class='ok'>
<br /><br /><br /><br />
$lang[Order_finished]
<br/>

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="your@ email.com">
<input type="hidden" name="item_name" value="Payment - www.yourdomain.com">
<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="https://www.paypal.com/en_US/i/btn/x-click-but6.gif" border="0"

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

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

Axel

No avatar

2005-05-21 20:02

Hi,
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

Bengan

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!

Regards.

Cobra

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.

Bryan

PhantomV

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?

Tim

paula

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.

Olof

No avatar

2005-07-26 13:09

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

Guido

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 ;-)!

beholder

Avatar: beholder

2010-05-05 12:55

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

and yes.. everything changed.

Guido

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?

cgan

Avatar: cgan

2010-05-06 07:24

Guido - check this: http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=5761&page=999

cgan

Guido

Avatar: Guido

2010-05-06 21:38

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

http://marielouise.gruner.free.fr/download.php?lng=fr

ar-carsystems

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

greets

quickcart free version (last one)

koen tombeur

Guido

Avatar: Guido

2010-08-02 19:58

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

http://marielouise.gruner.free.fr/download.php?lng=fr

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

Pages:
Back to top
about us | contact