Skip to content

Commit be99fb8

Browse files
Updated docs [skip ci]
1 parent 39b5d6a commit be99fb8

File tree

4 files changed

+22
-14
lines changed

4 files changed

+22
-14
lines changed

docs/AllInOne.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ All In One Gateway
1010
use Omnipay\Omnipay;
1111

1212
$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+
]);
1618
```
1719

1820
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.

docs/AppInApp.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ App In App Gateway
1010
use Omnipay\Omnipay;
1111

1212
$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+
]);
1719
```
1820

1921
### Tạo yêu cầu thanh toán:

docs/POS.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ POS Gateway
1010
use Omnipay\Omnipay;
1111

1212
$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+
]);
1719
```
1820

1921
### Tạo yêu cầu thanh toán:

docs/QRCode.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ QRCode Gateway
1010
use Omnipay\Omnipay;
1111

1212
$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+
]);
1618
```
1719

1820
### Kiểm tra thông tin `notifyUrl` do MoMo gửi sang:

0 commit comments

Comments
 (0)