Solved

Paypal Buy Now return URL Query strings

Posted on 2009-05-06
1
2,745 Views
Last Modified: 2013-11-29
Hello,

I am trying to integrate PayPal Buy now into my web site.

The url I am passing to PayPal is:
https://www.paypal.com/xclick/business=joeblogs@hotmail.com&item_name=Photograph: Rhossili Bay - Wreck of Helvetica and Worms head in distance - 2nd March 2003 - dfddf - By Thomas Mutton&item_number=49&amount=10.00&currency_code=GBP&quantity=1&shipping=1.56&cancel_return=http://www.website.com/photo/195/rhossili-bay-wreck-of-helvetica-and-worms-head-in-distance-2nd-march-2003.aspx&return=http://www.website.com/logpaypalsale.aspx?type=1&pfsoid=18&qty=1

But the problem with the above is the last bit:
return=http://www.website.com/logpaypalsale.aspx?type=1&pfsoid=18&qty=1

I am wanting to pass query string variables in the return but this simply won't work.

I am wondering if there is any way I can pass these extra query string variables with the return url?
0
Comment
Question by:thomasmutton
1 Comment
 
LVL 2

Accepted Solution

by:
irf44z earned 500 total points
ID: 24313611
You need to escape ? (%3F) and & (%26). It will work:

Try this:

https://www.paypal.com/xclick/business=joeblogs@hotmail.com&item_name=Photograph: Rhossili Bay - Wreck of Helvetica and Worms head in distance - 2nd March 2003 - dfddf - By Thomas Mutton&item_number=49&amount=10.00&currency_code=GBP&quantity=1&shipping=1.56&cancel_return=http://www.website.com/photo/195/rhossili-bay-wreck-of-helvetica-and-worms-head-in-distance-2nd-march-2003.aspx&return=http://www.website.com/logpaypalsale.aspx%3Ftype=1%26pfsoid=18%26qty=1

Open in new window

0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question