The Donation doctype allows you to record donation details for the Donor.
Before creating a Donation, you need to create a Donor first.
To create a new Donation go to:
Non Profit > Donation > New
On submitting a donation, you can create a Payment Entry against it using the Create Payment Entry button.
You can set up RazorPay for capturing donations. You can find instructions on setting up razorpay here.
You can follow the steps listed below to setup Razorpay for donations.
You can find instructions on setting up razorpay here.
In order to capture the donations, you need to set certain defaults in the Donation Settings section in the Non Profit Settings
If Automate Donation Payment Entries is enabled, you will have to set the default Debit Account and Donation Payment Account for Payment Entry.
You can set up a webhook from the RazorPay dashboard in Settings. You can read more about webhooks in RazorPay here. This webhook will notify your OneOfficeERP site whenever a new donation is created.
You will need the following details to set up the webhook.
https://<your-site>/api/method/ooerp.non_profit.doctype.donation.donation.capture_razorpay_donations
payment.captured
event.With this, your webhook is activated.