[ic] Pay Pal Integration

Doug Finley interchange-users@interchange.redhat.com
Sun Nov 18 20:51:02 2001


----- Original Message -----
From: Cozy Corner <cozycorner@nyc.rr.com>
> I have been reading the archives and am wondering if someone has
integrated
> minivend with Pay Pal.
> Any way will do for now, even if it is not a full integration with a
return
> OK.

I have integrated Paypal on an IC 4.8.2 site.  The integration with IC is
very clunky, but that is due entirely to my shortcomings, not IC. I'm sure
that a full-time developer could make this a more seamless process.  What
I've done is the following:

1. visit PayPal.com and download their PDF on accepting web payments --
Sorry, I did not keep the link.  It will explain what each variable in the
code below is used for.

2. Place the following form behind a button in IC. (replace the variables
with your info, using the PDF as a reference.)

<form action=" https://www.paypal.com/cgi-bin/webscr " method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="dollsource@aol.com">
<input type="hidden" name="return"
value="http://www.dollsource.com/thankyou.htm">
<input type="hidden" name="undefined_quantity" value="0">
<input type="hidden" name="item_name" value="Dollsource.com Shopping Cart">
<input type="hidden" name="amount" value="[subtotal noformat=1]">
<input type="hidden" name="shipping" value="[shipping noformat=1]">
<input type="hidden" name="shipping2" value="0.00">
<input type="hidden" name="handling" value="0.00">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="image_url"
value="http://www.dollsource.com/logo-web.gif">
<input type="hidden" name="cancel_return"
value="http://www.dollsource.com/cancel.htm">
<input type="hidden" name=" no_note" value="1">
<input type="image" src="http://images.paypal.com/images/x-click-but01.gif"
name="submit" alt="Click here to pay with PayPal - it's fast, free and
secure!">
</form>

3. This is where I stopped short.  Rather that try to integrate the Paypal
process above with the rest of the IC checkout process, I simply placed the
Paypal button on the top of the Receipt.html page with an explanation to
"click here" to complete the sale.  I then added lots of explanation to the
checkout page stating that once they clicked checkout they would then be
required to complete the transaction at Paypal.

I works fairly smoothly.  Most of our customers come to us from ebay
auctions, so they are very familiar with paypal.  They fill their cart,
checkout (which sends the order to the site admin and puts it into IC), then
click into PayPal where the payment form is already populated for them via
the form above.  They then give their paypal account info, or open a new
account if needed.  Lastly, they are returned to a thankyou page once the
paypal transaction is complete.  If they bail out before completing the
paypal side, they are bounced to our cancel page and informed that the sale
is not final.

Again there are MANY better ways of doing this I'm sure, this is just one
quick solution that worked for this mom&pop site.  Hope this helps.

Doug Finley
www.vcdna.org