Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 3rd, 2007, 08:56 PM
Authorized User
 
Join Date: Sep 2006
Location: Mitcham, London, United Kingdom.
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default The link you have used to enter the PayPal system

I am trying to extend the Wrox shop and allow users to pay using paypal.I want to pass the values to Paypay using a query string but am getting this error.

Ive tried posting to Paypal dev and tech support with no help at all.
Just thot one of you guys might know how to fix this

my code is below

Protected Sub btnPay_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnPay.Click
        Dim orderNumber As String = lblOrderNumber.Text
        Dim orderAmount As String = lblOrderAmount.Text
        Dim amt As String = orderAmount.Replace(",", ".")
        Dim shp As String = "5.00"
        Dim url As String = "https://www.paypal.com/uk/cgi-bin/webscr?cmd=_xclick&upload=1&currency_code=GBP&rm=2 &business=mail@art-wax.co.uk&custom=orderNumber&amount=amt&shipping=s hp"
        Response.Redirect(url)
    End Sub


Please help.

Tawanda

 
Old May 4th, 2007, 02:57 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

The URL you're trying to redirect looks incorrect, as it seems to start with mail@ instead of https://www.paypal

Also, you're sending hard coded text, not the values. E.g.

orderNumber&amount=amt

should be something like:

orderNumber&amount" & amt & "....

Additionally, you can look at String.Format to make this code a bit more readable.

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old May 5th, 2007, 05:07 PM
Authorized User
 
Join Date: Sep 2006
Location: Mitcham, London, United Kingdom.
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks a million i figured it out

Tawanda





Similar Threads
Thread Thread Starter Forum Replies Last Post
paypal and asp ocabrera70 Classic ASP Professional 3 September 25th, 2014 06:30 AM
PayPal Integration takwirira ASP.NET 2.0 Basics 0 May 12th, 2008 05:44 AM
PayPal - IPN Shabequl PHP How-To 1 September 26th, 2007 05:15 PM
PHP and PayPal Pro harpua Pro PHP 1 September 19th, 2005 05:35 AM
paypal ? anshul Pro PHP 1 November 24th, 2004 01:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.