AventopayAventopay

SDKs

Official Aventopay libraries for Node.js, PHP, Python, Ruby and Go.

Aventopay SDKs are lightweight wrappers around the REST API. They handle auth, HMAC signature, retries. Source code is open on GitHub.

Available libraries

Node.jsv1 stable
@aventopay/node
npm install @aventopay/node
PHPv1 stable
aventopay/aventopay-php
composer require aventopay/aventopay-php
Pythonv1 stable
aventopay
pip install aventopay
RubyBeta
aventopay-ruby
gem install aventopay
GoBeta
github.com/aventopay/aventopay-go
go get github.com/aventopay/aventopay-go

Node.js example

import { Aventopay } from '@aventopay/node';

const client = new Aventopay({
  apiKey: process.env.AVENTOPAY_API_KEY,
  apiSecret: process.env.AVENTOPAY_API_SECRET,
});

const session = await client.sessions.create({
  merchant_id: 'your_merchant_id',
  user_id: 'client_123',
  amount: 5000,
  currency: 'EUR',
});

console.log(session.payment_url);

Contributing

GitHub repos accept PRs. Stable SDKs follow semver; breaking changes go through a 90-day notice.