{
"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": "1164628102114882260",
"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": "523396088F202300S",
"state": "authorized",
"amount": {
"total": "1.00",
"currency": "USD"
},
"processor_response": {
"avs_code": "Y",
"cvv_code": "M"
},
"parent_payment": "PAY-1UP181623S481905ALQQBXNA",
"valid_until": "2019-01-21T23:35:16Z",
"create_time": "2018-12-23T23:35:16Z",
"update_time": "2018-12-23T23:35:18Z",
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/523396088F202300S",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/523396088F202300S/capture",
"rel": "capture",
"method": "POST"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/523396088F202300S/void",
"rel": "void",
"method": "POST"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-1UP181623S481905ALQQBXNA",
"rel": "parent_payment",
"method": "GET"
}
]
}
}
]
}
],
"id": "PAY-1UP181623S481905ALQQBXNA",
"state": "approved",
"create_time": "2018-12-23T23:35:16Z",
"update_time": "2018-12-23T23:35:18Z",
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-1UP181623S481905ALQQBXNA",
"rel": "self",
"method": "GET"
}
]
}{
"id": "523396088F202300S",
"state": "authorized",
"amount": {
"total": "1.00",
"currency": "USD",
"details": {}
},
"payment_mode": "INSTANT_TRANSFER",
"reason_code": "AUTHORIZATION",
"protection_eligibility": "INELIGIBLE",
"parent_payment": "PAY-1UP181623S481905ALQQBXNA",
"valid_until": "2019-01-21T23:35:17Z",
"create_time": "2018-12-23T23:35:17Z",
"update_time": "2018-12-23T23:35:17Z",
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/523396088F202300S",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/523396088F202300S/capture",
"rel": "capture",
"method": "POST"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/523396088F202300S/void",
"rel": "void",
"method": "POST"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/523396088F202300S/reauthorize",
"rel": "reauthorize",
"method": "POST"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-1UP181623S481905ALQQBXNA",
"rel": "parent_payment",
"method": "GET"
}
]
}{
"amount": {
"currency": "USD",
"total": "1"
}
}{
"id": "1MC84014WT893724G",
"create_time": "2018-12-23T23:35:20Z",
"update_time": "2018-12-23T23:35:28Z",
"amount": {
"total": "1.00",
"currency": "USD"
},
"is_final_capture": false,
"state": "completed",
"reason_code": "None",
"parent_payment": "PAY-1UP181623S481905ALQQBXNA",
"transaction_fee": {
"value": "0.33",
"currency": "USD"
},
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/payments/capture/1MC84014WT893724G",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/capture/1MC84014WT893724G/refund",
"rel": "refund",
"method": "POST"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/523396088F202300S",
"rel": "authorization",
"method": "GET"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-1UP181623S481905ALQQBXNA",
"rel": "parent_payment",
"method": "GET"
}
]
}