I am creating a simple online paypal commerce and I have some doubts on how sending data to seller and buyer when order payment is done. The scenario looks like this:
Each product (legal documents) has a different form because in order to deliver the product buyer need to specify different information for each item. Studying Paypal documentation I have learnt that I can add hidden fields and send them with transaction when I click the Buy Button or Add To Cart.
When the payment is done:
- buyer will receive the confirmation of payment (ok sent by paypal)
- seller will receive all necessary information to fill the documents for each product in one email.
I have noticed using sandbox that buyyer can add note for seller with payment but unfortunatlly the textarea allow only a limitated text.
Please let me know if I understand correctly. When the payment is done Paypal send back all data (IPN) to paypal script (including all information sent via using the form). In that case I should be able to check if the transaction was completed and if so doing the parser of the reply and send data via email using PHP to seller. Is it correct?
Does anyone can show me a simple example?
Thanks a lot.