Forum Moderators: phranque

Message Too Old, No Replies

Question about PayPal

Multiple Successful Payment URL's?

         

naitsirhc26

10:21 pm on Oct 30, 2007 (gmt 0)

10+ Year Member



Hello,

I am running a website that uses a shopping cart that is integrated with PayPal. The problem I am having now is that I already have my PayPal Successful Payment URL pointing to a final processing page of the shopping cart.

My question is: How do I make a donation button WITHOUT forwarding the users to the shopping cart after they are done donating their funds? I don't want them to get redirected back to the store, but I don't see an option on PayPal to make another Successful Payment URL. It looks like I have to use the one going back to the cart.

Any thoughts?

Thanks,

Christian

rocknbil

4:27 am on Oct 31, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I am a little rusty on payPal buttons, I use direct methods, but correct me if I'm wrong: you are using the url in your payPal account settings for a "return to site" url, is this correct?

You should be able to specify the "return" url in the button or form itself before sending over to payPal. Something like

<form method="post" action="[payPal URL]">
<input type="hidden" name="return" value="http://www.yoursite.com/your_custom_return.html">
.........
<input type="submit" value="Continue to Payment">
</form>

It may differ for an image button, but it should be in the documentation on how to do this.

naitsirhc26

5:59 pm on Oct 31, 2007 (gmt 0)

10+ Year Member



Thank you. That worked perfectly. Before, the information in the button was encrypted, so to be able to edit the HTML, I had to set the button so it wasn't encrypted.

Question: Is having the button set to not-encrypted, is this less secure?

Thanks,

Christian

rocknbil

7:58 pm on Nov 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not sure, again, it should be in the documentation. :-) However, if by "information in the button" you mean

item price
item quantity
return url

I'd say no, there's probably no reason to encrypt that. But . . .

payer_email

You may want to consider what consequences might arise if this falls into the wrong hands. Probably little to none.

Any CC info or personal customer info you're collecting this on the site over SSL and sending to P.P., absolutely, positively, use all security methods available (but it doesn't sound like you are.)

In any case, if the encryption is not working, it's probably something you are overlooking, it wouldn't hurt to figure out why it stopped working when encrypted.

naitsirhc26

8:56 pm on Nov 1, 2007 (gmt 0)

10+ Year Member



The only reason it wasn't working when it was encrypted was since the info WAS encrypted, I couldn't change any of the attributes, since it was a mix matched code of like: kldajf 305892358 2u54uti skldjfakldjfkajdk mkq.

Since this is a donation button, everything is done over PayPal's secure site. No CC info is ever put onto my site, etc...I just have the button to go directly to PayPal.

Thanks for the info!