Skip to main content
This page contains a complete reference implementation for integrating the MoonPay Developer Platform on Web. The implementation is in TypeScript and uses iframes to render MoonPay frames.

Overview

The Web SDK consists of the following files:

Project Setup

package.json
Configuration for generating TypeScript types from the OpenAPI spec. Download the openapi.json file to your project root, then run npm run generate.
openapi-ts.config.ts

Source Files

index.ts
Types are imported from the generated OpenAPI types where possible, with SDK-specific types defined separately.
types.ts
client.ts
api.ts
crypto.ts
Iframe management for check, connect, and Apple Pay frames.
frames.ts