会话id和过期时间戳。会话id用于接入sdk,对接步骤如下:/api/gateway/createsession)获取会话idtest,正式环境使用prod{
"appid": "test",
"order": {
"id": "ORDER_123456",
"sku": {
"id": "SKU-123456",
"currency": "USD",
"amount": 1.99,
"name": "VIP",
"quantity": 1
}
},
"customer": {
"id": "user-123",
"country": "US",
"ip": "127.0.0.1",
"name": "JAMES",
"email": "james@tesg.com"
},
"notifyUrl": "https://example.com/callback",
"redirectUrl": "https://example.com/redirect",
"options": {
"paymentMethod": "paypal"
},
"website": "https://yourwebsite.com"
}curl --location 'https://api-test.pinddpay.com/api/gateway/createsession' \
--header 'accessKey: ' \
--header 'timestamp: ' \
--header 'nonce: ' \
--header 'sign: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"appid": "test",
"order": {
"id": "ORDER_123456",
"sku": {
"id": "SKU-123456",
"currency": "USD",
"amount": 1.99,
"name": "VIP",
"quantity": 1
}
},
"customer": {
"id": "user-123",
"country": "US",
"ip": "127.0.0.1",
"name": "JAMES",
"email": "james@tesg.com"
},
"notifyUrl": "https://example.com/callback",
"redirectUrl": "https://example.com/redirect",
"options": {
"paymentMethod": "paypal"
},
"website": "https://yourwebsite.com"
}'{
"code": 0,
"time": "string",
"type": "string",
"extras": null,
"result": {
"session": "string",
"expiredAt": "string"
},
"message": "string"
}