Page cover

OxaPay

🔐 Introduction

OxaPay is a fast, secure, and developer-friendly crypto payment gateway that allows businesses and platforms to seamlessly accept, send, and swap cryptocurrencies. This integration empowers you to provide efficient, secure, and quick transactions, all without the need for extensive KYC procedures.

With OxaPay, you can:

  • ✅ Accept crypto payments from customers

  • 💵 Send payouts to users, freelancers, or partners

  • 🔁 Instantly swap between cryptocurrencies

  • 🔧 Integrate everything easily via RESTful APIs


🌐 Key Features

💸 Payment

Accept Crypto Payments from Customers Seamlessly accept cryptocurrency payments via auto generated wallet addresses or invoice links.

  • Instant wallet address generation

  • White-label support for custom branding

  • Invoice link

  • Real-time webhook notifications

  • Multi-currency & multi-network support


💵 Payout

Send Crypto Instantly Automate payouts in crypto to anyone, anywhere.

  • Fast and secure transfers

  • Real-time webhook notifications

  • Great for affiliate systems, rewards, freelancers


🔁 Swap

Instant Crypto Exchange Convert one crypto to another instantly and securely.

  • Real-time rates

  • Transparent conversion

  • Supports multiple crypto


⚡️ Why OxaPay?

  • ✅ No complex KYC

  • 🔐 Secure & reliable API

  • 🚀 Fast setup and integration

  • 📞 24/7 dedicated support


🔗 Learn more at oxapay docs

🚀 Getting Started

To get started with the Bots.business integration with OxaPay, follow these steps:

  1. Generate an OxaPay account and obtain your API key by referring to the OxaPay Integrations.

  2. Set your generated API keys with the following sample codes:

  1. Install the Webhook Library from the Bots.business library store to receive real-time payment and payout notifications (callback data).

⚙️ Calling API Method

You can interact with the OxaPay API by using the apiCall method. This method accepts four parameters:

  • url: Specify OxaPay endpoints, such as '/payment/invoice' or '/payout' (refer to the OxaPay documentation for a full list of endpoints).

  • method: Specify the HTTP method for the request, either POST or GET, depending on the API endpoint requirements.

  • fields: Provide an object containing input parameters relevant to the chosen endpoint. Refer to the API documentation for specific details.

  • on_success: Define your custom logic to handle the output of the method.

🌐 Available URLs

💸 Payment Endpoints

Endpoint
Method
Description

/payment/invoice

POST

Create a payment invoice

/payment/white-label

POST

Generate white-label payment

/payment/static-address

POST

Create static wallet address

/payment/static-address/revoke

POST

Revoke a static address

/payment/{track_id}

GET

Retrieve payment details by track ID

/payment

GET

Get a list of all your payment records

/payment/accepted-currencies

GET

List of your allowed cryptocurrencies

💵 Payout Endpoints

Endpoint
Method
Description

/payout

POST

Send crypto payments

/payout/{track_id}

GET

Retrieve payout details by track ID

/payout

GET

Get a list of all your payout records

🔁 Swap Endpoints

Endpoint
Method
Description

/general/swap

POST

Create a new crypto swap request

/general/swap

GET

Get a list of your swap history

/general/swap/pairs

GET

Get a list of supported currency swap pairs

/general/swap/calculate

POST

calculate output amount for a given swap request

/general/swap/rate

POST

Get real-time exchange rate between two currencies

📚 Common Endpoints

Endpoint
Method
Description

/general/account/balance

POST

Get your current account balance

/common/prices

GET

Get real-time crypto prices

/common/currencies

GET

List supported cryptocurrencies

/common/fiats

GET

List supported fiat currencies

/common/networks

GET

List supported blockchain networks

Feel free to explore these endpoints to build powerful crypto payment solutions with Bots.business and OxaPay.

📝 Examples

Explore practical examples of integrating Bots.business with OxaPay.

Payment Example: Create White Label

  • Execute the paytrx command to create a white-label payment.

  • Provide necessary options such as amount, currency, pay_currency, lifetime, order_id, and on_callback.

  • The onCreatePaymentWithTRX command handles the output, generating a QR code and providing payment details.

Command /payTrx

Command /onCreatePaymentWithTRX

Payment Callback

  • When payment status changes, the /onCallbackPayment command processes the status and notifies users accordingly.

Command /onCallbackPayment

Payout Example: Generate Payout

  • Use the transfer command to initiate a payout.

  • Specify options like amount, currency, address, and on_callback.

  • The onTransfer command captures the result, notifying users about the payout status.

Commend /transfer

Command /onTransfer

Payout Callback

  • The /onCallbackPayout command reacts to payout status changes and keeps users informed.

Command /onCallbackPayout

Swap Example: Swap Request

  • Execute the command swapBtc.

  • Provide necessary options such as amount, from_currency and to_currency.

  • The onSwapResponse command will handle the API response.

Command /swapBtc

Command /onSwapResponse

Last updated

Was this helpful?