Request Object
{
"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."
}
]
}Response Object
{
"intent": "authorize",
"payer": {
"payment_method": "credit_card",
"funding_instruments": [
{
"credit_card": {
"payer_id": "3504557091870688639",
"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": "4YF576932J5270738",
"state": "authorized",
"amount": {
"total": "1.00",
"currency": "USD"
},
"processor_response": {
"avs_code": "Y",
"cvv_code": "M"
},
"parent_payment": "PAY-9FV64444YK601045YLQQBXFQ",
"valid_until": "2019-01-21T23:34:46Z",
"create_time": "2018-12-23T23:34:46Z",
"update_time": "2018-12-23T23:34:49Z",
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/4YF576932J5270738",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/4YF576932J5270738/capture",
"rel": "capture",
"method": "POST"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/authorization/4YF576932J5270738/void",
"rel": "void",
"method": "POST"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-9FV64444YK601045YLQQBXFQ",
"rel": "parent_payment",
"method": "GET"
}
]
}
}
]
}
],
"id": "PAY-9FV64444YK601045YLQQBXFQ",
"state": "approved",
"create_time": "2018-12-23T23:34:46Z",
"update_time": "2018-12-23T23:34:49Z",
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-9FV64444YK601045YLQQBXFQ",
"rel": "self",
"method": "GET"
}
]
}