{ "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." } ] }
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": "24c3eb6a4b9ca" }