Environment Settings
Why Environment Control Matters?
Environment
Use Case
How to Configure Environment?
const client = new ConnectorServiceClient({
connectors: {
stripe: {
// Use sandbox for development
apiKey: process.env.STRIPE_TEST_API_KEY,
environment: 'test' // or 'live'
},
adyen: {
// Different endpoints for different environments
apiKey: process.env.ADYEN_TEST_API_KEY,
merchantAccount: process.env.ADYEN_TEST_MERCHANT,
environment: 'test' // or 'live'
}
}
});Last updated
Was this helpful?

