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
1010use 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
1820Gateway 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
1010use 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:
Original file line number Diff line number Diff line change @@ -10,10 +10,12 @@ POS Gateway
1010use 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:
Original file line number Diff line number Diff line change @@ -10,9 +10,11 @@ QRCode Gateway
1010use 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:
You can’t perform that action at this time.
0 commit comments