[ic] Re: interchange-users Digest, Vol 6, Issue 22

gary at geton.com gary at geton.com
Mon Dec 22 12:07:08 EST 2003


Message: 3
Date: Mon, 22 Dec 2003 00:36:21 -0500
From: "Tom" <giftbound1 at comcast.net>
Subject: [ic] Paypal
To: <interchange-users at icdevgroup.org>
Message-ID: <001d01c3c84d$889048a0$be5e2744 at verona01.nj.comcast.net>
Content-Type: text/plain;            charset="iso-8859-1"

>Has anyone get paypal to work with Interchange?
>if So can someone tell me how to do it?
>I probably could do it I will let you know but would be easier if someone
>did this already

One way is to simply have a form post on your receipt.html page which
directs them to PayPal and passes as much or as little order info as
desired.

eg.
[if value mv_payment eq PayPal]
[tmp paypalamount][calc]sprintf('%.2f', [subtotal
noformat=1]);[/calc][/tmp]
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_ext-enter">
<input type="hidden" name="redirect_cmd" value="_xclick">
<input type="hidden" name="business" value="some at emailaddress.com">
<input type="hidden" name="amount" value="[scratch paypalamount]">
<input type="hidden" name="tax" value="[salestax noformat=1]">
<input type="hidden" name="shipping" value="[shipping noformat=1]">

.........form parameters optional i.e. address etc.
.......

<input type="image" src="__THEME_IMG_DIR__pay_paypal.jpg" name="submit" alt
="Make payments with PayPal - it's fast, free and secure!">
</form>
[/if]


Gary




More information about the interchange-users mailing list