INTERNAL_SERVICE_ERROR PayPal REST API https://api.paypal.com/v1/payments/payment [英] INTERNAL_SERVICE_ERROR PayPal REST API https://api.paypal.com/v1/payments/payment

查看:152
本文介绍了INTERNAL_SERVICE_ERROR PayPal REST API https://api.paypal.com/v1/payments/payment的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用实时"凭证,使用以下资源,我得到INTERNAL_SERVICE_ERROR接受信用卡付款:

Using "LIVE" credentials, I'm getting an INTERNAL_SERVICE_ERROR accepting a credit card payment, using this resource: https://api.paypal.com/v1/payments/payment. Same error happens on the web and via cURL. NOTE: This does not happen in SANDBOX only LIVE. See steps to recreate below. For this post, I had to add a space in "http s" as I cannot submit more than 2 links.

  1. 获取OAuth令牌(用LIVE_USER_ID:LIVE_PASSWORD替换用户名/密码

  1. Get an OAuth token (substitute username/password in LIVE_USER_ID:LIVE_PASSWORD

curl http s://api.paypal.com/v1/oauth2/token -H接受:application/json" -H接受语言:en_US" -u"LIVE_USER_ID:LIVE_PASSWORD" -d"grant_type = client_credentials"

curl http s://api.paypal.com/v1/oauth2/token -H "Accept: application/json" -H "Accept-Language: en_US" -u "LIVE_USER_ID:LIVE_PASSWORD" -d "grant_type=client_credentials"

使用LIVE凭据获取令牌没有问题.将令牌添加到对资源的​​以下请求中:

No problem getting a token using LIVE credentials. Add the token to the following request to the resource:

curl -v http s://api.paypal.com/v1/payments/payment \

-H"Content-Type:应用程序/json" \ -H授权:承载者YK.GUHkGhBAQgGgGkilvHoL7DdE9SVq.IDl-mRwAZeM" \ -d'{ 意图":销售", 付款人":{ "payment_method":"credit_card", "funding_instruments":[ { 信用卡": { "number":"5500005555555559", "type":万事达卡", "expire_month":12 "expire_year":2018年, "cvv2":111, "first_name":乔", "last_name":购物者" } } ] }, 交易":[ { 数量": { 总计":"0.01", 货币:美元" }, "description":这是付款交易的描述." } ] }'

-H "Content-Type:application/json" \ -H "Authorization:Bearer YK.GUHkGhBAQgGgGkilvHoL7DdE9SVq.IDl-mRwAZeM" \ -d '{ "intent": "sale", "payer": { "payment_method": "credit_card", "funding_instruments": [ { "credit_card": { "number": "5500005555555559", "type": "mastercard", "expire_month": 12, "expire_year": 2018, "cvv2": 111, "first_name": "Joe", "last_name": "Shopper" } } ] }, "transactions": [ { "amount": { "total": "0.01", "currency": "USD" }, "description": "This is the payment transaction description." } ] }'

名称":"INTERNAL_SERVICE_ERROR",消息":发生内部服务错误","information_link":"http_s://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR" ,"debug_id":"525bfb7a6382a"}}约翰鲁芬:〜约翰鲁芬$ 想法???

"name":"INTERNAL_SERVICE_ERROR","message":"An internal service error has occurred","information_link":"http_s://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR","debug_id":"525bfb7a6382a"}johnruffin:~ johnruffin$ Thoughts???

推荐答案

感谢您将此问题引起我们的注意.我已经与Payments Rest API开发团队一起打开了一个内部错误.从提供的调试ID中,我看到信用卡被拒绝了.将来,这种情况下的错误消息将属于以下错误情况: https: //developer.paypal.com/webapps/developer/docs/api/#CREDIT_CARD_REFUSED

Thanks for bringing this issue to our attention. I've opened an internal bug with the payments rest api development team. From the debug id provided I see that the credit card is being refused. In the future the error message from this scenario will fall under this error condition: https://developer.paypal.com/webapps/developer/docs/api/#CREDIT_CARD_REFUSED

请尝试使用另一张/有效的信用卡进行验证.

Please try a another/valid credit card to verify.

这篇关于INTERNAL_SERVICE_ERROR PayPal REST API https://api.paypal.com/v1/payments/payment的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆