Libraries & SDKs
CoverPay provides official SDKs for the most popular platforms. All libraries are open-source and available on GitHub.
JavaScript SDK
Stablev1.2.0@coverpay/sdkVanilla JavaScript drop-in modal. Works with any frontend framework or plain HTML.
npm install @coverpay/sdkDrop-in checkout modalPromise-based APITypeScript types includedTree-shakeable ESM
React SDK
Stablev1.1.0@coverpay/reactReact components and hooks for CoverPay Link. Includes CoverPayProvider, CoverPayButton, and useCoverPay hook.
npm install @coverpay/reactCoverPayProvider contextCoverPayButton componentuseCoverPay() hookServer component compatible
iOS SDK
Betav0.9.0CoverPaySDKSwift Package for iOS. Provides a Plaid-style modal checkout using WKWebView and postMessage bridge.
Swift Package ManagerSwiftUI view modifierUIKit imperative APIWKWebView + JS bridgeiOS 16+
Node.js Server SDK
Stablev1.0.0@coverpay/nodeServer-side SDK for Node.js. Handles API authentication, webhook signature verification, and typed responses.
npm install @coverpay/nodeTypeScript typesWebhook signature verificationAutomatic retriesPromise-based
REST API
Don't see your language? Use the REST API directly with any HTTP client. All endpoints accept and return JSON.
REST API
v1Sandbox:
https://sandbox.coverpayme.com/v1Production:
https://api.coverpayme.com/v1Auth: Bearer token in Authorization header
Format: JSON request and response bodies