Payment Order Create
POST
{{HOST}}/api/v2/payment/order/create
Request
Body Params application/json
appId
string
appid
merOrderNo
string
Merchant order number
currency
string
Amount in Currency
amount
string
Order amount
returnUrl
string
Synchronized notification address
notifyUrl
string
asynchronous notification address
attach
string
Additional Info
sign
string
sign
extra
object
required
name
string
required
email
string
required
mobile
string
required
Example
{
"appId": "8d72e27d3c6126abc1c542a9bfc3f271",
"merOrderNo": "s1711871776008",
"notifyUrl": "http://localhost:8888/notify",
"sign": "44c1112502c204bef55e818e499dd795061a120bea1457c0522b8f50f58f987a",
"currency": "INR",
"amount": "200",
"extra": {
"name": "akin",
"email": "akin@gmail.com",
"mobile": "9937239312"
},
"attach": "发起代收"
}
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 -g --request POST '{{HOST}}/api/v2/payment/order/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"appId": "8d72e27d3c6126abc1c542a9bfc3f271",
"merOrderNo": "s1711871776008",
"notifyUrl": "http://localhost:8888/notify",
"sign": "44c1112502c204bef55e818e499dd795061a120bea1457c0522b8f50f58f987a",
"currency": "INR",
"amount": "200",
"extra": {
"name": "akin",
"email": "akin@gmail.com",
"mobile": "9937239312"
},
"attach": "发起代收"
}'
Responses
🟢200success
application/json
Body
code
integer
Response Status Code
data
object
Return Data
orderStatus
integer
Order status
success: 2,3
failed: -1,-2
refunded: -3
orderNo
string
Trade Order Number
merOrderNo
string
Merchant order number
amount
number
Order amount
currency
string
Amount in Currency
createTime
integer
required
updateTime
integer
required
message
string
Descriptive Information
params
object
required
sign
string
sign
msg
string
Return to text description
Example
{
"code": 0,
"msg": "success",
"data": {
"orderStatus": 1,
"orderNo": "b7c9bd812dc846a08a0263a96a0c7af1",
"merOrderNo": "s1711871776008",
"amount": 200,
"currency": "INR",
"attach": "attach",
"extra": {
"name": "akin",
"email": "akin@gmail.com",
"mobile": "9937239312"
},
"createTime": 1711877080129,
"updateTime": 1711877080129,
"sign": "adba0b1ec07ebfca94689ca43dcbfce2f3818b13f878e76ce9341331a9071f11",
"params": {
"paymentLink": "https://h5.simplypay.vip/payment/b7c9bd812dc846a08a0263a96a0c7af1/",
"deepLink": "upi://pay?ver=01&mode=15&am=200.00&mam=200.00&cu=INR&pa=silicon.appxperts@timecosmos&pn=APPXPERTSPRIVATELIMITED&mc=5816&tr=SILICON1723304473EWFV134314&tn=bd4485c3fbb04cda8af373a19481700d&mid=SILIC4827&msid=APPX-6155&mtid=SILIC-4827"
}
}
}
Modified at 2024-10-31 03:35:22