Skip to main content

Monero Quickstart

This guide will help you quickly integrate Monero (XMR) payments into your application using WhiskyPay.

Prerequisites

  • A React application
  • Node.js 16+ installed
  • npm or yarn package manager
  • Access to a Monero gateway endpoint

Step 1: Installation

Install the Monero Payment SDK package:

Step 2: Basic Integration

Add the Monero payment component to your React application:

Step 3: Configure Gateway URL

The gatewayUrl parameter should point to your Monero payment gateway endpoint. This is typically:
  • Development: http://localhost:3000 or your local development server
  • Production: Your deployed WhiskyPay gateway URL

Step 4: Customization Options

The MoneroPaymentComponent accepts the following props:

Step 5: Handle Payment Events

Implement the callback functions to handle payment events:

Step 6: Using the Programmatic API

For more advanced integrations, you can use the MoneroPayment class directly:

Next Steps