- Joined
- Dec 13, 2004
- Messages
- 119
- Reaction score
- 4
Hi,
I have no experience in Paypal API nor coding a donation script.
However, using heavenms db, I would like to code a script in php that I assume will follow the following logic and would like to check if my logic is correct
1) Click on Donate
2) If not logged in, redirect to login page, else redirect to PayPal and start a listener to wait for paypal to return a 'success' call from its API
2) Upon successful donation -> Redirect a success, else timeout or failed
3) If success, execute a query to update (credit) maplePoint / nxCredit to db.account where accountid = $_SESSION['accountid']
Also, i understand that I need to set my paypal account as a merchant account, thus i'd like to confirm if my logic is correct prior to coding the page.
I have no experience in Paypal API nor coding a donation script.
However, using heavenms db, I would like to code a script in php that I assume will follow the following logic and would like to check if my logic is correct
1) Click on Donate
2) If not logged in, redirect to login page, else redirect to PayPal and start a listener to wait for paypal to return a 'success' call from its API
2) Upon successful donation -> Redirect a success, else timeout or failed
3) If success, execute a query to update (credit) maplePoint / nxCredit to db.account where accountid = $_SESSION['accountid']
Also, i understand that I need to set my paypal account as a merchant account, thus i'd like to confirm if my logic is correct prior to coding the page.