Skip to content

Instantly share code, notes, and snippets.

@jcleblanc
Created May 31, 2013 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcleblanc/5685779 to your computer and use it in GitHub Desktop.
Save jcleblanc/5685779 to your computer and use it in GitHub Desktop.
HATEOAS link return structure from a successful auth request through the PayPal REST APIs
"links":[
{
"href":"https://api.sandbox.paypal.com/v1/payments/authorization/9T287484DP554682S",
"rel":"self",
"method":"GET"
},
{
"href":"https://api.sandbox.paypal.com/v1/payments/authorization/9T287484DP554682S/capture",
"rel":"capture",
"method":"POST"
},
{
"href":"https://api.sandbox.paypal.com/v1/payments/authorization/9T287484DP554682S/void",
"rel":"void",
"method":"POST"
},
{
"href":"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0R831151JU007784NKGSU2SA",
"rel":"parent_payment",
"method":"GET"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment