ScribePay
  • Welcome
  • Getting Started
    • Quickstart
  • Basics
    • Chains
      • Mainnet
      • Testnet
    • SDK
    • APIs
    • Register Business
    • How it Works
Powered by GitBook
On this page
  • 1. Register & Connect
  • 2. Create Your Business
  • 3. Activate Your Business
  • 4. Manage Your Business
  • 5. Using the SDK
  • 6. How it Works
  1. Getting Started

Quickstart

Get up and running with our platform in just a few steps! Follow this guide to quickly register, create your business, and start managing transactions.

PreviousWelcomeNextChains

Last updated 4 months ago

  1. Login/Register

    • Click on "Login/Register" on the homepage.

    • Use your Google Account to sign in or create a new account.

  2. Connect MetaMask

    • Open your MetaMask Wallet and connect it to the platform.

    • Ensure MetaMask is on the correct blockchain network you want to use (e.g., Binance Smart Chain or Polygon).


  1. Go to the "Business" page and click "Create Business".

  2. Enter:

    • Business Name

    • Logo

    • Supported Blockchain (e.g., BNB Chain, Polygon)

    • Tokens: Add native tokens (e.g., BNB, MATIC) and stablecoins (e.g., USDT, USDC).

  3. Confirm the wallet address for the business (this can differ from your user wallet).

  4. Save your business.


  1. By default, new businesses are inactive.

  2. Go to the Business page, select your business card, and click "Activate".

  3. Once activated, your business is ready to accept payments.


  • Update Business Details: Change the name, logo, or other settings anytime.

  • Add/Remove Tokens: Customize the tokens your business supports.

  • Add More Chains: Expand your business to support additional blockchain networks.


Easily integrate your application using our SDK.

Installation

npm install scribe-sdk

Basic Example

import { ethers } from "ethers";
import { Payment } from "scribepay-sdk/src";
import { useEffect, useState } from "react";

const Transactions = () => {
  const [provider, setProvider] = useState<ethers.BrowserProvider | undefined>(
    undefined
  );
  const currentTime = Math.floor(Date.now() / 1000);
  const timePlus3Minutes = currentTime + 3 * 60;
  
  const providerConfig: ProviderConfig = {
    apiKey: "xxxxxxxxxxxxxxxxxxxxxxxx"
  };
  const { businessData: bss } = useInitializeSDK(providerConfig);

  return (
    <div>
      <Payment
        amount="0.01" // Amount in Fiat
        expectedDelivery={timePlus3Minutes}
        theme="dark"
        fromCurrency="USD" //Currency Code 
      />
    </div>
  );
};

export default Transactions;

Our platform provides a simple flow for managing blockchain businesses:

  1. Onboarding: Register with Google and connect your wallet via MetaMask.

  2. Business Creation: Set up your business with a wallet, chain, and tokens.

  3. Activation: Activate your business to start accepting payments.

  4. Transactions: Customers pay using supported tokens directly through MetaMask.

This system is designed for flexibility, supporting:

  • Multi-chain businesses.

  • Customizable tokens for payments.

  • Decentralized, secure transactions.

That’s It!

You’re now ready to create and manage your business seamlessly. For advanced features, visit the Detailed Guide.

5. Using the SDK
6. How it Works
1. Register & Connect
2. Create Your Business
3. Activate Your Business
4. Manage Your Business