Solved

Paypal Buy Now return URL Query strings

Posted on 2009-05-06
1
2,739 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Often people are aiming at development of perfect Magento websites. Though, it is easier said than done. You know what’s much easier? To ruin everything. It can be done in seconds. Many of us experimented with design, tried to change some values dir…
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now