Gossamer Forum
Home : Products : DBMan : Customization :

Shopping Cart using Paypal

Quote Reply
Shopping Cart using Paypal
i having problems when i try to use Paypal Cart System

I have used both a link form

<A HREF="http://secure.paypal.x.com/xclick/business=jsimonelli@artyko.com&undefined_quantity=1&item_name=$rec{'Title'}&amount=$rec{'Price'}&shipping=0&return=http://simonelli.artyko.com" target="_blank">
<IMG SRC="sc-but-03.gif" BORDER="0" ALT="Make payments with PayPal - it's fast, free and secure!"></A>

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="jsimonel@wvu.edu">
<input type="hidden" name="item_name" value="Oltre Il Muro">
<input type="hidden" name="amount" value="800.00">
<input type="hidden" name="return" value="http://simonelli.artyko.com">
<input type="hidden" name="cancel_return" value="http://simonelli.artyko.com">
<input type="image" src="https://www.paypal.com/images/sc-but-03.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="add" value="1">
</form>

and i have also used a form but neither work it gives me an error. everytime i just delete this cod it works fine again.



can anyone help me with this



Thanks

Jose
Quote Reply
Re: [TKEP1008] Shopping Cart using Paypal In reply to
messing around with the links i have noticed that the problem might be that in the link there are & and other things that might confuse the Script

http://secure.paypal.x.com/xclick/business=jsimonelli@artyko.com&undefined_quantity=1&item_name=$rec{'Title'}&amount=$rec{'Price'}&shipping=0&return=http://simonelli.artyko.com



this is the link and how could i make it show this link without ever confusing the script
Quote Reply
Re: [TKEP1008] Shopping Cart using Paypal In reply to
What are the errors you are getting with the codes you are using?

Are you having problems with the title perhaps which would have spaces?

I know there was some recent threads regarding using paypal, if I'm not mistaken in the chat forum. You might want to do a search and review the information provided there.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] Shopping Cart using Paypal In reply to
I assume the link is in a print qq statement, yes? Try escapaing your email address, like this you\@somewhere.com. It might be the culprit.
Quote Reply
Re: [oldmoney] Shopping Cart using Paypal In reply to
In Reply To:
I assume the link is in a print qq statement, yes? Try escapaing your email address, like this you\@somewhere.com. It might be the culprit.


This is the solution. I just went through this last week, and it needs the @ in the email address escaped.

(I took the PayPal code apart line by line until I found the culprit - now it works just as it should.)

Kristen Skold