Test your integration

DocsCurrent

Last updated: Sept 26th, 5:44am

Test your integration

Validate that your integration handles both successful and unsuccessful onboarding flows before going live. Use the following negative testing scenarios in the PayPal sandbox to ensure your application responds correctly to verification failures.

Negative testing scenarios

When testing your Partner SDK integration, simulate the following verification failure scenarios using the specified test values.

CIP verification failure for non-legal entities

Test scenario Test value Response code Verification failure
Individual merchant verification for name, DOB, SSN, or address Use DECLINED for Primary Account User (PAU) First Name 310 CIP verification failure

CIP verification for legal entities

Test scenario Test value Response code Verification failure
Business entity verification for business party info (Business address, Identity, Business Registration Number) Use DECLINED for Business Name and Primary Account User (PAU) First Name 321/322/323 CIP failure for legal entities

Beneficial owner CIP verification failure

Test scenario Test value Response code Verification failure
Beneficial Owner stakeholder verification for name, DOB, SSN, or address Use DECLINED for Primary Account User (PAU) First Name 500/501/502 Beneficial Owner CIP stakeholder failure

Go live

Update to production environment:

Switch from sandbox to production API endpoints:

  • Change SDK URL from https://www.paypalobjects.com/sdk/v1/js/sandbox.partner.js to https://www.paypalobjects.com/sdk/v1/js/partner.js
  • Update API base URL from https://api-m.sandbox.paypal.com to https://api-m.paypal.com

Replace sandbox credentials with production credentials:

  • Use your production Client ID and Client Secret.
  • Ensure your production PayPal business account is approved for Embedded Integration.

Deploy and test your production integration to confirm everything works correctly.