{
"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": "3152081096131365477",
"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": "9ND36455W71966322",
"state": "authorized",
"amount": {
"total": "1.00",
"currency": "USD"
},
"processor_response": {
"avs_code": "Y",
"cvv_code": "M"
},
"parent_payment": "PAY-6V424622DY234841XLQQBYEI",
"valid_until": "2019-01-21T23:36:49Z",
"create_time": "2018-12-23T23:36:49Z",
"update_time": "2018-12-23T23:36:51Z",
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/9ND36455W71966322",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/9ND36455W71966322/capture",
"rel": "capture",
"method": "POST"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/9ND36455W71966322/void",
"rel": "void",
"method": "POST"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-6V424622DY234841XLQQBYEI",
"rel": "parent_payment",
"method": "GET"
}
]
}
}
]
}
],
"id": "PAY-6V424622DY234841XLQQBYEI",
"state": "approved",
"create_time": "2018-12-23T23:36:49Z",
"update_time": "2018-12-23T23:36:51Z",
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-6V424622DY234841XLQQBYEI",
"rel": "self",
"method": "GET"
}
]
}{
"id": "9ND36455W71966322",
"state": "authorized",
"amount": {
"total": "1.00",
"currency": "USD",
"details": {}
},
"payment_mode": "INSTANT_TRANSFER",
"reason_code": "AUTHORIZATION",
"protection_eligibility": "INELIGIBLE",
"parent_payment": "PAY-6V424622DY234841XLQQBYEI",
"valid_until": "2019-01-21T23:36:50Z",
"create_time": "2018-12-23T23:36:50Z",
"update_time": "2018-12-23T23:36:50Z",
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/9ND36455W71966322",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/9ND36455W71966322/capture",
"rel": "capture",
"method": "POST"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/9ND36455W71966322/void",
"rel": "void",
"method": "POST"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/9ND36455W71966322/reauthorize",
"rel": "reauthorize",
"method": "POST"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-6V424622DY234841XLQQBYEI",
"rel": "parent_payment",
"method": "GET"
}
]
}{
"amount": {
"currency": "USD",
"total": "1"
}
}{
"id": "35G40475HW113623C",
"create_time": "2018-12-23T23:36:54Z",
"update_time": "2018-12-23T23:37:01Z",
"amount": {
"total": "1.00",
"currency": "USD"
},
"is_final_capture": false,
"state": "completed",
"reason_code": "None",
"parent_payment": "PAY-6V424622DY234841XLQQBYEI",
"transaction_fee": {
"value": "0.33",
"currency": "USD"
},
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/payments/capture/35G40475HW113623C",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/capture/35G40475HW113623C/refund",
"rel": "refund",
"method": "POST"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/9ND36455W71966322",
"rel": "authorization",
"method": "GET"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-6V424622DY234841XLQQBYEI",
"rel": "parent_payment",
"method": "GET"
}
]
}{
"amount": {
"currency": "USD",
"total": "1"
}
}{
"id": "64A58748KE1402612",
"create_time": "2018-12-23T23:37:07Z",
"update_time": "2018-12-23T23:37:07Z",
"state": "completed",
"amount": {
"total": "1.00",
"currency": "USD"
},
"refund_from_transaction_fee": {
"currency": "USD",
"value": "0.03"
},
"total_refunded_amount": {
"currency": "USD",
"value": "1.00"
},
"refund_from_received_amount": {
"currency": "USD",
"value": "0.97"
},
"capture_id": "35G40475HW113623C",
"parent_payment": "PAY-6V424622DY234841XLQQBYEI",
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/payments/refund/64A58748KE1402612",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-6V424622DY234841XLQQBYEI",
"rel": "parent_payment",
"method": "GET"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/capture/35G40475HW113623C",
"rel": "capture",
"method": "GET"
}
]
}