douzi2333 2015-01-19 10:10
浏览 53
已采纳

在拨打“/ v1 / payments / payment”时永久获得“INTERNAL_SERVICE_ERROR”

Currently I'm trying to implement PayPal via Rest API. I've read the documentation and I wrote a script which executes all calls to the Rest API with the givin example JSJON Objects (from the documentation).

Unfortunately I get following answer object (since several days) when calling https://api.sandbox.paypal.com/v1/payments/payment

object(stdClass)[1181]
      public 'name' => string 'INTERNAL_SERVICE_ERROR' (length=22)
      public 'message' => string 'An internal service error has occurred' (length=38)
      public 'information_link' => string 'https://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR' (length=79)
      public 'debug_id' => string 'c23de45eb8631' (length=13)

The data I sent

{"intent":"sale","payer":{"payment_method":"paypal"},"transactions":[{"amount":{"currency":"EUR","total":"74.90"},"description":"This is the payment transaction description.","invoice_number":null,"item_list":{"items":[{"quantity":1,"name":"Hammerfall-DE","description":"Heavy Metal Klassiker der schwedischen Band Hammerfall mit sehr eing\u00e4ngigem, hymnischem Chorus, hohem M\u00e4nnergesang, melodischen Gitarren sowie nach vorne gehenden Double-Bass-Drums. Klingt sehr positiv. (Artist: Hammerfall) DE","pr'... (length=729)

Did I miss anything?

  • 写回答

1条回答 默认 最新

  • dpdbu24262 2015-01-19 14:33
    关注

    Might be it is because of the description that you have given for item_list object description .The maximum length mentioned according to the docs should be 127 characters . Can you try to reduce it to 127 chars and try once again :

    You can refer the docs here :

    https://developer.paypal.com/webapps/developer/docs/api/#item-object

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥16 Qphython 用xlrd读取excel报错
  • ¥15 单片机学习顺序问题!!
  • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上
  • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)
  • ¥15 相敏解调 matlab
  • ¥15 求lingo代码和思路
  • ¥15 公交车和无人机协同运输
  • ¥15 stm32代码移植没反应
  • ¥15 matlab基于pde算法图像修复,为什么只能对示例图像有效
  • ¥100 连续两帧图像高速减法