# PayPal settings

{% hint style="danger" %}
If you use one PayPal account for selling multiple products/services including shares through Streams Manager, you will run into trouble as Streams Manager does not know what else you accept payments for. It is best to have a separate PayPal account for Streams Manager only.
{% endhint %}

To  utilize PayPal for payments on Streams Manager, you need to have a PayPal personal or business account (business is required for recurring payments). There are two types of integration:

* REST – Used for checkout and creating recurring subscriptions
* NVP – Used for transaction sync. REST API also has access to transactions but transactions take much longer to appear there

Both integrations require you to generate credentials and enter them into Streams Manager. When generating your credentials please pay attention to the following:

* Whether you selected Sandbox vs. Production (Live) since they use different credentials. Make sure to use the correct set based on the dropdown in Streams Manager. Credentials cannot be mismatched
* Ensure that no leading and trailing spaces are introduced when copying values and pasting them into Streams Manager

Streams Manager gives you an option to specify two PayPal accounts:

* Primary account - this account will be used for payments users made when subscribing via Streams Manager and can be used for transaction sync. If you wish to use recurring payments, this must be a business account
* Secondary account - this account can only be used for transaction sync

Why two accounts? PayPal has [recently announced](https://newsroom.paypal-corp.com/2022-06-Upcoming-Changes-to-PayPals-Pricing-Structure) changes where business accounts can no longer receive peer-to-peer payments using "send to friend" or "send gift" options which previously had no fees. Using multiple accounts, you can setup a business account to be your primary for payments when users are subscribing via Streams Manager which will incur fees (as before). But if specifying a personal account for a secondary, it will allow you to get peer-to-peer payments from your subscribers without fees when they use "send to friend" method and Streams Manager will import those payments for you automatically and extend user's subscription all without incurring fees and be subject to taxation.

PayPal settings are as follows:

* Enabled - indicates whether to enable PayPal for payments
* Checkout enabled - indicates whether PayPal is enabled on the checkout page for pay as you subscriptions
* Recurring checkout enabled - indicates whether PayPal is enabled on the checkout page for recurring subscriptions
* Transaction sync enabled - indicates whether to enable periodic (hourly) PayPal transaction synchronization. This is required if recurring payments are enabled
* Environment - indicates whether to use real payments (Production) or test payments (Sandbox)
* Client ID - specifies client ID of your PayPal REST app&#x20;
* Client secret - specifies client secret of your PayPal REST app
* NVP URI - specifies NVP client URI ([https://developer.paypal.com/api/nvp-soap/apiCredentials/#:\~:text=knowledge%20base%20article.-,API%20signatures,-To%20create%20an](https://developer.paypal.com/api/nvp-soap/apiCredentials/))
* NVP API username - specifies NVP API password
* NVP API signature - specifies NVP API signature
