Skip to main content
This guide demonstrates how to use the Swervpay Node.js SDK to create a customer, issue a card, create a collection account, and initiate a payout.

Setup

Create a Swervpay business and copy its business ID and secret key from the dashboard. Keep these credentials on your server and never expose them in browser or mobile-app code. Before using production traffic, complete the go-live checklist.

Install the SDK

Install swervpay-node sdk into your new or existing NodeJS application using any of your favorite package manager.

Usage

NodeJS
Here, the client is initialized with server-side credentials. The customer ID returned from customer creation is then reused when issuing the card and creating the USD collection account. Each operation returns a response that you should persist or inspect before starting the next dependent operation. Persist the customer and collection IDs so you can retrieve their status later and reconcile webhook events.

Next Steps

Other SDKs