Set up
Last updated: Sept 11th, 9:25am
You can use the steps in this section to ensure that your accounts and environment are set up to accept Pix payments.
Set up sandbox account
-
Sign up for a PayPal developer account. On successful signup, PayPal automatically creates your sandbox environment. The sandbox environment is a test environment that helps you mimic real-world transactions. By default, the environment includes a business and personal account. You can create additional personal and business sandbox accounts as needed.
-
Set up the sandbox environment:
- Go to your PayPal developer account sandbox and toggle to Sandbox.
- Go to Apps & Credentials and select Create App.
- Enter your app name, set the Type to Merchant, choose the sandbox business account, and select Create App. The app details page is displayed.
-
Configure a webhook listener for the app and subscribe to events:
- In the app details page, go to Sandbox Webhooks.
- Select Add Webhook.
- Enter a Webhook URL (the server endpoint where notifications from PayPal are sent), select the events the app wants to subscribe to, and select Save.
The webhook listener is successfully configured, and a Webhook ID is displayed. You can store the ID and use it in your app code to verify the source sending messages to your listener. For more information on webhooks, see Use webhooks.
-
Retrieve sandbox app credentials: To integrate and test Pay with Pix, you require the following sandbox credentials for your app:
- Client ID: App identifier that helps with account authentication.
- Client Secret: App credential that helps with app authorization.
-
To retrieve the sandbox credentials:
- Go to your PayPal developer account and switch to Sandbox.
- Go to Apps & Credentials > API Credentials > REST API apps.
- Copy the Client ID and Client Secret listed next to your app name and save them.
- Retrieve sandbox account credentials: To test your Pay with Pix integration end-to-end, run your app, simulate a checkout flow, log in to your personal PayPal sandbox account to approve the Pix payment, and confirm that the money is received in your business PayPal sandbox account in BRL. You need sandbox login credentials for both accounts. For information on how to access or reset these credentials, see Get sandbox account credentials.
- Set up the development environment.
Set up production business account
- Log in to the PayPal Developer Dashboard and switch to the Live environment.
- Go to Apps & Credentials and create a new app or select an existing app.
-
In the app’s Features tab, ensure Accept payments is enabled.
- Configure a webhook listener for the app and subscribe to events:
- On the app details page, go to Live Webhooks.
- Select Add Webhook.
- Enter your Webhook URL (the server endpoint where notifications from PayPal are sent), select the events the app wants to subscribe to, and select Save.
- [Recommended] Subscribe to the following events:
CHECKOUT.ORDER.APPROVED:Approval of checkout orderCHECKOUT.ORDER.COMPLETED:Successful Pix paymentCHECKOUT.PAYMENT-APPROVAL.REVERSED:Failed or expired capture
- Click Save. A Webhook ID will be generated.
The webhook listener is successfully configured, and a Webhook ID is displayed. You can store the ID and use it in your app code to verify the source sending messages to your listener. For more information on webhooks, see Use webhooks.
- Configure a webhook listener for the app and subscribe to events:
- Copy your Client ID and Secret for the live app.
- Enable Pay with Pix for the production account.
Onboard Pix payments
You can enable Pay with Pix using one of the following methods:
Enable Pay with Pix from your PayPal dashboard
If you have an eligible PayPal business account, you can enable Pay with Pix directly from your dashboard:
- Log in to your PayPal business account.
- Go to Account Settings > Products & Services > Payment Methods.
- Click Setup Pix. On the Pix key setup page, your Pix keys (tax ID, email, or phone number) are pre-populated from your profile. Review the details and select Save.
After enabling Pix, go to Payment methods > Go to Pix profile to view your keys, set or update your preferred key for withdrawals, enable additional keys, or manage your Pix settings.
Request approval to enable Pay with Pix
If you don't see Pay with Pix in your dashboard, request approval by visiting the links below:
- Sandbox: https://www.sandbox.paypal.com/unifiedonboarding/entry?country.x=BR&products=PIX
- Live: https://www.paypal.com/unifiedonboarding/entry?country.x=BR&products=PIX
Pix payments are activated after PayPal verifies eligibility and completes a compliance review. Ensure your account is configured to accept payments in BRL, as all Pix payments are settled in BRL.
Partners: Ensure merchants complete the full onboarding process before they can accept Pix payments. Progressive onboarding is not supported.