简体   繁体   English

如何在PayPal PHP SDK中设置PayPal帐户详细信息?

[英]How to set the PayPal account details inf the PayPal PHP SDK?

I am making a store with the PayPal PHP-SDK, and I am wondering about where the payments go. 我正在使用PayPal PHP-SDK进行销售,我想知道付款的去向。 There are no options in the config to put in account details, nor do I see where you would put them in anywhere else. 配置中没有用于放置帐户详细信息的选项,也看不到将它们放置在其他位置的位置。 So do payments just automatically go to the account that you have your PayPal developer account created with? 那么付款是否会自动转到您创建了PayPal开发人员帐户的帐户? I really need to know this, because I am making this site for a client, and I don't exactly want all of their sales going to my account... 我真的很需要知道这一点,因为我正在为客户创建此网站,并且我不希望他们的所有销售都转到我的帐户...

As of right now, whenever transactions are made using the REST API, the funds go by default to the PayPal account that was used to get credentials from developer.paypal.com to create the application and get the client_id/client_secret pair. 截至目前,无论何时使用REST API进行交易,资金都会默认转到用于从developer.paypal.com获取凭据以创建应用程序并获取client_id / client_secret对的PayPal帐户。 This is independent of the particular library or sdk that you use to access the APIs. 这独立于用于访问API的特定库或sdk。 Configuring the receiver of payments is certainly in the works but is currently not possible using the REST API. 当然,正在配置付款的接收者,但是当前无法使用REST API。

If something is left unclear on the officially supported API, please do open an issue and start a conversation on https://github.com/paypal/rest-api-sdk-php/issues . 如果官方支持的API尚不清楚,请打开一个问题并在https://github.com/paypal/rest-api-sdk-php/issues上开始对话。

Is it possible for you to setup a different app for each merchant. 您是否可以为每个商人设置不同的应用程序。 That would give you a different clientId and Secret Pair for each merchant. 这样可以为每个商人提供不同的clientId和Secret Pair。

Or the merchant could setup an app in their account. 或者商家可以在其帐户中设置一个应用程序。 The reason being, if they want to enable "Business Account" services, they would be able to update their systems accordingly. 原因是,如果他们想启用“企业帐户”服务,他们将能够相应地更新其系统。

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

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