File tree Expand file tree Collapse file tree 4 files changed +22
-14
lines changed Expand file tree Collapse file tree 4 files changed +22
-14
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,11 @@ All In One Gateway
10
10
use Omnipay\Omnipay;
11
11
12
12
$gateway = Omnipay::create('MoMo_AllInOne');
13
- $gateway->setAccessKey('Do MoMo cấp.');
14
- $gateway->setPartnerCode('Do MoMo cấp.');
15
- $gateway->setSecretKey('Do MoMo cấp.');
13
+ $gateway->initialize([
14
+ 'accessKey' => 'Do MoMo cấp',
15
+ 'partnerCode' => 'Do MoMo cấp',
16
+ 'secretKey' => 'Do MoMo cấp',
17
+ ]);
16
18
```
17
19
18
20
Gateway khởi tạo ở trên dùng để tạo các yêu cầu xử lý đến MoMo hoặc dùng để nhận yêu cầu do MoMo gửi đến.
Original file line number Diff line number Diff line change @@ -10,10 +10,12 @@ App In App Gateway
10
10
use Omnipay\Omnipay;
11
11
12
12
$gateway = Omnipay::create('MoMo_AppInApp');
13
- $gateway->setPublicKey('Do MoMo cấp.');
14
- $gateway->setAccessKey('Do MoMo cấp.');
15
- $gateway->setPartnerCode('Do MoMo cấp.');
16
- $gateway->setSecretKey('Do MoMo cấp.');
13
+ $gateway->initialize([
14
+ 'accessKey' => 'Do MoMo cấp',
15
+ 'partnerCode' => 'Do MoMo cấp',
16
+ 'secretKey' => 'Do MoMo cấp',
17
+ 'publicKey' => 'Do MoMo cấp',
18
+ ]);
17
19
```
18
20
19
21
### Tạo yêu cầu thanh toán:
Original file line number Diff line number Diff line change @@ -10,10 +10,12 @@ POS Gateway
10
10
use Omnipay\Omnipay;
11
11
12
12
$gateway = Omnipay::create('MoMo_POS');
13
- $gateway->setPublicKey('Do MoMo cấp.');
14
- $gateway->setAccessKey('Do MoMo cấp.');
15
- $gateway->setPartnerCode('Do MoMo cấp.');
16
- $gateway->setSecretKey('Do MoMo cấp.');
13
+ $gateway->initialize([
14
+ 'accessKey' => 'Do MoMo cấp',
15
+ 'partnerCode' => 'Do MoMo cấp',
16
+ 'secretKey' => 'Do MoMo cấp',
17
+ 'publicKey' => 'Do MoMo cấp',
18
+ ]);
17
19
```
18
20
19
21
### Tạo yêu cầu thanh toán:
Original file line number Diff line number Diff line change @@ -10,9 +10,11 @@ QRCode Gateway
10
10
use Omnipay\Omnipay;
11
11
12
12
$gateway = Omnipay::create('MoMo_QRCode');
13
- $gateway->setAccessKey('Do MoMo cấp.');
14
- $gateway->setPartnerCode('Do MoMo cấp.');
15
- $gateway->setSecretKey('Do MoMo cấp.');
13
+ $gateway->initialize([
14
+ 'accessKey' => 'Do MoMo cấp',
15
+ 'partnerCode' => 'Do MoMo cấp',
16
+ 'secretKey' => 'Do MoMo cấp',
17
+ ]);
16
18
```
17
19
18
20
### Kiểm tra thông tin ` notifyUrl ` do MoMo gửi sang:
You can’t perform that action at this time.
0 commit comments