@@ -10,11 +10,13 @@ International Gateway
1010use 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
2022Gateway 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