|
Rank: Starting Member
Groups: Registered
Joined: 12/27/2002 Posts: 1 Location: ,
|
All of the PayPal examples that I've looked at follow a paradigm of posting from a customer form to a PayPal url, and IPN posts to and interacts with my script so that I know the transaction is paid. After spending a little more time than it took to assemble my sound system over xmas, I got this to work.
However, how does "it" work if I want to capture info that I wish to parse as acceptable before sending the customer to PayPal (to pay), and then merging the IPN data with other info? For example, a customer applies for a subscription, the form posts to my asp script (not to PayPal's url), I parse the applicant's info to determine suitability of subscription, then my script posts to PayPal's url, IPN sends an answer to my (the same) script, my script then writes the transaction info from PayPal and other customer data to a db.
I suspect that I can't send an initial post to PayPal from the same script that IPN will post to. Perhaps I have to write the customer info to a db in 2 steps. My stuff first, and then query for the new record from the script IPN posts to, and insert the transaction info into the matching record.
I'd appreciate any thoughts from anyone.
Thanks in advance
Colin
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
You can capture and store info before sending the user to PayPal along with an ID and then match the payment back to your database by the passed-through ID. Patrick Breitenbach PayPal, Inc. Dev Net: https://www.paypal.com/pdn
|