Introduction
Setting Up
Using OOERP
Automation
Accounts
Asset
Buying
CRM
Human Resources
E-Commerce
Loan Management
Projects
Quality Management
Selling
Stock
Support
Website
Agriculture
Education
Healthcare
Hospitality
Manufacturing
Non Profit
Customization
Integration
Regional
OneOffice Logo

Donation

The Donation doctype allows you to record donation details for the Donor.

1. Prerequisites

Before creating a Donation, you need to create a Donor first.

2. How to Create a Donation

To create a new Donation go to:

Non Profit > Donation > New

Donation

  1. Select the Donor. The Donor Name and Email will be fetched automatically.
  2. Set the Date of Donation.
  3. Set the Amount and Mode of Payment.
  4. Save and Submit.

3. Features

3.1 Payment Entry for Donation

On submitting a donation, you can create a Payment Entry against it using the Create Payment Entry button.

3.2 RazorPay for Donations

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.

  1. Setup RazorPay
  2. Setup RazorPay Webhook

3.2.1 Setup RazorPay

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

  1. Default Company: This company will be set for the Donations created via webhook.
  2. Default Donor Type: This Donor Type will be set for the Donor created via Donation webhook.
  3. Automate Donation Payment Entries: You can enable this to auto-create Payment Entry for Donation entry created via webhook.

If Automate Donation Payment Entries is enabled, you will have to set the default Debit Account and Donation Payment Account for Payment Entry.

Donation Settings

3.2.2 Setting up webhook

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.

Donation Webhook

You will need the following details to set up the webhook.

  1. Webhook URL: The following is the URL for your OneOfficeERP site. This is the endpoint RazorPay will utilize to notify of any new donations created.
https://<your-site>/api/method/ooerp.non_profit.doctype.donation.donation.capture_razorpay_donations  
  1. Secret: In order to secure your API endpoint, it is always better to generate and set a Webhook Secret for the API Endpoint. To do so, on your OneOfficeERP site, you can click on the Donations > Generate Webhook Secret button in the Non Profit Settings. Copy the secret and paste it in the secret field on the RazorPay dashboard to set up webhooks.
  2. Event: You have to enable the payment.captured event.
  3. Active: Check this to enable the webhook.

With this, your webhook is activated.