homepage Welcome to WebmasterWorld Guest from 54.234.0.85
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / WebmasterWorld / Ecommerce
Forum Library, Charter, Moderators: buckworks

Ecommerce Forum

    
Landing Pages in Paypal After Checkout
adjusting older code to include confirmation page
DXL

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4033437 posted 6:36 am on Nov 29, 2009 (gmt 0)

The code that Paypal generates for "add to cart" buttons today is obviously much different from how it looked four or five years ago.

If I have a button that still works, but uses their old coding, is there a snippet of code that I can add that would redirect a buyer to a specific URL of a website after checking out through Paypal?

In other words, if the old code looks like:

input type="hidden" name="add" value="1"
input type="hidden" name="cmd" value="_cart"
input type="hidden" name="business" value="me@mysite.com"
input type="hidden" name="item_name" value="Widget"
input type="hidden" name="item_number" value="WIDGET"
input type="hidden" name="amount" value="50.00"
input type="hidden" name="currency_code" value="USD"

Is there a snippet of code that I can add so that a buyer is redirected to a confirmation/thanks page?

 

rocknbil

WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4033437 posted 8:16 pm on Nov 29, 2009 (gmt 0)

<input type="hidden" name="return" value="http://example.com/thank-you.html">

That should do it . . . it's in their docs.

If you really want to make it seamless though, use IPN. 'Nother topic though . . . .

DXL

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4033437 posted 6:23 am on Dec 1, 2009 (gmt 0)

Thanks!

I sent Paypal tech support an email asking this exact same question just in case I didn't get an adequate response on here. Paypal tech support emailed me saying that I couldn't update the code (per your suggestion), I'd have to recreate all of the buttons one by one in Paypal.

Gotta love Tech Support.

rocknbil

WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4033437 posted 7:56 pm on Dec 1, 2009 (gmt 0)

Huuuuh? Strange. I use that in nearly all my P.P. interfaces, in one example for the same site purchasing different services, I want the return to be a different URL. It's also how you override the "return URL" setting in the payee's account. Maybe it's just a case of context, meaning, how you are using the buttons and how it's set up.

On that, in retrospect,

If I have a button that still works, but uses their old coding, is there a snippet of code that I can add that would redirect a buyer to a specific URL of a website after checking out through Paypal?

It won't actually redirect, it refers to the "return to Merchant" link, but in the PayPal account there should be a return url setting if you only have one purchase type. Worth looking into.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Ecommerce
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved