{
"intent": "authorize",
"payer": {
"payment_method": "credit_card",
"funding_instruments": [
{
"credit_card": {
"type": "visa",
"number": "4417119669820331",
"expire_month": "11",
"expire_year": "2019",
"cvv2": "012",
"first_name": "Joe",
"last_name": "Shopper",
"billing_address": {
"line1": "3909 Witmer Road",
"line2": "Niagara Falls",
"city": "Niagara Falls",
"state": "NY",
"postal_code": "14305",
"country_code": "US",
"phone": "716-298-1822"
}
}
}
]
},
"transactions": [
{
"amount": {
"currency": "USD",
"total": "1"
},
"description": "Payment description."
}
]
}{
"intent": "authorize",
"payer": {
"payment_method": "credit_card",
"funding_instruments": [
{
"credit_card": {
"payer_id": "9117064301566407720",
"type": "VISA",
"number": "xxxxxxxxxxxx0331",
"expire_month": "11",
"expire_year": "2019",
"first_name": "Joe",
"last_name": "Shopper",
"billing_address": {
"line1": "3909 Witmer Road",
"line2": "Niagara Falls",
"city": "Niagara Falls",
"state": "NY",
"postal_code": "14305",
"country_code": "US",
"phone": "716-298-1822"
}
}
}
]
},
"transactions": [
{
"amount": {
"total": "1.00",
"currency": "USD"
},
"description": "Payment description.",
"related_resources": [
{
"authorization": {
"id": "5SB982935J017421V",
"state": "authorized",
"amount": {
"total": "1.00",
"currency": "USD"
},
"processor_response": {
"avs_code": "Y",
"cvv_code": "M"
},
"parent_payment": "PAY-8C1543091F894853LLQQBX2A",
"valid_until": "2019-01-21T23:36:08Z",
"create_time": "2018-12-23T23:36:08Z",
"update_time": "2018-12-23T23:36:11Z",
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/5SB982935J017421V",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/5SB982935J017421V/capture",
"rel": "capture",
"method": "POST"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/5SB982935J017421V/void",
"rel": "void",
"method": "POST"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-8C1543091F894853LLQQBX2A",
"rel": "parent_payment",
"method": "GET"
}
]
}
}
]
}
],
"id": "PAY-8C1543091F894853LLQQBX2A",
"state": "approved",
"create_time": "2018-12-23T23:36:08Z",
"update_time": "2018-12-23T23:36:11Z",
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-8C1543091F894853LLQQBX2A",
"rel": "self",
"method": "GET"
}
]
}{
"id": "1BF65516U6866543H",
"create_time": "2014-12-15T17:09:56Z",
"update_time": "2014-12-15T17:10:10Z",
"amount": {
"total": "20.00",
"currency": "USD",
"details": {
"subtotal": "17.50",
"tax": "1.30",
"shipping": "1.20"
}
},
"payment_mode": "INSTANT_TRANSFER",
"state": "voided",
"protection_eligibility": "ELIGIBLE",
"protection_eligibility_type": "ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE",
"parent_payment": "PAY-3E220721KF606000TKSHRLZA",
"valid_until": "2015-01-13T17:09:56Z",
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/1BF65516U6866543H",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-3E220721KF606000TKSHRLZA",
"rel": "parent_payment",
"method": "GET"
}
]
}