Field | Type | Desc |
|---|---|---|
trade_id | string | Trade ID |
access_no | string | Third-party access number |
merchant_id | string | Merchant ID |
amount | string | Payment amount, truncated to two decimal places |
currency | string | Currency |
customer_id | string | Platform customer ID |
callback_url | string | Webhook notification callback URL |
metadata | map[string]string | A set of key-value pairs that can be attached to an object, allowing you to store additional information in a structured format. |
last_payment_error | LastPaymentError | Last payment error information, if this field has a value, it indicates payment failure. |
next_action | NextAction | Next action |
order_id | string | Third-party order number |
last_trans_id | string | Order transaction ID |
paid_at | string | Payment success time |
payment_mode | string | Payment business mode:
|
payment_token | string | Payment token returned for subscription payment, used for subsequent subscription renewals |
payment_method | string | Payment method |
payment_channel | string | Payment channel |
return_url | string | Redirect page after payment channel accepts successfully in scenarios like 3DS redirect payment |
trade_status | string | Payment status:
|
txn_time | string | Trade initiation time, time when client initiates the interface |
created_at | string | Creation time |
refund_status | string | Refund status:
|
total_refunded_amount | string | Refund amount, truncated to two decimal places |
session_id | string | Session id |
session_url | string | Session url |
refer_info | ReferInfo | Source information of the customer |
order_type | string | Order types generated under different purchase or billing scenarios:
|
line_items | LineItem[] | The line items purchased by the customer |
discounts | Discounts | Discounts applied to the trade, including all discount information for this trade |
ReferInfo
Field | Type | Desc |
|---|---|---|
country_code | string | The country code of the client (ISO 2 format) |
ip | string | The customer's IP address |
device | string | The type of the customer's equipment
|
user_agent | string | The customer's user agent |
NextAction
Field | Type | Desc |
|---|---|---|
type | string | Type of next action required by client:
|
redirect | NextActionRedirect | Redirect information |
client | NextActionClient | Client operation information |
NextActionRedirect
| Field | Type | Desc |
|---|---|---|
| url | string | Redirect URL |
NextActionClient
| Field | Type | Desc |
|---|---|---|
| confirm_url | string | Confirm payment URL |
| apple_pay_session | string | ApplePay session data for creation |
LastPaymentError
| Field | Type | Desc |
|---|---|---|
| code | string | System returned transaction return code |
| message | string | System returned transaction return description |
LineItem
| Field | Type | Desc |
|---|---|---|
| product_id | string | The product ID of the item being purchased |
| price_id | string | The price ID associated with the purchased item |
| price | string | The price before any discounts are applied |
| quantity | int | The quantity of products being purchased |
Discounts
| Field | Type | Desc |
|---|---|---|
| current_period | CurrentPeriodDiscount[] | The current period's discount details |
CurrentPeriodDiscount
| Field | Type | Desc |
|---|---|---|
| discount_id | string | The unique identifier for the discount |
| discount_amount | string | The amount discounted |
| discount_code | string | The discount code used |