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/sdkVanilla 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/reactReact 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.0CoverPaySDKSwift 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/nodeServer-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
v1Base 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 headerFormat: JSON request and response bodies
