- Handle OAuth 2.0 authentication automatically.
- Call the Payouts API with less code.
- Manage API responses and handle errors.
If you want a more customized integration or use a language not supported by the SDK, use the Payouts API directly. For more information, see Use Payouts API.
Install SDK
Install the Payouts SDK in your preferred language.Set up your environment and credentials
- Create a new file in your preferred language in the directory where you installed the SDK.
- Copy the following code sample for your language to initialize the SDK and configure your environment.
- Update the code with your PayPal client ID and secret.
- Set the environment to
SandboxEnvironmentfor testing orLiveEnvironmentfor production.
For more information on finding your REST API credentials for both sandbox and live environments, see Sandbox accounts.