php - Flow for: fill form, make paypal payment, create account -


i've implemented paypal transaction before 1 has twist i'm not quite sure what's best way handle it.

the basic idea want create account user when provides details , makes payment via paypal. until both user details filled out correctly , payment made correctly, shouldn't create account user.

the setup i've done before paypal button user clicks, makes payment, , gets forwarded generic page "your order processed , shipped" there no pre-order form involved.

this 1 different though because

  • before paypal, need collect initial user data
  • after paypal, need create new user account , use in user data collected pre-paypal form

i'm sure there's logical way implement this, i'm not quite sure what's flow should follow it.

i use zend framework way, shouldn't matter in case zend has easier way me i'm trying do.

i following (though in asp.net):

  1. user fills out form
  2. info saved in order table in db unique invoice number
  3. invoice number passed paypal, along ipn notify url, when redirect
  4. user sent paypal pay , comes generic success page
  5. behind scenes, paypal makes call ipn notify url once processing complete. page receives invoice number pp returns call, , account creation processing order after retrieving details db. [this page no ui, since pp hitting it.]
  6. an email sent process notifies customer account has been created , gives them details.

this simplified version of process, hits highlights. can check out paypal's page ipn, , search on google ipn integration php.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -