Installation & Configuration
How to install the prism library?
Start by installing the library from your terminal, using the programming language of your choice. This should be followed by configuring the environment and payment processor API keys to proceed with the next steps.
The below examples are templates for configuring Stripe and Adyen.
Prerequisites
Stripe test API key (get one at stripe.com)
Adyen test API key (get one at adyen.com/signup)
npm install hyperswitch-prismconst { PaymentClient } = require('hyperswitch-prism');
// Configure Stripe client
const stripeConfig = {
connectorConfig: {
stripe: { apiKey: { value: process.env.STRIPE_API_KEY } }
}
};
const stripeClient = new PaymentClient(stripeConfig);
// Configure Adyen client
const adyenConfig = {
connectorConfig: {
adyen: {
apiKey: { value: process.env.ADYEN_API_KEY },
merchantAccount: process.env.ADYEN_MERCHANT_ACCOUNT
}
}
};
const adyenClient = new PaymentClient(adyenConfig);That would be all. The SDK handles native library loading automatically. Start building in the First Payment.
Minimum version supported
The prerequisites are:
Node.js: 16+ (FFI bindings require native compilation)
Python: 3.9+ (uses
ctypesfor FFI)Java: 11+ (uses JNI bindings)
Last updated
Was this helpful?

