{"repo":"fdhhhdjd/Class-Payment-VNPAY","free":true,"listed":false,"github":"https://github.com/fdhhhdjd/Class-Payment-VNPAY","clone":"git clone https://github.com/fdhhhdjd/Class-Payment-VNPAY.git","description":"🏦 This is full source code payment to VNPAY","language":"JavaScript","stars":57,"topics":["html","js","nodejs","payment-gateway","vnpay"],"license":null,"category":"auth-billing-email","readme_excerpt":"# Hướng dẫn chạy demo thanh toán VNPay bằng NodeJS. 0. Đây là sản phẩm 1. Cài đặt NodeJS Tải và cài đặt NodeJS tại: https://nodejs.org/en 2. Mở Command Prompt (cmd) và chuyển tới thư mục code demo Ví dụ: cd vnpay nodejs 3. Cài đặt module cần thiết npm install 4. Cấu hình thông tin VNPay Mở file: vnpay nodejs/config/default.json Thay các giá trị sau bằng thông tin của bạn (do VNPay cung cấp): - vnp TmnCode - vnp HashSecret - vnp Url (URL thanh toán) - vnp Api (URL kiểm tra giao dịch) - vnp ReturnUrl (URL frontend nhận kết quả) - vnp IpnUrl (URL backend nhận IPN - thông báo server-to-server) Nếu chưa có các thông tin này, vui lòng liên hệ với VNPay. 5. Chạy ứng dụng npm start Ứng dụng sẽ chạy mặc định ở port 8888 (hoặc theo cấu hình trong code). 6. Truy cập giao diện demo Mở trình duyệt và truy cập: http://localhost:8888/order/create payment url Trang này sẽ tạo URL thanh toán và chuyển hướng sang VNPay. 7. Sau khi thanh toán - VNPay sẽ redirect người dùng về vnp ReturnUrl (frontend) - VNPay sẽ gọi vnp IpnUrl (backend) để xác nhận giao dịch (server-to-server, quan trọng để tránh giả mạo) 8. Tra cứu giao dịch trên dashboard VNPay URL: https://sandbox.vnpayment.vn/merchantv2/Transaction/PaymentSearch.htm 9. Tạo tài khoản VNPay Sandbox URL: https://sandbox.vnpayment.vn/devreg 10. Tài khoản test và tài liệu mẫu URL: https://sandbox.vnpayment.vn/apis/vnpay-demo/ 11. Tài liệu API chính thức URL: https://sandbox.vnpayment.vn/apis/ 12. Minh hoạ 13. Luồng đi Giải thích Frontend → Backen","default_branch":null,"files":null,"tree":[],"storefront":"/r/fdhhhdjd","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fdhhhdjd/Class-Payment-VNPAY/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}