Skip to main content
This integration requires access to both Rain’s card issuance API and Crossmint’s wallet services.

Introduction

This guide shows you how to integrate Rain’s card issuance platform with Crossmint wallets to build a complete crypto-to-credit card application. You’ll learn how to create an app where users can sign up, issue a Visa card, and fund them directly from their wallets.
Check out our live demo to see the integration in action before building your own.
What you’ll build:
  • Virtual Visa card issuance
  • Crypto-to-card funding with RUSD tokens
  • Real-time balance and transaction monitoring
Tech Stack:

Prerequisites

Rain API Key

Get your Rain Staging API key with card issuance permissions

Crossmint API Key

Get your Crossmint Staging API key with wallet and transaction scopes

Next.js Project

Set up a Next.js project with App Router enabled for server actions: npx create-next-app@latest my-rain-crossmint-app

Install Dependencies

Integration Steps

1

Set up Crossmint Authentication and Wallet Providers

Set up the complete Crossmint provider stack with authentication and wallet functionality. This enables users to sign in and automatically creates wallets for them. This example uses Crossmint Auth for simplicity, but for production you should bring your own auth provider.
app/providers.tsx
app/layout.tsx
2

Add Environment Configuration

Set up your environment variables for both Rain and Crossmint APIs.
.env
3

Build the Rain Integration Layer

Create Next.js server action functions to handle Rain API calls securely on the server side. This keeps your Rain API key secure and provides a clean interface for your React components.
actions/rain.ts
4

Create the Main Integration Component

Build a React component that handles both authentication and the Rain integration flow in one place.
components/rain-integration.tsx
5

Wire Everything Together

Update your main page component to use the RainIntegration component directly.
app/page.tsx

Next Steps

Learn Token Transfers

Send tokens between wallets and external addresses

Bring Your Own Auth

Use your own authentication system with Crossmint

Staging vs Production

Learn about staging and production environments

Need Help?

Contact Sales

Contact our team if you’re interested in planning your integration.

Resources