{ "intent": "sale", "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" } } ] }, "transactions": [ { "amount": { "currency": "USD", "total": "20", "details": { "shipping": "1.20", "tax": "1.30", "subtotal": "17.50" } }, "item_list": { "items": [ { "name": "Ground Coffee 40 oz", "description": "Ground Coffee 40 oz", "currency": "USD", "quantity": 1, "tax": "0.30", "price": "7.50" }, { "name": "Granola bars", "description": "Granola Bars with Peanuts", "currency": "USD", "quantity": 5, "tax": "0.20", "price": "2" } ] }, "description": "Payment description", "invoice_number": "676806849e671" } ] }
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": "f65577f5c5de0" }