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

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

报告相同问题?

悬赏问题

  • ¥35 平滑拟合曲线该如何生成
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了
  • ¥15 链式存储应该如何解决
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站