Skip to content

Commit

Permalink
change readme instructions and minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arif98741 committed Nov 8, 2021
1 parent 30a3a79 commit 7caa2d0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 8 deletions.
38 changes: 31 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,38 @@ $status = $nagad->payNow($nagad); //return array response


# Information:
1. Need sandbox details for sandbox testing
2. Need production details for production final
3. Need testing before going to live
4. Your server ip, domain and callback url should be whitelisted before running in production
4. If you have any question/query then email me arif98741@gmail.com
5. Do Code, Be Crazy

### Sandbox
1. Need sandbox details for sandbox testing. Check your email that you have got from nagad authority
2. Use sandbox details such as pgpublickey, privatekey, merchant-id for sandbox testing
3. You need to register a mobile number for sandbox testing. Contact with your account manager for doing this
4. You should test environment before going to live


### Live
1. Need production details for production final. You will get through email
2. Your server ip/domain should be whitelisted before running in production

Login to your nagad merchant panel

` https://auth.mynagad.com:10900/authentication-service-provider-1.0/login
`

**Step 1:**
In the Merchant Portal, Go to Merchant Integration Details under Merchant Management Menu.
You will get the Merchant ID which is your Merchant ID for Integration.

Then, Click on “Key Generate” and
Download the Merchant Private Key and Merchant Public Key.

**Step 2:**
Go to Merchant Integration under Merchant Management Menu.
Put your Call Back URL and Upload the Merchant Public Key which you have downloaded in Step 1. Add and Submit!

3. If you have any question/query then email me arif98741@gmail.com
4. Do Code, Be Crazy
<br>
##//If you find any kind of issues or bug you are highly encuraged to report. For reporting use issues.
### If you find any kind of issues or bug you are highly encouraged to report. For reporting use issues.
For can also push pull request. For pull request you should use dev branch. Because our master branch is serving at this moment for usage.


Expand Down
2 changes: 1 addition & 1 deletion src/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public static function serverDetails()
* @return mixed
* @since v1.3.1
*/
public function successResponse($response)
public static function successResponse($response)
{
// $response = 'https://phpdark.com/payment/success/id=4/?merchant=683002007104225&order_id=EBSXGJ5OYQCRO7D&payment_ref_id=MTEyOTAwMjY1NDMxNi42ODMwMDIwMDcxMDQyMjUuRUJTWEdKNU9ZUUNSTzdELmExODVkYWE4MDAyMDEyM2ZlYzRl&status=Success&status_code=00_0000_000&message=Successful%20Transaction&payment_dt=20201129002747&issuer_payment_ref=MTEyOTAwMjY1NDMxNi42ODMwMDIwMDcxMDQyMjUuRUJTWEdKNU9ZUUNSTzdELmExODVkYWE4MDAyMDEyM2ZlYzRl';
$parts = parse_url($response);
Expand Down

0 comments on commit 7caa2d0

Please sign in to comment.