17. Make a payment
This API allows you to pre-create an order using the order creation API and then pay for it using
number
orreference_number
.You can also create an order and pay for it directly by passing the
order
object.
When you use number
or reference_number
, order
doesn't need to be passed.
Header Parameters
random 16 bytes alphanumerics
Please follow the OpenAPI authentication section
Please follow the OpenAPI authentication section
Request Body
- Array [
- ]
order object
Default value: 0.00
The amount you charge your customers
Default value: 0.00
The amount you charge your customers
currency code, eg HKD
your side unique number
If this date is exceeded, the order will be automatically voided
Note information for the order, needs to be less than 255 characters
line_items object[]
If you wish to display additional line item information
UUID V4
Possible values: [RearTips
, Charge
]
just for purchaseable_type = Listing
Product Name
The address of the backend webhook
The redirection address after the payment link is completed
Default value: false
payment object required
payment_token object
if you already has card token
Possible values: [cit
, mit
]
alipay object
merchant_presented_qr_code object
in_web object required
in_app object required
wechatpay object
merchant_presented_qr_code object
in_web object
official_account object
in_app object
apple_pay object
credit_card object
Possible values: [sales
, preauth
]
3ds object required
fps object
merchant_presented_qr_code object required
google_pay object
token object required
paymentMethodData object required
info object required
assuranceDetails object required
tokenizationData object required
octopus_business object
merchant_presented_qr_code object required
in_web object required
unionpay_wallet object
merchant_presented_qr_code object
in_web object
in_app object
billing_address object
分组
wonder order number
your side reference number
- 200
Response Headers
Schema
- Array [
- ]
- Array [
- ]
Transaction source
Order type
Wonder unique id
your side unique id
due date
Order total
Order tips
sum of successful transaction amount
initial_total - paid_total
Order state
Order payment state
for payment link, when payment finished redirect to this url
if you fill it, wonder will callback your this url after state changed
line_items object[]
Possible values: [RearTips
, Charge
]
transactions object[]
Possible values: [Sales
, Authorization
, Refund
, Capture
]
Wonder transaction uuid
transaction currency
transaction amount
if transaction successful
for async payment,if transaction still pending
for card pure-auth,if transaction captured
if transaction allowed to void
if transaction allowed to refund
if void still pending
which payment method
transaction remark
payment_data object required
related to payment method
original transacation uuid
{
"source": "string",
"type": "string",
"number": "string",
"reference_number": "string",
"due_date": "string",
"initial_total": 0,
"initial_tips": 0,
"subtotal": 0,
"paid_total": "string",
"unpaid_total": "string",
"state": "string",
"correspondence_state": "string",
"currency": "string",
"return_url": "string",
"notify_url": "string",
"line_items": [
{
"uuid": "string",
"purchasable_type": "RearTips",
"purchase_id": 0,
"price": 0,
"quantity": 0,
"total": 0,
"label": "string"
}
],
"transactions": [
{
"type": "Sales",
"uuid": "string",
"currency": "string",
"amount": "string",
"success": true,
"is_pending": true,
"captured": true,
"allow_void": true,
"allow_refund": true,
"void_is_pending": true,
"payment_method": "string",
"note": "string",
"payment_data": {
"acquirer_name": "string",
"acquirer_type": "string",
"auth_code": "string",
"brn": "string",
"card_id": "string",
"card_number_len": 0,
"card_read_mode": "string",
"credit_card_type": "string",
"first_6_digits": "string",
"last_4_digits": "string",
"merchant_id": "string",
"new_gateway_txn_id": "string",
"payment_method": "string",
"receipt_id": "string",
"rrn": "string",
"transaction_state": "string"
},
"original_transaction_uuid": "string"
}
]
}