Supported Environments
The PayNext SDK supports different environments for development, testing, and production use:sandboxproduction
Environment Configuration
Configure your environment when initializing the PayNext SDK:Set the
environment property on the object you pass into checkout.mount('element-id', { ...config }) after creating the instance with new PayNextCheckout(), following Mount the Checkout.custom component
Refer to Mount the Checkout for the complete mounting flow.
Environment Details
Sandbox
Sandbox
Testing environment that mimics production behavior without processing real payments.Characteristics:
- Realistic payment flows
- Test card numbers supported
- Full API feature parity
- Safe for integration testing
- No actual charges
- Integration testing
- QA validation
- Demo environments
- Client presentations
- Pre-production testing
sandbox-config component
Refer to Mount the Checkout for the complete mounting flow.
Sandbox is the recommended environment for testing and development.
Production
Production
Live production environment that processes real payments with actual money.Characteristics:
- Real payment processing
- Live card transactions
- Production security standards
- Actual money movement
- Full compliance requirements
- Live customer transactions
- Production applications
- Real e-commerce
- Revenue generation
production-config component
Refer to Mount the Checkout for the complete mounting flow.
Production Considerations
Environment URLs
Each environment connects to different API endpoints:Sandbox
API Endpoint:
Dashboard:
api-sandbox.paynext.comDashboard:
sandbox-dashboard.paynext.comProduction
API Endpoint:
Dashboard:
api.paynext.comDashboard:
dashboard.paynext.comEnvironment Security
Different API keys are required for each environment:api-keys component
Client tokens are safe to use in frontend code. Secret keys must only be used server-side.
Environment Migration Checklist
- Sandbox → Production
- Update the environment to
production - Replace the sandbox client token with production
- Remove test card usage
- Configure production webhooks
- Set up production monitoring
- Verify merchant account settings
- Conduct final testing with small amounts
- Monitor initial production transactions