# Getting Started

Welcome to HivePay! This guide will help you get started with accepting Hive blockchain payments in your application.


# Overview

HivePay provides a simple, Stripe-like API for accepting HIVE and HBD payments. The integration process consists of three main steps:

  1. Register - Create a merchant account
  2. Authenticate - Get your API key
  3. Integrate - Add payments to your application

# Prerequisites

Before you begin, you'll need:

  • A Hive blockchain account (to receive payments)
  • A web application or service where you want to accept payments
  • Basic knowledge of REST APIs or one of our SDKs

# Quick Start

# 1. Register as a Merchant

Visit the HivePay Dashboard to create your merchant account:

  • Enter your business name
  • Provide your Hive account username
  • Optionally add a logo URL

Registration Guide
registration/

# 2. Save Your API Key

After registration, you'll receive an API key. Save it securely - it cannot be retrieved later.

Authentication Guide
authentication/

# 3. Create Your First Payment

import { HivePay } from '@hivepay/client';

const hivepay = new HivePay({ apiKey: 'sk_live_xxx' });

const payment = await hivepay.payments.create({
  amount: '10000',      // 10.000 HIVE
  currency: 'HIVE',
  description: 'Order #123'
});

// Redirect user to checkout
window.location.href = payment.checkoutUrl;
curl -X POST https://hivepay.me/api/public/payments \
  -H "Authorization: Bearer sk_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": "10000",
    "currency": "HIVE",
    "description": "Order #123"
  }'

# Next Steps