OnlinePay API
  1. API Reference
OnlinePay API
  • Introduction
  • How to start
  • Country Code
  • Currency Code
  • Error Code
  • API Reference
    • Credit Card
      POST
    • Alipay
      POST
    • Union Pay
      POST
    • WeChat
      POST
    • Cryptocurrency Payment
      POST
    • OnlinePay CheckOut
      POST
    • notifyUrl
      POST
    • Refund
      POST
    • Query
      POST
    • QueryOrderList
      POST
  1. API Reference

notifyUrl

POST
Address of notifyUrl parameter passed when payment is made
If the notifyurl parameter is passed, onlinepay will notify the address of the payment result

Request

Query Params
tradeNo
string 
required
The flow number generated after each order payment (unique marker)
Example:
2201111806024151
merOrderNo
string 
required
Corresponds to the [OrderNo] parameter of the order submission parameter
Example:
123456789
code
string 
required
Payment result (0: payment successful 1: payment failed)
Example:
0
message
string 
required
Description of Payment Result
Example:
SUCCESS

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://prod-cn.your-api-server.comAddress of notifyUrl parameter passed when payment is made?tradeNo=2201111806024151&merOrderNo=123456789&code=0&message=SUCCESS'

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2023-08-04 10:04:55
Previous
OnlinePay CheckOut
Next
Refund
Built with