Results 1 to 2 of 2

Thread: Pass variables from PHP to Paypal and back

  1. #1
    Join Date
    May 2007
    Location
    England, UK
    Posts
    235
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default Pass variables from PHP to Paypal and back

    I have a site which sells tickets to an event. I've chosen to use paypal on this occasion.

    The way it works is, you submit a form directly to paypal and from that data it charges the customer.

    The problem is that I need to use alot of that data for back end operations.
    Therefore I would need to store the data in a database (MySQL).
    But at what point sould I do that?

    Can I send all of the forms variables to paypal and have them come back after the payment has been taken?

    Or should I try and get the data into the database before the payment has been taken?

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    paypal will return success or failure to their script which prints out the information accordingly.

    You could contact paypal and ask about their policy to give your script some kind of success / failure receipt, however having all of the information return from paypal will simply just not happen.

    My suggestion is to have you form sent to a script that will 1 put the data into your database and 2 send to paypal. Then if you are able to get a success / failure response from Paypal you can assign their access appropriately

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •