diff --git a/readme.md b/readme.md index cbba42f..7bdb28c 100644 --- a/readme.md +++ b/readme.md @@ -1,13 +1,14 @@ -Example NagadApi Payment Request -Setting and attaching in your project you should run -
-                composer require arif98741/nagad-api
-
+For using nagad-api in your application just follow below code. +1. Copy all your data from .env.example to .env and change necessary details. + NAGAD_APP_ENV = development // dev: development, live: production + NAGAD_APP_LOG = 1 //it will generate error log + NAGAD_APP_ACCOUNT = //get from nagad. it is usually mobile no + NAGAD_APP_MERCHANTID = //get from nagad + NAGAD_APP_MERCHANT_PRIVATE_KEY = //get from nagad + NAGAD_APP_MERCHANT_PG_PUBLIC_KEY = //get from nagad + NAGAD_APP_TIMEZONE = Asia/Dhaka
-
- 100,
-    'invoice' => Helper::generateFakeInvoice('', 15, true),
+    'invoice' => Helper::generateFakeInvoice(15, true),
     'merchantCallback' => 'https://phpdark.com/payment/success/id=4',
 ]);
 
 $request = new RequestHandler($nagad);
-$respnose = $request->fire();
+
+$response = $request->fire();
 echo '
';
-print_r($respnose);
+print_r($response);
 echo '
'; exit;
\ No newline at end of file