PlayTubeVideo

PayPal payments

Configure PayPal credentials and webhooks for wallet recharge, tickets, subscriptions and supported paid content.

P

PayPal checkout

Always test in Sandbox before enabling Live mode.

1. Create a PayPal application

Open PayPal Developer, sign in and open My Apps & Credentials.

  1. Choose the Sandbox tab for testing.
  2. Create an application and record the generated client ID and secret.
  3. Repeat or switch to the Live tab only after sandbox testing is complete.

2. Copy credentials

Keep the PayPal Client ID and Client Secret private. Never put live credentials in screenshots, frontend code or public repositories.

3. Configure the webhook

In PayPal, add a webhook pointing to:

https://YOUR_DOMAIN/payment/IPN

Select the events required by your installed payment flow. Use the exact public HTTPS domain and confirm the webhook is active.

4. Configure the admin panel

Open PUBLIC_URL/video-admin/payments. Enable PayPal, choose Sandbox or Live mode, paste the credentials and configure transaction fees/currency options.

5. Test in Sandbox

  • Use a PayPal Sandbox buyer account.
  • Test successful, cancelled and failed payments.
  • Verify wallet balance, transaction state, commission, notification and email records.
  • Confirm webhook delivery and server logs.

6. Go live

Switch credentials and mode only after testing. Recheck the webhook URL, currency, return URLs, SSL certificate and payout account before accepting real money.

Payment safety: never share client secrets, webhook secrets or buyer credentials with support. Redact transaction data in screenshots.