Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6115269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:04:18+00:00 2026-05-23T15:04:18+00:00

I am hoping to use the PayPal Pro Hosted Solution to handle payments for

  • 0

I am hoping to use the PayPal Pro Hosted Solution to handle payments for my website, and what i would like to achieve is that user submitted data is NOT inserted into my database until PayPal confirms i have received payment for their entry.

From what I’ve read, i understand the IPN is the best way to achieve this.

So at the moment, users are entering their data with a form, which i am then previewing to them, and if they approve their entry, i am inserting into a database (using PHP/MySQL). The form data at the moment is being passed along in SESSION variables and working fine. The file process is:

  1. User enters data
  2. User is presented with their entered data on a knew page and if they approve…
  3. They click a button which handles the insert into the database.

However what i would like to do is, if they approve their entry on the preview page, when they click approve, instead of the database being updated there and then, send them to PayPal to make the payment and only update the database with their entry if the payment is approved, like this:

  1. User enters data
  2. User is presented with their entered data on a knew page and if they approve…
  3. They click a button which takes them to the payment page
  4. If payment is received, their data is added to the database.

Does anyone have any experience of this type of approach point me in the right direction or give me some guidance on how to go about this please?

I have looked over the PayPal documentation but because I’m new to this, i need things explained in a pretty simple manner.

My original idea was just to store the form is SESSION variables but i will lose this by redirecting people to the payment page. Another thought i had was to create an identical database to what i already have as a temporary holding stage for data, then if the IPN comes back approved, move the data to the final hosting database, but this seems like over engineering the problem a bit.

I hope someone can help.

Thanks
Dan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:04:19+00:00Added an answer on May 23, 2026 at 3:04 pm

    One matter to recognize regarding IPN is that it is an ‘Asynchronous’ response from PayPal – it is not in the user’s browser session, so session variables will not work if you are relying exclusively on IPN (other than if you receive the IPN response and then match it to the user’s session). PayPal also offers PDT (Payment Data Transfer) which is an ‘in-session’ response which could return the user to your site.

    I would not rely exclusively on IPN for payment notifications (see my answer in the following SO topic) Can one rely on Paypal IPN solely to record purchases?.

    Our system uses a combination of both IPN and PDT, with the ‘cart’ data stored in a DB (as your ‘temporary’ record) until notification of the completed payment by either PDT or IPN – whichever arrives first which completes the transaction (your ‘permanent’ database insertion) and deletes the ‘temporary’ record (so a subsequent IPN or PDT does not trigger a duplicate transaction).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I like Mongo for simple things so I was hoping to use it for
I'm hoping to use jqGrid for a current web project that I'm working on.
I'm hoping to use a Google Map in this way: User zooms in on
I've got a wrapper powershell script that I'm hoping to use to automate a
I'm hoping to use a custom richfaces skin to handle the bulk of my
i was hoping to use grep to check and see if permissions have been
I'm hoping to use Google Maps on my site. My addresses are stored in
In an effort to keep code down I was hoping to use regular expressions
I tried using Piston for a simple API, hoping to use its OAuth support.
I'm trying to clone a unix-hosted Mercurial repository to a Windows computer. I'm hoping

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.