Create
Last updated
Was this helpful?
Was this helpful?
const { CustomerClient } = require('hyperswitch-prism');
const customerClient = new CustomerClient({
connector: 'stripe',
apiKey: 'YOUR_API_KEY',
environment: 'SANDBOX'
});const request = {
merchantCustomerId: "cust_user_12345",
email: "john.doe@example.com",
name: "John Doe",
phone: "+1-555-123-4567",
description: "Premium plan subscriber"
};
const response = await customerClient.create(request);{
merchantCustomerId: "cust_user_12345",
connectorCustomerId: "cus_xxx",
status: "ACTIVE",
statusCode: 200
}