Solved

A question of Paypal with Donations

Posted on 2009-05-15
4
436 Views
Last Modified: 2013-12-20
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.
<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

Open in new window

0
Comment
  • 2
  • 2
4 Comments
 
LVL 27

Accepted Solution

by:
azadisaryev earned 500 total points
ID: 24428274
PayPal has an IPN - Instant Payment Notification - system. you must set it up and incorporate it into your website if you want to modify your user's account data after a donation transaction.

download the Order Management Integration Guide from here:
https://cms.paypal.com/cms_content/en_US/files/developer/PP_OrderMgmt_IntegrationGuide.pdf 
and read Chapter 3 for instructions.

also check the last section on this page for a quick intro to IPN and specific form variable you can add to your form to specify the return url:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_formbasics

Azadi

0
 
LVL 15

Author Comment

by:Gurpreet Singh Randhawa
ID: 24428534
Thanks for this:

have two issues.
  • Will the clicking on donation button will trigger IPN and the money can be transferred to specific email address registered with paypal. i know ipn send the finalize or cancel url to website back once payment is processed. Do you think IPN will be best suited for this stuff i am trying to do.
<input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden">
0
 
LVL 27

Expert Comment

by:azadisaryev
ID: 24429077
>> 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
0
 
LVL 15

Author Comment

by:Gurpreet Singh Randhawa
ID: 24484680
Well Here is my Complete situation. Sorry for late reply.

  • 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.
I am asking these questions because i never played with this Paypal stuff and i am bit afraid going this far without experts help.

Please Guide Regards
<input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden">
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now