Payment Web API
  • Payment API Solutions Map
  • API Common Specifications
  • Payment Status Query API (Common)
  • Refund & Refund Query API (Common)
  • Query Exchange Rate API (Common)
  • Payment Process Flow with Mobile App (Common)
  • API for PC Browser with Wechat Pay/Alipay/UnionPay
    • Payment Request with WeChat Pay
    • Payment Request with Alipay
    • Payment Request with UnionPay-SecurePay
      • Query Transaction with UnionPay-SecurePay
  • API for WeChat Browser with WeChat Pay
    • Payment Request API
    • Query Transaction with WeChat Pay
  • API for WeChat Mini-Program with WeChat Pay
    • Payment Request API
    • Query Transaction API
  • API for Mobile Browser with Alipay
    • Payment Request API
    • Query Transaction API
  • API for Mobile Browser with WeChat
    • Payment Request API
    • Query Transaction API
  • API for Mobile with UnionPay-SecurePay
    • Payment Request API
    • Query Transaction API
    • Code Samples(Web App, Android, iOS)
  • API for Mobile App with WeChat Pay
    • Payment Request API
    • Query Transaction API
  • API for Mobile App with Alipay
    • Payment Request with OTT Pay SDK
    • Implementation with Android App SDK
    • Implementation with iOS App SDK
  • API for In-Store Channels(via Merchant POS/Terminal)
    • API Process Flows
    • Payment Request API
    • Query Transaction API
  • API for Elavon Converge-Hosted payment
    • Payment Request API
    • Query Transaction API
  • API for Global payments PORTICO Ecomm Payment
    • Payment Request API
    • Query Transaction API
  • API for Checkout payment
    • Payment Request API
    • Query Transaction API
  • Appendix A (Data Encryption / Decryption)
  • Appendix B (Response Code)
  • FAQ
  • > Back to Top Page
Powered by GitBook
On this page
  • Payment Request API Link
  • API Link Data Format
  • Prefixed URL
  • Request Parameters(need to be encoded)
  • Payment Result URL Link
  • Redirect URL Link Format(to be called from OTT API server)
  • Redirect URL Parameters (need be URL decoded)

Was this helpful?

  1. API for WeChat Browser with WeChat Pay

Payment Request API

For easy implementation to call payment request API, this API protocol is using request parameter to send transaction data and Return Redirect URL.

PreviousAPI for WeChat Browser with WeChat PayNextQuery Transaction with WeChat Pay

Last updated 2 years ago

Was this helpful?

Payment Request API Link

The link for payment button on merchant's web page to allow customer to activated WeChat Pay Wallet payment process.

Once WeChat Pay payment process finished, web browser will be redirected to the following newURL defined by the merchant according to its own business needs with receiving Alipay payment result.

API Link Data Format

http://qrpay.ottpay.com/h5Pay?merCode=××××&orderld=××××&amount=××&newURL=××

Prefixed URL

http://qrpay.ottpay.com/h5Pay?  

Request Parameters(need to be encoded)

merCode

merCode is the merchant payment key. Once a merchant accept OTT Pay WeChat Official Account service , OTTPay operation team will send this code through welcome email.

orderId

orderId is a customized order ID provided by merchant. Once an order is placed, merchant need to send this order ID.

amount

Amount of the order. Merchant need to send the amount to OTT server.

newURL should be the web page URL for merchants to present the order processing result. It is set by merchant website URL to be called from OTTPAY API with payment process result.

http://qrpay.ottpay.com/h5Pay?merCode=e5085aba653acef2d78a2efbd66ed707&orderId=2020041515603O145O4357&operId=0000020156&amount=1&newURL=https%3A%2F%2Fezshops.ott.ca%2Fmobile%2FwxpayOTTPAY_h5_callback.php

After payment process finished, the result will be sent back by redirecting to the following payment result Web Page URL link.

newURL?amount=XXXX&orderID=XXXX&tranID=XXXX&status=XXXX

newURL is a customized page for pay order process result receiving from OTTPAY and present to consumers who made the order payment.

amount is the request amount of the order from the merchant. Number, 1.00 for 1.00 dollar.

orderID is the requested order ID, from the merchant's request.

tranID is the order number returned from WeChat Pay.

status shows the result of the payment. Payment succeed returns " success", payment failed return "fail".

https://ezshops.ott.ca/mobile/wxpayOTTPAY_h5_callback.php?amount=0.01&orderId=2020041515603O145O4357&tranId=1586976258203514&status=success

Note: The number is based on cents, which means 100 for 1.00 dollar.

newURL

Payment Link Request Example (after parameter encoding)

Payment Result URL Link

Redirect URL Link Format(to be called from OTT API server)

Redirect URL Parameters (need be URL decoded)

newURL

amount

orderID

tranID

Status

Redirect URL Link Example

✅
👉
☑️
☑️
☑️
*️
*️
*️
👉
*️
☑️
✅
☑️
☑️
*️
*️
*️
*️
*️
☑️