简体   繁体   中英

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. 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? 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. This is independent of the particular library or sdk that you use to access the APIs. Configuring the receiver of payments is certainly in the works but is currently not possible using the 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 .

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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