API tạo link thanh toán

GET https://payment.vzpay.net/pay/create

Query Parameters

{
    "errorCode": 0,
    "statusCode": 200,
    "ipAddress": null,
    "transactionId": "PM20231121235110544",
    "content": "https://payment.vzpay.net/pay/QR?token=b78b4c5b513ceedec995ab1299a25e8d",
    "message": "Tạo đơn hàng thành công",
    "responseTime": 0
}
  • Nếu statusCode=200 thì kết quả tạo link thanh toán thành công

  • Còn lại nếu statusCode=400 thì kết quả tạo link thất bại. Tra cứu mã lỗi errorCode & message tại đây.

Ví dụ

curl --location 'https://payment.vzpay.net/pay/create?paymentCode=S202311028Fqybe&referenceId=17005854705171435&ipAddress=0%3A0%3A0%3A0%3A1&clientId=fea9136a-ca79-4902-b6eb-76278bace8c2&expireDate=20231122000610&createDate=20231121235110&successRedirectUrl=https%3A%2F%2Fwww.youtube.com&failureRedirectUrl=https%3A%2F%2Fsandbox.vnpayment.vn%2Fapis%2Fdocs%2Fthanh-toan-pay%2Fpay.html&amount=15&currency=VND&orderInfo=Thanh%20toan%20don%20hang&signature=9af35e0d3ba9b7402dc1f744096c450e94f7a10048e69c39352d20b1edba1bea92cfa38ceb37703befb262a2b92be70ae7b74cf177b818e328ef675360f1cbb2&bankCode=STB'