WELIFE Docs Swagger Admin Web

OWNER MoMo sandbox — refresh 2026-08-14

Domain: D-PAY · WP: WP-PAY-LIVE-01 (MoMo slice) Surfaces: API · VPS Agent: re-smoke POST /payments/init { provider: MOMO } — no secrets printed

VPS env (presence)

Key Value
MOMO_ENV sandbox
MOMO_ENDPOINT https://test-payment.momo.vn/v2/gateway/api/create
Partner / access / secret SET (len 16 / 16 / 32)
IPN / return https://api.minhtien.cloud/api/v1/payments/momo/ipn · .../return

Smoke

Step Result
providers momo=configured · preferred=VNPAY
POST /payments/init MOMO 400 · "Cấu hình doanh nghiệp không chính xác hoặc tài khoản không hoạt động."
VNPay (control) 201 sandbox still PASS

OWNER action

  1. Đăng nhập MoMo for Business / sandbox portal.
  2. Kích hoạt / sửa merchant sandbox (partner code khớp VPS).
  3. Xác nhận IPN URL public đúng như trên.
  4. Paste key mới vào VPS api/.env (nếu đổi) → recreate welife-api.
  5. Nhắn agent MoMo ready → agent chạy lại scripts/smoke-pay-vps.sh.

MoMo không block go-live: app mặc định VNPay.