/

SDKs & Libraries

Official client libraries with type-safe interfaces, automatic retries, idempotency, and built-in encryption.

Type-Safe

Full type definitions in every language

Auto-Retry

Exponential backoff on transient errors

Encrypted

RSA+AES encryption built in

JS

Node.js

v2.4.0 · GitHub

Installation

npm
npm install @wyrr/node

Quick Example

1const Wyrr = require('@wyrr/node');
2
3const client = new Wyrr({
4  apiKey: process.env.WYRR_API_KEY,
5  apiSecret: process.env.WYRR_API_SECRET
6});
7
8const collection = await client.collections.create({
9  amount: 5000,
10  currency: 'USD',
11  paymentMethod: 'card'
12}, { idempotencyKey: 'my-unique-key' });
13
14console.log(collection.id);
PY

Python

v3.1.0 · GitHub

Installation

pip
pip install wyrr

Quick Example

1import wyrr
2
3client = wyrr.Client(
4    api_key="wyrr_live_pk_...",
5    api_secret="wyrr_live_sk_..."
6)
7
8collection = client.collections.create(
9    amount=5000,
10    currency="USD",
11    payment_method="card",
12    idempotency_key="my-unique-key"
13)
14
15print(collection.id)
GO

Go

v1.8.0 · GitHub

Installation

go get
go get github.com/wyrr/wyrr-go

Quick Example

1package main
2
3import (
4    "context"
5    "fmt"
6    "github.com/wyrr/wyrr-go"
7)
8
9func main() {
10    client := wyrr.NewClient(
11        wyrr.WithAPIKey("wyrr_live_pk_..."),
12        wyrr.WithAPISecret("wyrr_live_sk_..."),
13    )
14
15    col, _ := client.Collections.Create(
16        context.Background(),
17        &wyrr.CollectionParams{
18            Amount:   5000,
19            Currency: "USD",
20        },
21    )
22
23    fmt.Println(col.ID)
24}
JV

Java

v4.2.0 · GitHub

Installation

Maven
<!-- Maven -->
<dependency>
  <groupId>com.wyrr</groupId>
  <artifactId>wyrr-java</artifactId>
  <version>4.2.0</version>
</dependency>

// Gradle
implementation 'com.wyrr:wyrr-java:4.2.0'

Quick Example

1import com.wyrr.WyrrClient;
2import com.wyrr.model.Collection;
3import com.wyrr.param.CollectionCreateParams;
4
5WyrrClient client = WyrrClient.builder()
6    .apiKey("wyrr_live_pk_...")
7    .apiSecret("wyrr_live_sk_...")
8    .build();
9
10Collection collection = client.collections().create(
11    CollectionCreateParams.builder()
12        .amount(5000L)
13        .currency("USD")
14        .paymentMethod("card")
15        .build()
16);
17
18System.out.println(collection.getId());
PHP

PHP

v1.6.0 · GitHub

Installation

Composer
composer require wyrr/wyrr-php

Quick Example

1<?php
2require 'vendor/autoload.php';
3
4$client = new \Wyrr\Client([
5    'api_key' => 'wyrr_live_pk_...',
6    'api_secret' => 'wyrr_live_sk_...'
7]);
8
9$collection = $client->collections->create([
10    'amount' => 5000,
11    'currency' => 'USD',
12    'payment_method' => 'card'
13], [
14    'idempotency_key' => 'my-unique-key'
15]);
16
17echo $collection->id;