Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5ed9396

Browse files
Updated docs [skip ci]
1 parent cfd9243 commit 5ed9396

File tree

2 files changed

+119
-2
lines changed

2 files changed

+119
-2
lines changed

‎README.md

Lines changed: 118 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<a href="https://packagist.org/packages/phpviet/laravel-omnipay"><img src="https://img.shields.io/packagist/v/phpviet/laravel-omnipay.svg?style=flat-square" alt="Latest version"></a>
99
<a href="https://travis-ci.org/phpviet/laravel-omnipay"><img src="https://img.shields.io/travis/phpviet/laravel-omnipay/master.svg?style=flat-square" alt="Build status"></a>
1010
<a href="https://scrutinizer-ci.com/g/phpviet/laravel-omnipay"><img src="https://img.shields.io/scrutinizer/g/phpviet/laravel-omnipay.svg?style=flat-square" alt="Quantity score"></a>
11-
<a href="https://styleci.io/repos/190297766"><img src="https://styleci.io/repos/190297766/shield?branch=master" alt="StyleCI"></a>
11+
<a href="https://styleci.io/repos/189053932"><img src="https://styleci.io/repos/189053932/shield?branch=master" alt="StyleCI"></a>
1212
<a href="https://packagist.org/packages/phpviet/laravel-omnipay"><img src="https://img.shields.io/packagist/dt/phpviet/laravel-omnipay.svg?style=flat-square" alt="Total download"></a>
1313
<a href="https://packagist.org/packages/phpviet/laravel-omnipay"><img src="https://img.shields.io/packagist/l/phpviet/laravel-omnipay.svg?style=flat-square" alt="License"></a>
1414
</p>
@@ -18,10 +18,127 @@
1818

1919
Laravel Omnipay hổ trợ tích hợp các cổng thanh toán trong nước dựa trên nền tảng [Omnipay League](https://github.com/thephpleague/omnipay).
2020

21+
Để nắm sơ lược về khái niệm và cách sử dụng các **Omnipay** gateways bạn hãy truy cập vào [đây](https://omnipay.thephpleague.com/)
22+
để kham khảo.
23+
24+
Các cổng thanh toán đang được hổ trợ tích hợp:
25+
26+
+ **[MoMo](https://momo.vn)**
27+
+ **[OnePay](https://onepay.vn)**
28+
+ **[VNPay](https://vnpay.vn)**
29+
+ **[VTCPay](https://vtcpay.vn)**
30+
2131
## Cài đặt
2232

2333
Cài đặt Laravel Omnipay thông qua [Composer](https://getcomposer.org):
2434

2535
```bash
2636
composer require phpviet/laravel-omnipay
2737
```
38+
39+
Sau khi cài đặt xong bạn cần phải publish config file để thiết lập thông số cho cổng thanh toán bạn cần tích hợp, publish thông qua câu lệnh:
40+
41+
```php
42+
php artisan vendor:publish --provider="PHPViet\Laravel\Omnipay\OmnipayServiceProvider" --tag="config"
43+
```
44+
45+
Nội dung file publish nằm trong thư mục `config/laravel-omnipay.php` của bạn như sau:
46+
47+
```php
48+
return [
49+
// Cấu hình cho các cổng thanh toán tại hệ thống của bạn, các cổng không xài có thể xóa cho gọn hoặc không điền.
50+
// Các thông số trên có được khi bạn đăng ký tích hợp.
51+
52+
'gateways' => [
53+
'MoMoAIO' => [
54+
'driver' => 'MoMo_AllInOne',
55+
'options' => [
56+
'accessKey' => '',
57+
'secretKey' => '',
58+
'partnerCode' => '',
59+
'testMode' => false,
60+
],
61+
],
62+
'MoMoQRCode' => [
63+
'driver' => 'MoMo_QRCode',
64+
'options' => [
65+
'accessKey' => '',
66+
'secretKey' => '',
67+
'partnerCode' => '',
68+
'testMode' => false,
69+
],
70+
],
71+
'MoMoAIA' => [
72+
'driver' => 'MoMo_AppInApp',
73+
'options' => [
74+
'accessKey' => '',
75+
'secretKey' => '',
76+
'partnerCode' => '',
77+
'publicKey' => '',
78+
'testMode' => false,
79+
],
80+
],
81+
'MoMoPOS' => [
82+
'driver' => 'MoMo_POS',
83+
'options' => [
84+
'accessKey' => '',
85+
'secretKey' => '',
86+
'partnerCode' => '',
87+
'publicKey' => '',
88+
'testMode' => false,
89+
],
90+
],
91+
'OnePayDomestic' => [
92+
'driver' => 'OnePay_Domestic',
93+
'options' => [
94+
'vpcMerchant' => '',
95+
'vpcAccessCode' => '',
96+
'vpcUser' => '',
97+
'vpcPassword' => '',
98+
'vpcHashKey' => '',
99+
'testMode' => false,
100+
],
101+
],
102+
'OnePayInternational' => [
103+
'driver' => 'OnePay_International',
104+
'options' => [
105+
'vpcMerchant' => '',
106+
'vpcAccessCode' => '',
107+
'vpcUser' => '',
108+
'vpcPassword' => '',
109+
'vpcHashKey' => '',
110+
'testMode' => false,
111+
],
112+
],
113+
'VTCPay' => [
114+
'driver' => 'VTCPay',
115+
'options' => [
116+
'websiteId' => '',
117+
'securityCode' => '',
118+
'testMode' => false,
119+
],
120+
],
121+
'VNPay' => [
122+
'driver' => 'VNPay',
123+
'options' => [
124+
'vnpTmnCode' => '',
125+
'vnpHashSecret' => '',
126+
'testMode' => false,
127+
],
128+
],
129+
],
130+
];
131+
```
132+
## Cách sử dụng
133+
134+
+ [Cổng thanh toán MoMo](/docs/MoMo.md)
135+
+ [Cổng thanh toán OnePay](/docs/OnePay.md)
136+
+ [Cổng thanh toán VNPay](/docs/VNPay.md)
137+
+ [Cổng thanh toán VTCPay](/docs/VTCPay.md)
138+
139+
## Dành cho nhà phát triển
140+
141+
Nếu như bạn cảm thấy thư viện chúng tôi còn thiếu sót hoặc sai sót và bạn muốn đóng góp để phát triển chung,
142+
chúng tôi rất hoan nghênh! Hãy tạo các `issue` để đóng góp ý tưởng cho phiên bản kế tiếp hoặc tạo `PR`
143+
để đóng góp phần thiếu sót hoặc sai sót. Riêng đối với các lỗi liên quan đến bảo mật thì phiền bạn gửi email đến
144+
vuongxuongminh@gmail.com thay vì tạo issue. Cảm ơn!

‎config/laravel-omnipay.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

33
return [
4-
54
// Cấu hình cho các cổng thanh toán tại hệ thống của bạn, các cổng không xài có thể xóa cho gọn hoặc không điền.
5+
// Các thông số trên có được khi bạn đăng ký tích hợp.
66

77
'gateways' => [
88
'MoMoAIO' => [

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /