Is it possible to use PHP for redirecting an encrypted PayPal button code?

by 6 replies
11
I'm wanting to make a potential link (mywebsite.com/buy) a workable link using a php redirect to go directly to PayPal to purchase a product. I'm wanting to use the link for a specific autoresponder email.

My problem is the PayPal button is encrypted and I'm not sure sure if I can even pull this off and might just have to end up having it on a webpage as originally thought but I was curious if there was anyway I can take out one click in the buying process.

I really appreciate any advice and help - thank you.
#programming #button #code #encrypted #paypal #php #redirect #redirecting
  • Hmm. I think yes.

    Encrypted buttons are usually done using a POST, but PayPal also accepts GET requests for use via email links etc.

    The only issue might be the length of the resulting URL. Most browsers will cope fine with up to 1KB of text in the URL, many with 2 KB, but I'm not sure how big the encrypted URL would be.

    I'll just check my WSO order page ....

    44 lines x 64 characters, almost 3kb.

    Your button might be shorter of course.
    • [1] reply
    • Actually mine is the same size after looking back at the code...

      Thank you rwil02, I appreciate your help.
      • [1] reply
  • Yes,

    Since you are redirecting there is no need to use an encrypted link, just use the standard unencrypted link. The redirect protects the Pay Pal link. To add them to a autoresponder list you need to use the add additional options url on payment/cancel. Simple send them to a thank you page where they enter their e-mail address and your autoresponder then can send them the info etc...
    • [1] reply
    • I wouldn't necessary follow this advice. True, you need to decide your own level of paranoia. I don't know your list, but it is not hard to "stop" a redirect and see what html code it actually contains. That means your PayPal-button code would be exposed, and with it, the url for your thank-you page. In some scenarios (for example when you use the IPN code to ship a physcial product, or fire off the email with the real download links, that's not a problem. But if the real thank-you page url is in the PayPal-button code, you're at risk.

      Best regards,
      Sten
  • Banned
    [DELETED]

Next Topics on Trending Feed

  • 11

    I'm wanting to make a potential link (mywebsite.com/buy) a workable link using a php redirect to go directly to PayPal to purchase a product. I'm wanting to use the link for a specific autoresponder email. My problem is the PayPal button is encrypted and I'm not sure sure if I can even pull this off and might just have to end up having it on a webpage as originally thought but I was curious if there was anyway I can take out one click in the buying process.