74895 Finish up IPN, doc delivery

เสร็จสมบูรณ์ โพสต์แล้ว Jan 30, 2004 ชำระเงินเมื่อจัดส่ง
เสร็จสมบูรณ์ ชำระเงินเมื่อจัดส่ง

I need help finishing up my Paypal IPN project. The setup uses the Paypal cart, e.g., item_number_1, item_number_2, etc. Here's what needs to be done: (1) Write PHP or Perl script to handle Paypal verification - you may use Business-Paypal-IPN from CPAN - [url removed, login to view]~sherzodr/[url removed, login to view] The script should save information about the transaction in an transactions table. If the transaction is good, an entry is made in the orders table containing the transaction number and the client's IP address. Additionally, entries are made in the ordereditems table, which will consist of the orderid and the item_number(s) (2) The return script is set to a page, say [url removed, login to view] - I'm not sure if you can POST or only GET from the return URL, but the return script will be given information about the orderid. It will first verify that the caller is coming from the same IP address as the one that ordered the document seconds ago (by looking up the orders table). Then, for each ordereditem (by looking up the ordereditems table for key orderid), it will check against another database on the progress of document generation. Progress will be refreshed (we can use refreshing every so many seconds, or a PHP file that never quite ends, updating the percent complete using Javascript and CSS span's.) I think for the most part the documents should be all complete when Paypal payment is complete. Once all ordereditems are complete, documents will be zipped together and force-downloaded to the client using a redirect. We record on the orders table that the documents were downloaded. The documents are stored in chunks in a database table - so a SELECT data FROM chunks WHERE docid="$docid" ORDER BY ichunk gets the chunk and we simply concatenate the data to make the file. Some more details - there will be a timestamp on the order so that the link to download the file will only be good for so long (say 10 minutes), I will need a straight-forward way of adjusting this. Include file is fine. Once it has been downloaded once, it cannot be downloaded again unless the order entry downloaded field is cleared. I'm not yet sure how to handle it if payment is pending... I guess I would need an email link generated in the same way... we can chat about this. I know that there are some issues and that the "right" way to do this is to give the user a password, etc... I'd rather have them be able to download immediately after Paypal purchase though, so that is how I'm modeling it. I'm willing to use sessions and possibly cookies if the IP could be problematic. Any advice on security is welcome as well.

Odd Jobs Perl PHP

หมายเลขโปรเจค: #1822558

เกี่ยวกับโปรเจกต์

ข้อเสนอ 1 ใบ โปรเจกต์ระยะไกล ใช้งาน %project.latestActivity_relativeTime|แทนที่%

มอบให้กับ:

webprosl

I can do it :-) Regards, WebPRO

$90 USD ใน 5 วัน
(0 รีวิว)
0.0