curl --request POST \
--url https://stageapi.paymatrixpay.com/api/v1/merchant/payment \
--header 'Content-Type: application/json' \
--header 'X-Merchant-Id: <x-merchant-id>' \
--header 'X-Nonce: <x-nonce>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"merchant_transaction_id": "<string>",
"notification_url": "<string>",
"redirect_url": "<string>",
"country": "HK",
"customer": {
"customer_type": "I",
"full_name": "John Doe",
"address": {
"line1": "5678 Oak Ave",
"country": "US",
"city": "Los Angeles",
"state": "CA",
"postal_code": "90001",
"line2": "<string>",
"district": "<string>",
"house_number": "<string>"
},
"first_name": "Doe",
"last_name": "John",
"gender": "male",
"id_type": "CPF",
"id_no": "<string>",
"email": "<string>",
"phone": "<string>",
"company": "<string>"
},
"merchant_order": {
"merchant_order_id": "20200808000888888",
"merchant_order_time": "20221231135923",
"order_amount": 88.88,
"order_currency_code": "USD",
"products": [
{
"product_id": "50306",
"name": "测试商品",
"description": "测试商品描述",
"price": 88.88,
"quantity": 1
}
],
"merchant_user_no": "100036",
"order_description": "测试订单",
"shipping": {
"full_name": "Zhang San",
"cycle": "other",
"address": {
"line1": "5678 Oak Ave",
"country": "US",
"city": "Los Angeles",
"state": "CA",
"postal_code": "90001",
"line2": "<string>",
"district": "<string>",
"house_number": "<string>"
},
"first_name": "San",
"last_name": "Zhang",
"phone": "+8618600000000"
}
},
"cancel_url": "<string>"
}
'{
"code": "<string>",
"msg": "<string>",
"trace_id": "<string>",
"data": {
"platform_transaction_id": "<string>",
"merchant_transaction_id": "<string>",
"payment_url": "<string>",
"payment_data": {
"payment_currency_code": "<string>",
"payment_amount": "<string>",
"payment_status": "<string>"
}
}
}curl --request POST \
--url https://stageapi.paymatrixpay.com/api/v1/merchant/payment \
--header 'Content-Type: application/json' \
--header 'X-Merchant-Id: <x-merchant-id>' \
--header 'X-Nonce: <x-nonce>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"merchant_transaction_id": "<string>",
"notification_url": "<string>",
"redirect_url": "<string>",
"country": "HK",
"customer": {
"customer_type": "I",
"full_name": "John Doe",
"address": {
"line1": "5678 Oak Ave",
"country": "US",
"city": "Los Angeles",
"state": "CA",
"postal_code": "90001",
"line2": "<string>",
"district": "<string>",
"house_number": "<string>"
},
"first_name": "Doe",
"last_name": "John",
"gender": "male",
"id_type": "CPF",
"id_no": "<string>",
"email": "<string>",
"phone": "<string>",
"company": "<string>"
},
"merchant_order": {
"merchant_order_id": "20200808000888888",
"merchant_order_time": "20221231135923",
"order_amount": 88.88,
"order_currency_code": "USD",
"products": [
{
"product_id": "50306",
"name": "测试商品",
"description": "测试商品描述",
"price": 88.88,
"quantity": 1
}
],
"merchant_user_no": "100036",
"order_description": "测试订单",
"shipping": {
"full_name": "Zhang San",
"cycle": "other",
"address": {
"line1": "5678 Oak Ave",
"country": "US",
"city": "Los Angeles",
"state": "CA",
"postal_code": "90001",
"line2": "<string>",
"district": "<string>",
"house_number": "<string>"
},
"first_name": "San",
"last_name": "Zhang",
"phone": "+8618600000000"
}
},
"cancel_url": "<string>"
}
'{
"code": "<string>",
"msg": "<string>",
"trace_id": "<string>",
"data": {
"platform_transaction_id": "<string>",
"merchant_transaction_id": "<string>",
"payment_url": "<string>",
"payment_data": {
"payment_currency_code": "<string>",
"payment_amount": "<string>",
"payment_status": "<string>"
}
}
}商户 Id
签名字符串
5000时间戳毫秒值
随机字符串
10商户交易 id
1 - 19回调通知地址
250支付成功跳转地址
250国家
5"HK"
Show child attributes
Show child attributes
取消支付跳转地址
250