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": "测试订单"
},
"cancel_url": "<string>"
}
'