Skip to content

Commit

Permalink
live server tips
Browse files Browse the repository at this point in the history
  • Loading branch information
Mostafa Kamal authored Apr 10, 2021
1 parent 659ddc8 commit 203e6ea
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,6 @@ if ($verify->status === 'Aborted') {
dd($verify);

```
# get support id (live project)

~ create a route and paste the code for temporary use.which return support ticket id.

```php
Route::get('sid',function(){
$sid = NagadPayment::tnxID(1)
->amount(100)
->getSupportID();
return $sid;
})
```



# Note:

Expand All @@ -112,6 +98,25 @@ Route::get('sid',function(){
* Contact with Nagad and provide your live server ip address.
* provide support id ($sid) the nagad office

# Live mode tips

`Sandbox works fine but when you deploy your project on server you can't get any response and don't work payment system`

## How to enable nagad gateway on server

* contact with nagad provide your ip and support token which you get from temporary route get-support-id . nagad will be white listed your ip and approve your merchant. now your nagad gateway work properly on server.

~ temporary route

```php
Route::get('get-support-id',function(){
$sid = NagadPayment::tnxID(1)
->amount(100)
->getSupportID();
return $sid;
})
```

# Demo

* [Lara Nagad Demo](https://github.com/code4mk/lara-nagad-demo)
Expand Down

0 comments on commit 203e6ea

Please sign in to comment.