{
"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",
"cancelUrl": "https://greedy-widow.org/",
"options": {
"redirectionCountdown": 5,
"paymentMethod": "paypal",
"orderType": "checkout"
},
"website": "https://yourwebsite.com",
"subscription": {
"planId": "plan-123456",
"description": "test subscription",
"interval": "month",
"intervalCount": 1,
"billingCycle": 12
},
"billing": {
"firstName": "zhang",
"lastName": "san",
"email": "zhangsan@test.com",
"phone": "123435353",
"address1": "street 1",
"address2": "laborum cillum est Ut dolor",
"city": "Beijing",
"state": "Beijing",
"zipCode": "123456",
"country": "CN"
}
}curl --location 'https://api-test.pinddpay.com/api/gateway/authorization' \
--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",
"cancelUrl": "https://greedy-widow.org/",
"options": {
"redirectionCountdown": 5,
"paymentMethod": "paypal",
"orderType": "checkout"
},
"website": "https://yourwebsite.com",
"subscription": {
"planId": "plan-123456",
"description": "test subscription",
"interval": "month",
"intervalCount": 1,
"billingCycle": 12
},
"billing": {
"firstName": "zhang",
"lastName": "san",
"email": "zhangsan@test.com",
"phone": "123435353",
"address1": "street 1",
"address2": "laborum cillum est Ut dolor",
"city": "Beijing",
"state": "Beijing",
"zipCode": "123456",
"country": "CN"
}
}'{
"code": 0,
"time": "string",
"type": "string",
"extras": null,
"result": {
"appId": "string",
"orderId": "123456789",
"payments": [
{
"id": "string",
"name": "string",
"paylink": "string"
}
],
"merchantOrderNo": "string"
},
"message": "string"
}