提供给第三方公司的网店上的 Paypal Rest API

Paypal Rest API on webshop provided to third party companies

背景

我们正在开发一个我们出售给其他公司的网上商店。 这些公司托管网上商店并在自己的服务器上销售他们的产品。 该网上商店使用 Paypal Rest API 供客户付款。 https://developer.paypal.com/docs/api/

要激活 Paypal 作为付款方式,公司在网上商店管理区域提供其 Paypal 详细信息。

我们现在是怎么做的

现在企业需要先创建一个Paypal Developer账号,然后在developer.paypal.com中新建一个App,得到自己的Client ID和Client Secret Code。

然后他们在网店管理区域提供他们的客户 ID 和客户密码。

问题

这是正确的做法吗? 我们认为告诉我们的客户(公司)在 Paypal 中创建 "Developer Accounts" 感觉有点奇怪,因为他们实际上不是开发人员,只是销售他们产品的网店所有者。

我找到了关于设置参数 "payee" 的信息,这意味着您可以设置付款的接收者,请参阅:https://devblog.paypal.com/setting-payee/ and https://developer.paypal.com/docs/api/payments/#definition-payee

是否可以像这样使用 "payee" 作为解决方案?: 我们作为网上商店的开发者有一个 Paypal 开发者帐户,并提供我们的客户 ID 和客户密码,然后在我们所有的客户网上商店中使用?然后公司只需要在网上商店管理区域提供他们的 Paypal 帐户电子邮件,然后用作 "payee" 参数。

这是一个好的解决方案吗?还是同一个App、Client ID和Client Secret Code不能用于多家公司及其网店?那怎么解决呢?

谢谢!

与PayPal支持沟通后已解决。 这是回答我问题的通讯中的一些信息:

"Do not use then the payee field as you will be able to deal with all the transactions created, that you don't want as you are an external "演员"在付款过程中。"

"About creating a developer account and App it does not mean that they are developers. The developer portal is a tool that allow to manage the Apps and deal with Sandbox test accounts. It is the only way to create an App."

所以结论是,我们今天的做法是正确的,是这样的:

"现在公司需要创建一个Paypal Developer账号,然后在developer.paypal.com中创建一个新的App来获取自己的Client ID和Client Secret Code。 然后他们在网店管理区域提供他们的客户 ID 和客户密码。"