{ "intent": "sale", "payer": { "payment_method": "paypal" }, "redirect_urls": { "return_url": "https://www.mytotal.tv/payment_result.php?success=true&sub=5&device_id=", "cancel_url": "https://www.mytotal.tv/payment_result.php?success=false" }, "transactions": [ { "amount": { "currency": "EUR" }, "item_list": { "items": [ { "currency": "EUR", "quantity": 1 } ] }, "description": "Payment description", "invoice_number": "662c08f1061e9" } ] }
Got Http response code 400 when accessing https://api.paypal.com/v1/payments/payment.
{ "name": "VALIDATION_ERROR", "message": "Invalid request - see details", "debug_id": "027d1753c0a5a", "information_link": "https://developer.paypal.com/docs/api/payments/#errors", "details": [ { "field": "/transactions/0/amount", "location": "body", "issue": "Cannot construct instance of `com.paypal.platform.payments.model.rest.common.Amount`, problem: INVALID_CURRENCY_AMOUNT_FORMAT" } ] }