Author Topic: Verify Paypal Script... PHP Autosubmit  (Read 7600 times)

phpNewBeee

  • New Member
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Verify Paypal Script... PHP Autosubmit
« on: August 05, 2004, 03:57:35 PM »
All,

I am implementing a Paypal payment solution for a nonprofit organization.  Paypal's documentation suggests using hidden input fields to pass variables to their servers.  I am not comfortable doing this.  I would like to have the users information (eg. Name, Address, Amount etc) to a page on my server and submit the Paypal form after validation.  Is there any PHP function which will allow me to submit a form without a user event?

Thank you for you help,
Bob

lig

  • Senior Member
  • ****
  • Posts: 416
  • Karma: +0/-0
    • View Profile
(No subject)
« Reply #1 on: August 05, 2004, 06:28:40 PM »
I have been there - I was told there are 3 options - Javascript, stream_context, and cURL.  cURL is not available on my server, I couldn't get the stream_context to work, so I used javascript.  

Reference:
http://www.php.net/stream
http://www.php.net/curl
Life is a game... So have fun.
---
PHP Support Forum
#phpc on freenode
Open Source, Open Community

Squid

  • New Member
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
(No subject)
« Reply #2 on: August 27, 2004, 01:14:33 PM »
Have you tried using the Paypal IPN before, all you need to do is pass 1 identifying variable to it and IPN then send the $_POST data back to the file specified in the IPN and that file is where you figure out the variables.

Maybe i should ask if you can use IPN first, LOL

Squid

  • New Member
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
(No subject)
« Reply #3 on: August 27, 2004, 01:14:56 PM »
Have you tried using the Paypal IPN before, all you need to do is pass 1 identifying variable to it and IPN then send the $_POST data back to the file specified in the IPN and that file is where you figure out the variables.

Maybe i should ask if you can use IPN first, LOL

Bane

  • Senior Member
  • ****
  • Posts: 146
  • Karma: +0/-0
    • View Profile
    • PHP help forums
(No subject)
« Reply #4 on: August 27, 2004, 06:29:31 PM »
Actually, Paypal might just have some external interface for applications. E-Bay does, and they own paypal...

Try to find something about SOAP or XML-RPC.
Louis-Philippe Huberdeau
lphuberdeau {at} phpquebec {dot} {org|com|net}

Blog
http://www.drone-alliance.org

PHP Conference in Montreal - PHP Quebec Conference
http://conf.phpquebec.org