ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 31st, 2009, 03:50 PM
jonyBravo jonyBravo is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Posts: 164 jonyBravo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 15 h 48 m 27 sec
Reputation Power: 3
JScript - General - Question - Asp Paypal

Hi there

I'm trying to introduce PayPal to my website. I've write the following form to send the values to PayPal:

<form action="https://www.sandbox.paypal.com/us/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="token" value="">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="<%=paypalref%>">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="PAYMENTACTION" value="Sale">
<input type="hidden" name="callback" value="<%=callback%>">
<input type="hidden" name="RETURNURL" value="http://www.mywebsite.com/confirmation.asp?orderid=<%=myquery%>">
<input type="hidden" name="CANCELURL" value="http://www.mywebsite.com/cancelation.asp?orderid=<%=myquery%>">
<input type="hidden" name="item_name_<%=amount%>" value="<%=strProdName%>">
<input type="hidden" name="amount_<%=amount%>" value="<%=formatNumber(intProdPrice,2)%>">
<input type="image" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" />
</form>

The problem is when the payment is done it doesn't return to my website page.

Is there anyone could help me please?

Thanks
__________________
If this help you please show your gratitude by adding reputation points.

Thanks

JonyBravo

Reply With Quote
  #2  
Old November 2nd, 2009, 11:54 AM
sync_or_swim's Avatar
sync_or_swim sync_or_swim is offline
Moderator
Click here for more information.
 
Join Date: Mar 2006
Location: South Wales
Posts: 3,461 sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 1 Day 16 h 50 m 26 sec
Reputation Power: 1806
I've not used this before, but I can see that you are specifying a url to rteturn to via the returnurl. What happens when you run this code, does it redirect you anywhere when paypal has finished?

In the documentation you were given does it specify what you need to call the text box, have you given it the correct name? Also, is the address that you are passing a legal address? Is there anything on your page which may be re-directing the user to another page, ie checking for the value of a session variable?
Code:
<input type="hidden" name="RETURNURL" value="http://www.mywebsite.com/confirmation.asp?orderid=<%=myquery%>"> 

Reply With Quote
  #3  
Old November 2nd, 2009, 12:17 PM
mystic7's Avatar
mystic7 mystic7 is offline
Contributing User
Click here for more information.
 
Join Date: Sep 2006
Posts: 1,500 mystic7 User rank is Captain (20000 - 30000 Reputation Level)mystic7 User rank is Captain (20000 - 30000 Reputation Level)mystic7 User rank is Captain (20000 - 30000 Reputation Level)mystic7 User rank is Captain (20000 - 30000 Reputation Level)mystic7 User rank is Captain (20000 - 30000 Reputation Level)mystic7 User rank is Captain (20000 - 30000 Reputation Level)mystic7 User rank is Captain (20000 - 30000 Reputation Level)mystic7 User rank is Captain (20000 - 30000 Reputation Level)mystic7 User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 12 h 34 m 54 sec
Reputation Power: 292
What that does is assign a url to a "return to website" button at the end of the PayPal transaction, which you have to click to return to that page you specified. I think the only way to have it automatically return to your site is to upgrade your account. I could be wrong but I'm pretty sure I'm right.

Reply With Quote
  #4  
Old November 3rd, 2009, 12:18 AM
Nilpo's Avatar
Nilpo Nilpo is offline
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Jun 2006
Location: Salem, OH
Posts: 1,880 Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)  Folding Points: 214558 Folding Title: Super Ultimate Folder - Level 1Folding Points: 214558 Folding Title: Super Ultimate Folder - Level 1Folding Points: 214558 Folding Title: Super Ultimate Folder - Level 1Folding Points: 214558 Folding Title: Super Ultimate Folder - Level 1Folding Points: 214558 Folding Title: Super Ultimate Folder - Level 1Folding Points: 214558 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Week 2 Days 8 h 47 m 8 sec
Reputation Power: 967
Send a message via ICQ to Nilpo Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo Send a message via XFire to Nilpo
Facebook MySpace Orkut
PayPal's Sandbox server can assist you in debugging this. Log in and watch your transactions. What's happening?
__________________
Don't like me? Click it.

Scripting problems? Windows questions? Ask the Windows Guru!

Stay up to date with all of my latest content. Follow me on Twitter!

Help us help you! Post your exact error message with these easy tips!

Reply With Quote
  #5  
Old November 3rd, 2009, 04:15 AM
jonyBravo jonyBravo is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Posts: 164 jonyBravo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 15 h 48 m 27 sec
Reputation Power: 3
Thank you very much for your responses. I'm following the script given by the paypal website but it isn't working. I'm using the PayPal's Sandbox server to test the script. I know this is not the right forum for paypal questions but because the quality of the developers that uses this forum I was hoping I would find here an paypal expert.

Thanks you very much again

Reply With Quote
  #6  
Old November 3rd, 2009, 05:34 AM
munchiez munchiez is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 47 munchiez User rank is Sergeant Major (2000 - 5000 Reputation Level)munchiez User rank is Sergeant Major (2000 - 5000 Reputation Level)munchiez User rank is Sergeant Major (2000 - 5000 Reputation Level)munchiez User rank is Sergeant Major (2000 - 5000 Reputation Level)munchiez User rank is Sergeant Major (2000 - 5000 Reputation Level)munchiez User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 17 h 28 m 47 sec
Reputation Power: 36
I might be wrong but I believe the field name should be return_url and not RETURNURL. Likewise I think it is cancel_url, not CANCELURL.

Try this and see if it works:
Code:
<input type="hidden" name="return_url" value="http://www.mywebsite.com/confirmation.asp?orderid=<%=myquery%>"> 

Reply With Quote
  #7  
Old November 3rd, 2009, 06:10 AM
mystic7's Avatar
mystic7 mystic7 is offline
Contributing User
Click here for more information.
 
Join Date: Sep 2006
Posts: 1,500 mystic7 User rank is Captain (20000 - 30000 Reputation Level)mystic7 User rank is Captain (20000 - 30000 Reputation Level)mystic7 User rank is Captain (20000 - 30000 Reputation Level)mystic7 User rank is Captain (20000 - 30000 Reputation Level)mystic7 User rank is Captain (20000 - 30000 Reputation Level)mystic7 User rank is Captain (20000 - 30000 Reputation Level)mystic7 User rank is Captain (20000 - 30000 Reputation Level)mystic7 User rank is Captain (20000 - 30000 Reputation Level)mystic7 User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 12 h 34 m 54 sec
Reputation Power: 292
I just checked my own working code, and name should simply be "return", not "return_url" or "returnurl".

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > JScript - General - Question - Asp Paypal


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek