---
description: Configuring Nagad payment gateway.
---

# Nagad

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:\


```
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
```
