简体   繁体   English

PayPal - 使用REST API从Sandbox切换到Live帐户

[英]PayPal - switching from Sandbox to Live account using REST API

We tested our web application successfully using a sandbox REST API account (and test credentials). 我们使用沙箱REST API帐户(和测试凭据)成功测试了我们的Web应用程序。 When we wanted to put the application into production (using REST API live credentials visible on the same PayPal web site where the sandbox/text credentials were shown), we received an error from the production PayPal server on a live credit-card transaciton: 当我们想要将应用程序投入生产时(使用REST API实时凭证在显示沙盒/文本凭据的同一PayPal网站上可见),我们在实时信用卡交易中收到生产PayPal服务器的错误:

Error code : 401 with response : Server returned HTTP response code: 401 for URL: https://api.paypal.com/v1/payments/payment 错误代码:401 with response:服务器返回HTTP响应代码:401为URL: https//api.paypal.com/v1/payments/payment

We have a Business Account that is not yet 100% verified (75% verified at the moment), so we are not sure if this is caused by some technical issue or the fact that the account is not yet 100% verified. 我们的商家帐户尚未100%经过验证(目前已经过75%验证),因此我们不确定这是由某些技术问题引起的,还是该帐户尚未100%验证的事实。

PayPal web site is quite confusing and the process of moving the app from test to production is not clearly explained. PayPal网站非常混乱,并且没有清楚地解释将应用程序从测试转移到生产的过程。 It seems that they are migrating from some old web sites to new ones and the user is prompted to login multiple times, redirected to different URL-s... Eg we can see our application test and live credentials on the developer.paypal.com, but not on apps.paypal.com where no apps are listed, even though the same user is logged in (owner of the business account)??? 他们似乎正在从一些旧网站迁移到新网站,并提示用户多次登录,重定向到不同的URL-s ......例如,我们可以在developer.paypal.com上看到我们的应用程序测试和实时凭据。 ,但不在apps.paypal.com上,即使同一个用户登录(业务帐户的所有者),也没有列出任何应用程序?

For future readers, you have to use Live Credentials, on https://developer.paypal.com go to My apps and in App details there is a link at a bottom of the page : 对于未来的读者,您必须使用Live Credentials,在https://developer.paypal.com上转到我的应用程序,在应用程序详细信息中,页面底部有一个链接:

在此输入图像描述

Click on that link and you will see live credentials. 单击该链接,您将看到实时凭据。

You now click on your sandbox application and then click live at the top of the screen to get your live credentials. 现在,您单击您的沙箱应用程序,然后单击屏幕顶部的实时以获取您的实时凭据。

沙盒实时切换

For the PayPal REST api use the credentials provided on developer.paypal.com (new version of PayPal dev experience). 对于PayPal REST API,请使用developer.paypal.com上提供的凭据(PayPal开发经验的新版本)。 Live calls require the account to be vetted which includes fully verified. 实时通话要求对帐户进行审核,包括完全验证。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM