Knowledge Base

Donation

  • 101views
  • February 7, 2024

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

  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.

To record donations effectively, you must configure specific defaults in the Donation Settings section within the Nonprofit Settings.

  1. Default Company: This company will be assigned to donations created via webhook.
  2. Default Donor Type: This donor type will be assigned to donors created via Donation webhook.
  3. Automate Donation Payment Entries: Enable this option to automatically generate Payment Entries for donation entries created via webhook.

If Automate Donation Payment Entries is enabled, you must specify the default Debit Account and Donation Payment Account for the Payment Entry.

3.2.2 Setting up webhook

You can set up a webhook from the RazorPay dashboard in Settings. This webhook will notify your BizCentric site whenever a new donation is created.

 

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

  1. Webhook URL: The following is the URL for your BizCentric site. This is the endpoint RazorPay will utilize to notify of any new donations created.
  2. 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 BizCentric 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.
  3. Event: You have to enable the payment.captured event.
  4. Active: Check this to enable the webhook.

With this, your webhook is activated.