And then our server responds something like this:HTTP/1.1 204 CREATED
Content-Type: application/json
Response-Body:
{
"transactionId": "hyx48yu9pe",
"value": "150.0",
"status": "pending",
"links": [
{
"rel": "self",
"method": "get",
"href": "http://onlinepayments.com/payments/5"
},
{
"rel": "confirm",
"method": "put",
"href": "http://onlinepayments.com/payments/5/confirm"
},
{
"rel": "cancel",
"method": "delete",
"href": "http://onlinepayments.com/payments/5"
}
]
}
复制代码
|