v1.0

SDKs & Libraries

Official SDKs make it easy to integrate Vexutopia into your application with idiomatic interfaces for your preferred language.

SDKs Coming Soon

Official libraries are in development

We're actively building official SDKs for popular languages. In the meantime, you can integrate directly with the REST API using standard HTTP libraries.

Planned SDKs

JavaScript / Node.js

npm install vexutopia

In Development
Python

pip install vexutopia

Planned
Ruby

gem install vexutopia

Planned
Go

go get vexutopia.com/go

Planned

Direct API Integration

While SDKs are in development, you can integrate directly with the REST API. Here are examples in common languages:

JavaScript (fetch)

JavaScript
const VEXUTOPIA_API_KEY = process.env.VEXUTOPIA_API_KEY;
const BASE_URL = 'https://api.vexutopia.com/v1';

async function createPayment(amount, currency) {
  const response = await fetch(`${BASE_URL}/payments`, {
    method: 'POST',
    headers: {
      'Authorization': `Bearer ${VEXUTOPIA_API_KEY}`,
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({ amount, currency })
  });

  if (!response.ok) {
    const error = await response.json();
    throw new Error(error.error.message);
  }

  return response.json();
}

// Usage
const payment = await createPayment(2000, 'usd');
console.log(payment.id);

Python (requests)

Python
import os
import requests

VEXUTOPIA_API_KEY = os.environ.get('VEXUTOPIA_API_KEY')
BASE_URL = 'https://api.vexutopia.com/v1'

def create_payment(amount, currency):
    response = requests.post(
        f'{BASE_URL}/payments',
        headers={
            'Authorization': f'Bearer {VEXUTOPIA_API_KEY}',
            'Content-Type': 'application/json'
        },
        json={'amount': amount, 'currency': currency}
    )
    response.raise_for_status()
    return response.json()

# Usage
payment = create_payment(2000, 'usd')
print(payment['id'])

cURL

cURL
curl https://api.vexutopia.com/v1/payments \
  -H "Authorization: Bearer $VEXUTOPIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount": 2000, "currency": "usd"}'

Community Libraries

Community-maintained libraries are welcome. If you've built one, let us know and we'll list it here.

No community libraries yet

Be the first to contribute!

Get Notified

Want to know when official SDKs are released? Follow our updates: