Skip to content

Commit 1c12332

Browse files
Updated docs [skip ci]
1 parent a2b465d commit 1c12332

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

docs/Domestic.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ Domestic Gateway
1010
use Omnipay\Omnipay;
1111

1212
$gateway = Omnipay::create('OnePay_Domestic');
13-
$gateway->setVpcMerchant('Do OnePay cấp');
14-
$gateway->setVpcAccessCode('Do OnePay cấp');
15-
$gateway->setVpcUser('Do OnePay cấp');
16-
$gateway->setVpcPassword('Do OnePay cấp');
17-
$gateway->setVpcHashKey('Do OnePay cấp');
13+
$gateway->initialize([
14+
'vpc_Merchant' => 'Do OnePay cấp',
15+
'vpc_AccessCode' => 'Do OnePay cấp',
16+
'vpc_User' => 'Do OnePay cấp',
17+
'vpc_Password' => 'Do OnePay cấp',
18+
'vpc_HashKey' => 'Do OnePay cấp',
19+
]);
1820
```
1921

2022
Gateway khởi tạo ở trên dùng để tạo các yêu cầu xử lý đến OnePay hoặc dùng để nhận yêu cầu do OnePay gửi đến.
@@ -23,9 +25,9 @@ Gateway khởi tạo ở trên dùng để tạo các yêu cầu xử lý đến
2325

2426
```php
2527
$response = $gateway->purchase([
28+
'AgainLink' => 'https://github.com/phpviet',
2629
'vpc_MerchTxnRef' => microtime(false),
2730
'vpc_ReturnURL' => 'https://github.com/phpviet',
28-
'againLink' => 'https://github.com/phpviet',
2931
'vpc_TicketNo' => '127.0.0.1',
3032
'vpc_Amount' => '200000',
3133
'vpc_OrderInfo' => 456,

docs/International.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ International Gateway
1010
use Omnipay\Omnipay;
1111

1212
$gateway = Omnipay::create('OnePay_International');
13-
$gateway->setVpcMerchant('Do OnePay cấp');
14-
$gateway->setVpcAccessCode('Do OnePay cấp');
15-
$gateway->setVpcUser('Do OnePay cấp');
16-
$gateway->setVpcPassword('Do OnePay cấp');
17-
$gateway->setVpcHashKey('Do OnePay cấp');
13+
$gateway->initialize([
14+
'vpc_Merchant' => 'Do OnePay cấp',
15+
'vpc_AccessCode' => 'Do OnePay cấp',
16+
'vpc_User' => 'Do OnePay cấp',
17+
'vpc_Password' => 'Do OnePay cấp',
18+
'vpc_HashKey' => 'Do OnePay cấp',
19+
]);
1820
```
1921

2022
Gateway khởi tạo ở trên dùng để tạo các yêu cầu xử lý đến OnePay hoặc dùng để nhận yêu cầu do OnePay gửi đến.
@@ -23,9 +25,9 @@ Gateway khởi tạo ở trên dùng để tạo các yêu cầu xử lý đến
2325

2426
```php
2527
$response = $gateway->purchase([
28+
'AgainLink' => 'https://github.com/phpviet',
2629
'vpc_MerchTxnRef' => microtime(false),
2730
'vpc_ReturnURL' => 'https://github.com/phpviet',
28-
'againLink' => 'https://github.com/phpviet',
2931
'vpc_TicketNo' => '127.0.0.1',
3032
'vpc_Amount' => '200000',
3133
'vpc_OrderInfo' => 456,

0 commit comments

Comments
 (0)