Request Object
Warning: sizeof(): Parameter must be an array or an object that implements Countable in
/home/conexti1/public_html/library/PayPal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line
176
Warning: sizeof(): Parameter must be an array or an object that implements Countable in
/home/conexti1/public_html/library/PayPal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line
176
Warning: sizeof(): Parameter must be an array or an object that implements Countable in
/home/conexti1/public_html/library/PayPal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line
176
Warning: sizeof(): Parameter must be an array or an object that implements Countable in
/home/conexti1/public_html/library/PayPal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line
176
Warning: sizeof(): Parameter must be an array or an object that implements Countable in
/home/conexti1/public_html/library/PayPal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line
176
Warning: sizeof(): Parameter must be an array or an object that implements Countable in
/home/conexti1/public_html/library/PayPal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line
176
Warning: sizeof(): Parameter must be an array or an object that implements Countable in
/home/conexti1/public_html/library/PayPal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line
176
Warning: sizeof(): Parameter must be an array or an object that implements Countable in
/home/conexti1/public_html/library/PayPal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line
176
Warning: sizeof(): Parameter must be an array or an object that implements Countable in
/home/conexti1/public_html/library/PayPal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line
176
Warning: sizeof(): Parameter must be an array or an object that implements Countable in
/home/conexti1/public_html/library/PayPal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line
176
Warning: sizeof(): Parameter must be an array or an object that implements Countable in
/home/conexti1/public_html/library/PayPal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line
176
Warning: sizeof(): Parameter must be an array or an object that implements Countable in
/home/conexti1/public_html/library/PayPal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line
176
Warning: sizeof(): Parameter must be an array or an object that implements Countable in
/home/conexti1/public_html/library/PayPal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line
176
Warning: sizeof(): Parameter must be an array or an object that implements Countable in
/home/conexti1/public_html/library/PayPal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line
176
Warning: sizeof(): Parameter must be an array or an object that implements Countable in
/home/conexti1/public_html/library/PayPal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line
176
Warning: sizeof(): Parameter must be an array or an object that implements Countable in
/home/conexti1/public_html/library/PayPal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line
176
Warning: sizeof(): Parameter must be an array or an object that implements Countable in
/home/conexti1/public_html/library/PayPal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line
176
Warning: sizeof(): Parameter must be an array or an object that implements Countable in
/home/conexti1/public_html/library/PayPal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line
176
Warning: sizeof(): Parameter must be an array or an object that implements Countable in
/home/conexti1/public_html/library/PayPal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line
176
{
"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
Got Http response code 400 when accessing https://api.sandbox.paypal.com/v1/payments/payment.
{
"name": "VALIDATION_ERROR",
"details": [
{
"field": "payer.funding_instruments[0].credit_card",
"issue": "Invalid expiration (cannot be in the past)"
}
],
"message": "Invalid request - see details",
"information_link": "https://developer.paypal.com/docs/api/payments/#errors",
"debug_id": "db58d6ed2af97"
}