Skip to content

Commit 79d6815

Browse files
committed
update readme md
1 parent e1bfda5 commit 79d6815

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@
88
<img src="https://img.shields.io/packagist/stars/codeboxr/upay">
99
</p>
1010

11+
## Features
12+
1. [Create Payment/Take to Payment Page](https://github.com/codeboxrcodehub/upay#1-create-payment)
13+
2. [Query Payment/Payment Details](https://github.com/codeboxrcodehub/upay#2-query-payment)
1114

1215
## Requirements
1316

14-
- PHP >=7.2
17+
- PHP >=7.4
1518
- Laravel >= 6
1619

1720
## Installation
@@ -21,13 +24,16 @@ composer require codeboxr/upay
2124
```
2225

2326
### vendor publish (config)
27+
2428
```bash
2529
php artisan vendor:publish --provider="Codeboxr\Upay\UpayServiceProvider"
2630
```
2731

2832
After publish config file setup your credential. you can see this in your config directory upay.php file
33+
2934
```
3035
"sandbox" => env("UPAY_SANDBOX", false), // for sandbox use true
36+
"server_ip" => env("UPAY_SERVER_IP", ""),
3137
"merchant_id" => env("UPAY_MERCHANT_ID", ""),
3238
"merchant_key" => env("UPAY_MERCHANT_KEY", ""),
3339
"merchant_code" => env("UPAY_MERCHANT_CODE", ""),
@@ -38,6 +44,20 @@ After publish config file setup your credential. you can see this in your config
3844
"redirect_url" => env("UPAY_CALLBACK_URL", "")
3945
```
4046

47+
### Set .env configuration
48+
49+
```
50+
UPAY_SANDBOX=true // for production use false
51+
UPAY_SERVER_IP="" // uPay only support IPV4
52+
UPAY_MERCHANT_ID=""
53+
UPAY_MERCHANT_KEY=""
54+
UPAY_MERCHANT_CODE=""
55+
UPAY_MERCHANT_NAME=""
56+
UPAY_MERCHANT_MOBILE=""
57+
UPAY_MERCHANT_CITY=""
58+
UPAY_CALLBACK_URL=""
59+
```
60+
4161
## Usage
4262

4363
### 1. Create Payment
@@ -48,11 +68,13 @@ use Codeboxr\Upay\Facade\Payment;
4868
return Payment::executePayment($amount, $invoiceId, $txnId, $date);
4969
5070
```
71+
5172
### Example
5273

5374
```
5475
return Payment::executePayment(10, 'CBX10101', '10127373', '2022-08-26');
5576
```
77+
5678
### 2. Query Payment
5779

5880
```
@@ -61,6 +83,8 @@ use Codeboxr\Upay\Facade\Payment;
6183
Payment::queryPayment($invoiceId); // Invoice ID
6284
```
6385

86+
<span style="color: #70b7cd">Note: uPay only support IPV4</span>
87+
6488
## Contributing
6589

6690
Contributions to the uPay package are welcome. Please note the following guidelines before submitting your pull request.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
],
1616
"minimum-stability": "dev",
1717
"require": {
18-
"php": "^7.2|^7.3|^8.0|^8.1",
19-
"illuminate/support": "~6|~7|~8"
18+
"php": "^7.4|^8.0|^8.1",
19+
"illuminate/support": "~6|~7|~8|~9"
2020
},
2121
"extra": {
2222
"laravel": {

0 commit comments

Comments
 (0)