Skip to content

Logo

Nagad

We invite you to reimagine and leapfrog into the future of financial services alongside us.

Website: nagad.com.bd

Set up Account Provider account

Step 1: Create Provider account

To create an account send connection request at the nagad.com.bd/contact or contact manager directly. Submit the required documents to verify your account and gain access.

Step 2: Get required credentials

Credentials that have to be issued:

  • nagad__merchant_id → MID
  • nagad__gateway_public_key → Public key
  • nagad__merchant_private_key → Private Secret key
  • nagad__test_mode → true/false

Connect Provider Account

Step 1. Connect Provider account at the Corefy Dashboard

Press Connect at Nagad Provider Overview page in 'New connection' section and choose Provider account option to open Connection form.

Connect

Enter credentials:

  • ID merchant
  • Gateway public key
  • Merchant private key
  • Test mode

Success

You have connected Nagad Provider account!

API examples:

Minimum data set to create a payment invoices for nagad_wallet_bdt_hpp service

PAYMENT

POST /api/commerce/payment-invoices HTTP/1.0
{
  "data":{
    "type":"payment-invoice",
    "attributes":{
      "service":"nagad_wallet_bdt_hpp",
      "commerce_account":"Hello World",
      "currency":"BDT",
      "amount":400,
      "flow":"charge",
      "gateway_options":{
        "cardgate":{
          "tokenize":""
        }
      },
      "test_mode":false,
      "options":{
        "allow_partially":false,
        "bypass_hpp":false,
        "send_operation_context_on_return":false
      },
      "reference_id":"a7d4573a-1621-443a-b4ee-ba1cecebcdd3",
      "service_fields":[
      ]
    }
  }
}

Maximum data set to create a payment invoices for nagad_wallet_bdt_hpp service

PAYMENT

POST /api/commerce/payment-invoices HTTP/1.0
{
  "data":{
    "type":"payment-invoice",
    "attributes":{
      "service":"nagad_wallet_bdt_hpp",
      "commerce_account":"Hello World",
      "currency":"BDT",
      "amount":400,
      "flow":"charge",
      "gateway_options":{
        "cardgate":{
          "tokenize":""
        }
      },
      "customer":{
        "reference_id":"45872ba3-a15b-42a4-ba30-1bc05d6e0dc2",
        "metadata":{
          "ip":"127.0.0.1"
        }
      },
      "test_mode":false,
      "options":{
        "allow_partially":false,
        "bypass_hpp":false,
        "send_operation_context_on_return":false
      },
      "reference_id":"a7d4573a-1621-443a-b4ee-ba1cecebcdd3",
      "service_fields":[
      ]
    }
  }
}

Question

"Still looking for help connecting your Nagad account?" Please contact our support team!