Skip to content

Instantly share code, notes, and snippets.

@nkhine
Created September 12, 2014 08:57
Show Gist options
  • Save nkhine/e654b53905ff9f119cca to your computer and use it in GitHub Desktop.
Save nkhine/e654b53905ff9f119cca to your computer and use it in GitHub Desktop.
paypal sandbox request
Reply >>>> {
"id": "PAY-5DC727074K9372822KQJLKOI",
"create_time": "2014-09-12T08:56:25Z",
"update_time": "2014-09-12T08:56:27Z",
"state": "approved",
"intent": "sale",
"payer": {
"payment_method": "credit_card",
"funding_instruments": [
{
"credit_card": {
"type": "visa",
"number": "xxxxxxxxxxxx0329",
"expire_month": "9",
"expire_year": "2019"
}
}
]
},
"transactions": [
{
"amount": {
"total": "8.30",
"currency": "GBP",
"details": {
"subtotal": "8.30"
}
},
"related_resources": [
{
"sale": {
"id": "299718679F691730C",
"create_time": "2014-09-12T08:56:25Z",
"update_time": "2014-09-12T08:56:27Z",
"amount": {
"total": "8.30",
"currency": "GBP"
},
"state": "completed",
"parent_payment": "PAY-5DC727074K9372822KQJLKOI",
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/payments/sale/299718679F691730C",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/sale/299718679F691730C/refund",
"rel": "refund",
"method": "POST"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-5DC727074K9372822KQJLKOI",
"rel": "parent_payment",
"method": "GET"
}
]
}
}
]
}
],
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-5DC727074K9372822KQJLKOI",
"rel": "self",
"method": "GET"
}
],
"httpStatusCode": 201
}
totalVolume: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment