Libraries & SDKs

CoverPay provides official SDKs for the most popular platforms. All libraries are open-source and available on GitHub.

JavaScript SDK

Early accessv0.1.0
@coverpay/sdk

Vanilla JavaScript drop-in modal. Works with any frontend framework or plain HTML.

# Not on npm yet. Email support@coverpayme.com for early access.
Drop-in checkout modalPromise-based APITypeScript types includedTree-shakeable ESM

React SDK

Early accessv0.1.0
@coverpay/react

React components and hooks for CoverPay Link: useCoverPayLink, CoverPayProvider and CoverPayButton.

# Not on npm yet. Email support@coverpayme.com for early access.
useCoverPayLink() hookCoverPayProvider contextCoverPayButton component

iOS SDK

Early accessv0.1.0
CoverPaySDK

Swift Package for iOS. Provides a Plaid-style modal checkout using WKWebView and postMessage bridge.

# Swift Package (iOS 14+). Email support@coverpayme.com for early access.
SwiftUI view modifierUIKit imperative APIWKWebView + JS bridgeiOS 14+

Node.js Server SDK

Early accessv0.1.0
@coverpay/node

Server-side SDK for Node.js. Handles API authentication, webhook signature verification, and typed responses.

# Not on npm yet. Email support@coverpayme.com for early access.
TypeScript 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

v1
Base URL: https://api.coverpayme.com (a cp_test_ key is sandbox, a cp_live_ key is production)
Auth: your secret key in the x-api-key header
Format: JSON request and response bodies
Full API Reference →

Community & Support