> For the complete documentation index, see [llms.txt](https://mhsagor.gitbook.io/takaden/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mhsagor.gitbook.io/takaden/configuration/nagad.md).

# Nagad

Configuring Nagad payment gateway.

To configure Nagad for use with Takaden, you will need to set the following environment variables in your `.env` file:

1. NAGAD\_MERCHANT\_ID: This is the merchant ID provided by Nagad when you register as a merchant.
2. NAGAD\_MERCHANT\_PHONE: This is the phone number associated with your Nagad merchant account.
3. NAGAD\_PUBLIC\_KEY: This is the Nagad **Payment Gateway Public Key** provided by Nagad after you register as a merchant.
4. NAGAD\_PRIVATE\_KEY: This is the Nagad **Merchant Private Key** provided by Nagad when you register as a merchant.

To set these environment variables in your `.env` file, add the following lines, replacing the placeholder values with your actual Nagad credentials:<br>

```
NAGAD_MERCHANT_ID=YOUR_NAGAD_MERCHANT_ID
NAGAD_MERCHANT_PHONE=YOUR_NAGAD_MERCHANT_PHONE
NAGAD_PUBLIC_KEY=YOUR_NAGAD_PAYMENT_GATEWAY_PUBLIC_KEY
NAGAD_PRIVATE_KEY=YOUR_NAGAD_MERCHANT_PRIVATE_KEY
```
