|
|
|
Rank: Starting Member
Groups: Registered
Joined: 4/28/2006 Posts: 1 Location: ,
|
Its been a while since I've done anywork with paypal, but as I recall I used cfhttp to post my data.
Example:
----------------------------------------------------
<cfoutput>
<cfhttp url="http://www.paypal.com/cgi-bin/webscr" method="post" resolveurl="yes">
<cfhttpparam type="formfield" name="cmd" value="_xclick" />
<cfhttpparam type="formfield" name="business" value="#form.MerEmail#">
<cfhttpparam type="formfield" name="item_name" value="Server Donation Fund">
<cfhttpparam type="formfield" name="item_number" value="153322">
<cfhttpparam type="formfield" name="currency_code" value="USD">
<cfhttpparam type="formfield" name="receiver_email" value="#form.MerEmail#">
<cfhttpparam type="formfield" name="mrb" value="#form.mbr#">
<cfhttpparam type="formfield" name="pal" value="#form.pal#">
<cfhttpparam type="formfield" name="no_shipping" value="1">
<cfhttpparam type="formfield" name="no_note" value="0">
<cfhttpparam type="formfield" name="bn" value="#form.bn#">
<cfhttpparam type="formfield" name="amount" value="#form.Damount#">
</cfhttp>
</cfoutput>
----------------------------------------------------
This is my process page and for some reason the page comes back as blank not returning me to paypal's payment screen. What am I missing or not doing correctly?
Should I use cfhttp or try the API? I would like to stick with the cfhttp because all I'm doing is allowing a user to donate money to support a server. What I am also trying to do is store the amount, the user who donated and the date the process took place.
site http://donations.black-raiders.com
Thanks in advance
|
|
|
|
|
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 11/9/2005 Posts: 3 Location: ,
|
you should just use a simple <form> not a cfhttp cfhttp retrieves the page and stores it in the cfhttp variable on the server side, you want to send the clients browser to paypal, for which you want a form
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 11/9/2005 Posts: 3 Location: ,
|
*you should just use a simple <form>
|
|
|
|
Guest
|
YAFVision Theme by Jaben Cargman (Tiny Gecko)Powered by YAF |
YAF © 2003-2009, Yet Another Forum.NETThis page was generated in 0.262 seconds.