Coast Line
asked on
A question of Paypal with Donations
I have one code where i list money of the users in Indian Rupees.
I want that if the user want to donate the amount to charity, it should click donate button and amount should be passed to the paypal.
it should pass the whole amount to the user and empty the users account money.
i know how to gererate a code of donation using paypal, i will list my paypal code. but can anyone, anyone can tell me can i pass the user amount to paypal and when money donated, it should empty the useraccount.
Id this possible to do.
I want that if the user want to donate the amount to charity, it should click donate button and amount should be passed to the paypal.
it should pass the whole amount to the user and empty the users account money.
i know how to gererate a code of donation using paypal, i will list my paypal code. but can anyone, anyone can tell me can i pass the user amount to paypal and when money donated, it should empty the useraccount.
Id this possible to do.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="charity@ibestcity.com">
<input type="hidden" name="lc" value="IN">
<input type="hidden" name="item_name" value="IBESTCITY.COM">
<input type="hidden" name="item_number" value="charity">
<input type="hidden" name="currency_code" value="INR">
<input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
the code is complete but i am really confused
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>> Do you think IPN will be best suited for this stuff i am trying to do.
i do not know - only you know that... but it looks like IPN is what you need if you want to make changes to your database based on values returned by PP...
Azadi
i do not know - only you know that... but it looks like IPN is what you need if you want to make changes to your database based on values returned by PP...
Azadi
ASKER
Well Here is my Complete situation. Sorry for late reply.
Please Guide Regards
<input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden">
- I have money in my account say 10$.
- if i click donate button . that will take me to paypal and send the money over there.
- one i send the money, i want that user should be diverted back to my website with success/failure status.
- if yes, the amount should be immediately deducted from my account i mean the table where i have the entry.
- if cancel, the amount should be as it is and i should get a message that donation cancelled.
-
- Two issues.
- If user has donated $5 instead of 10, then how will effect the database amount.
Please Guide Regards
<input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden">
ASKER
have two issues.