Bỏ qua nội dung

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

  1. Truy cập website

    Vào https://web2m.com

  2. Đăng ký tài khoản

    • Click “Đăng ký”
    • Điền thông tin và xác minh
  3. 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
  4. Lấy API Key

    • Vào API Settings
    • Copy API KeySecret Key

Cấu hình plugin

File: plugins/SimpPay/banking/web2m-config.yml

# SimpPay @ 2026
# Made by typical.smc
enabled: true
# API Credentials từ Web2M
api-key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
secret-key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# Bank account info
account-number: "1234567890"
account-name: "NGUYEN VAN A"
bank-code: "VCB"
timeout: 300
interval: 5
min-amount: 10000
max-amount: 50000000

Chi 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 - Vietcombank
  • TCB - Techcombank
  • BIDV - BIDV
  • CTG - VietinBank
  • ACB - ACB
  • MB - MB Bank
  • VPB - VPBank

API Endpoints

Create Payment

POST https://api.web2m.com/v1/payment/create

Request:

{
"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/check

Response:

{
"status": "success",
"data": {
"order_id": "SP-1234567890",
"status": "PAID",
"amount": 50000
}
}

Testing

  1. Bật debug mode
  2. Reload plugin: /simppayadmin reload
  3. Test: /bank 50000
  4. Quét QR và chuyển khoản
  5. Kiểm tra coins được cộng

Troubleshooting

Invalid API Key

Bank account not found

Xem thêm

  • PayOS - Alternative gateway
  • Sepay - Webhook gateway