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):
- user fills out form
- info saved in order table in db unique invoice number
- invoice number passed paypal, along ipn notify url, when redirect
- user sent paypal pay , comes generic success page
- 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.]
- 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
Post a Comment