Web2M
Web2M là cổng thanh toán QR banking với API ổn định và nhiều tính năng.
Đăng ký tài khoản
-
Truy cập website
-
Đăng ký tài khoản
- Click “Đăng ký”
- Điền thông tin và xác minh
-
Liên kết ngân hàng
- Thêm tài khoản ngân hàng
- Xác minh bằng chuyển khoản test
-
Lấy API Key
- Vào API Settings
- Copy API Key và Secret Key
Cấu hình plugin
File: plugins/SimpPay/banking/web2m-config.yml
# SimpPay @ 2026# Made by typical.smc
enabled: true
# API Credentials từ Web2Mapi-key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"secret-key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# Bank account infoaccount-number: "1234567890"account-name: "NGUYEN VAN A"bank-code: "VCB"
timeout: 300interval: 5
min-amount: 10000max-amount: 50000000Chi tiết cấu hình
api-key / secret-key
- Kiểu:
string - Bắt buộc: Có
- Mô tả: API credentials từ Web2M dashboard
account-number / account-name / bank-code
- Kiểu:
string - Bắt buộc: Có
- Mô tả: Thông tin tài khoản ngân hàng nhận tiền
Bank codes phổ biến:
VCB- VietcombankTCB- TechcombankBIDV- BIDVCTG- VietinBankACB- ACBMB- MB BankVPB- VPBank
API Endpoints
Create Payment
POST https://api.web2m.com/v1/payment/createRequest:
{ "api_key": "xxx", "amount": 50000, "description": "Nap tien MC - player123", "order_id": "SP-1234567890", "bank_code": "VCB", "account_number": "1234567890"}Response:
{ "status": "success", "data": { "order_id": "SP-1234567890", "qr_code": "https://api.web2m.com/qr/abc123.png", "payment_url": "https://web2m.com/pay/abc123" }}Check Status
POST https://api.web2m.com/v1/payment/checkResponse:
{ "status": "success", "data": { "order_id": "SP-1234567890", "status": "PAID", "amount": 50000 }}Testing
- Bật debug mode
- Reload plugin:
/simppayadmin reload - Test:
/bank 50000 - Quét QR và chuyển khoản
- Kiểm tra coins được cộng