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
2529php artisan vendor:publish --provider=" Codeboxr\Upay\UpayServiceProvider"
2630```
2731
2832After 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;
4868return Payment::executePayment($amount, $invoiceId, $txnId, $date);
4969
5070```
71+
5172### Example
5273
5374```
5475return 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;
6183Payment::queryPayment($invoiceId); // Invoice ID
6284```
6385
86+ <span style =" color : #70b7cd " >Note: uPay only support IPV4</span >
87+
6488## Contributing
6589
6690Contributions to the uPay package are welcome. Please note the following guidelines before submitting your pull request.
0 commit comments