Prepay Accounts
  • Welcome!
  • Quick Start
  • API Reference
    • Balance Accounts
      • Transactions
      • Recharge settings
      • Refunds
Powered by GitBook
On this page
  • Step 1: Register in Prepay.dev
  • Step 2: Connect to Stripe
  • Step 3: API Key Generation
  • Step 4: Install SDK
  • Step 5: Create Your First Account
  • Step 6: Make Your First Transaction
  • Step 7: Configure Automatic Recharge Settings
  • Step 8: Transfer Funds Between Accounts
  • Step 9: Explore Advanced Features
  • Need Assistance?

Quick Start

Welcome to the Quickstart Guide for Prepay.dev! This guide is designed to help you swiftly integrate and utilize Prepay.dev in your system. By following these steps, you'll gain a comprehensive understanding of how to effectively implement our prepayment solution.

Step 1: Register in Prepay.dev

To begin, you need to register and set up your Prepay.dev account:

  • Visit the prepay.dev signup page.

  • Complete the registration form with details like company name, email, and password.

  • Verify your email by clicking the confirmation link sent to your inbox.

Step 2: Connect to Stripe

Integrate your Stripe account with Prepay.dev:

  • Log in to your Prepay.dev dashboard.

  • Go to the 'Stripe Integration' section.

  • Follow the instructions to connect your Prepay.dev account with your Stripe account.

Step 3: API Key Generation

Generate an API key for secure API interactions:

  • In the dashboard, navigate to the 'API Keys' section.

  • Click 'Create New API Key'.

  • Save your API key securely, as it's crucial for authenticating your API requests.

Step 4: Install SDK

For smoother integration, use our SDKs available for various programming languages:

# For example, to install our Python SDK, you would use:
pip install prepaydev-sdk

Step 5: Create Your First Account

Start by integrating Prepay.dev into your application to manage client accounts:

# Python example for creating a new account
from prepaydev import Client

# Initialize the client
client = Client(api_key='your_api_key_here')

# Create a new prepayment account
account = client.accounts.create(client_id='stripe_customer_id')
print(f"New account created: {account.id}")

Step 6: Make Your First Transaction

Begin managing transactions for your clients:

# Record a service usage
client.accounts.record_usage(account_id=account.id, amount=20)

# Add funds to an account
client.accounts.add_funds(account_id=account.id, amount=50)

Step 7: Configure Automatic Recharge Settings

To ensure uninterrupted service, configure automatic recharge settings for each account:

  1. Enable Auto-Recharge: Decide whether an account should have automatic recharging enabled.

  2. Set Threshold and Amount:

    • Define a balance threshold at which auto-recharge should trigger.

    • Specify the recharge amount to be added automatically when the threshold is reached.

# Update recharge settings for an account
client.accounts.update_recharge_settings(
    account_id='account_id',
    autorecharge_enabled=True,
    autorecharge_threshold=50,  # Trigger recharge when balance falls below $50
    autorecharge_amount=100     # Recharge $100 automatically
)

Explore this feature to maintain optimal balance levels and prevent service disruptions.

Step 8: Transfer Funds Between Accounts

Transfer funds easily between accounts of the same Stripe customer:

# Transfer funds from one account to another
client.accounts.transfer_funds(source_account_id='source_id', destination_account_id='dest_id', amount=30)

Step 9: Explore Advanced Features

Now that you're familiar with the basics, delve into more complex functionalities:

  • Implement advanced integration techniques.

  • Utilize webhooks and notifications for real-time updates.

  • Follow security best practices to safeguard your transactions.

Need Assistance?

If you face any challenges or have questions, you can contact us at hello@prepay.dev for direct support.

Happy coding, and welcome to the enhanced world of prepayment solutions with Prepay.dev!


This guide offers a clear pathway for new users to get started with Prepay.dev, covering everything from initial setup to conducting transactions and exploring advanced features. It's adaptable to include any additional aspects of your platform as needed.

PreviousWelcome!NextBalance Accounts

Last updated 1 year ago

Refer to our for more details on endpoints and parameters.

API Reference