Skip to main content

Setup Guide

This guide walks you through creating a PayPal sandbox business account and obtaining the API credentials required to use the PayPal Payments connector.

Prerequisites​

Step 1: Create a sandbox business account​

  1. Open the PayPal Developer Dashboard.

  2. Under Testing Tools, select Sandbox Accounts.

    Sandbox accountsSandbox accounts
  3. Select Create account and choose Business as the account type.

    Create business accountCreate business account
note

Some PayPal options and features may vary by region or country — check availability before creating an account.

Step 2: Create a REST API app​

  1. Navigate to the Apps & Credentials tab.

  2. Select Create App, provide a name, and select the sandbox business account you created.

    Create appCreate app

Step 3: Get the client ID and client secret​

After creating the app, copy the Client ID and Client Secret displayed on the app details page.

Client ID and client secretClient ID and client secret
tip

Store the Client ID and Client Secret securely. Do not commit them to source control. Use Ballerina's configurable feature and a Config.toml file to supply them at runtime.

What's next​