Jump to content


Photo

Using LWP for PayPal form post


  • This topic is locked This topic is locked
4 replies to this topic

#1 Kevin Richardson

Kevin Richardson

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 02 December 2002 - 01:19 PM

I'm trying to make the initial post to PayPal via a Perl script using LWP. I have the IPN callback from PayPal working fine.

Instead of creating a separate HTML page for my shopping cart with the PayPal variables embedded, I'd like to just submit them directly from the cart script via LWP.

The problem I have is that LWP is expecting a response. The best I can do is print out the content of the successful response -- the PayPal login page.

Is there any way to submit the info to PayPal from the script and then have the browser redirect to the PayPal site?

Any tips would be appreciated!

Thanks,
Kevin Richardson

#2 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 02 December 2002 - 03:15 PM

It's not possible.

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn

#3 Kevin Richardson

Kevin Richardson

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 02 December 2002 - 04:09 PM

Thanks for the quick reply.

Why won't PayPal allow you to prepopulate the payment page via a CGI?

-- Kevin

#4 Kevin Richardson

Kevin Richardson

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 02 December 2002 - 05:15 PM

Never mind. I figured out how it can be done.

Thanks!



#5 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 02 December 2002 - 06:23 PM

For everyone else: https://www.paypal.c...-signup-outside

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users