我在我的PHP應用程序中使用「paypal/rest-api-sdk-php」,在上個月的沙箱中完美測試。今晚搬到LIVE現場完成產前測試,現在得到這個迴應。在PayPal REST API中獲取500錯誤
[03-12-2014 01:46:32] PayPal\Core\PPHttpConnection: FINE: Response : {"name":"INTERNAL_SERVICE_ERROR","message":"An internal service error has occurred","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR","debug_id":"9a4e0771d4d79"}
任何建議,因爲我已經搜索,但沒有找到合適的答案。
這是我送(出於安全移除的網址回報)的有效載荷
PayPal\Core\PPHttpConnection: FINE: Payload :
{"intent":"sale","payer":{"payment_method":"paypal"},"redirect_urls":
{"return_url":"XXX","cancel_url":"XXX"},"transactions":
[{"amount":{"currency":"USD","total":"37.50","details":
{"shipping":"0.00","handling_fee":"2.50","tax":"0.00","subtotal":"35.00"}},"item_list":
{"items":[{"name":"Full Event","description":"This is a full event membership","sku":"547e5ff327a7c","currency":"USD","quantity":1,"price":"35.00"}]},"description":
"Purchase from Site","invoice_number":"547e69aad333b"}]}
通常內部服務器錯誤是由不遵循正確的格式JSON有效載荷引起的。您試圖運行哪個操作? – vandershraaf 2014-12-03 03:10:58
爲什麼在測試過程中我不會在沙箱中看到這些錯誤? – 2014-12-03 03:12:10
看起來您的請求中的項目描述超出了最大字符數,您是否可以發佈完整的API請求? – Vimalnath 2014-12-03 03:13:21