0.3.11 • Published 12 months ago

payrexx-sdk v0.3.11

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Payrexx SDK

Payrexx SDK for NodeJS with TypeScript support.

Supported Payrexx API functionalities:

  • Paylink
  • Gateway
  • QR code
  • Payment Provider
  • Payment Method
  • Payout
  • Transaction
  • Design

Unsupported Payrexx API functionalities:

  • Subscription API is still in experimental state on the Payrexx, hence it will not be supported by this library

Visit the Payrexx for more information.

Disclaimer 🚧

This library is unofficial and is developed independently from the Payrexx payment provider.

Please note that QR code is not fully tested.

How to use 🖥️

Install library by running command

npm i payrexx-sdk

Start by creating the Payrexx client. You will need to provide your Payrexx instance and API secret.

const client = new PayrexxClient('PAYREXX_INSTANCE', 'API_SECRET')

API

API is grouped by Payrexx functionalities:

client.api.paylink
client.api.gateway
client.api.qrCode
client.api.paymentProvider
client.api.paymentMethod
client.api.payout
client.api.transaction
client.api.design

Use examples

Retrieve a paylink
await client.api.paylink.retrieve(id);
Create a paylink
const request = new PaylinkRequest('title', 'description', 'referenceId', 'purpose', amount, 'currency');
request.addField('forename', true, 'Name');
request.addField('surname', false, 'Last Name');

const result = await client.api.paylink.create(request);
Delete a paylink
await client.api.paylink.remove(id)

Requirements

This library requires minimum Node v18 in order to run correctly.

0.3.9

1 year ago

0.3.11

12 months ago

0.3.7

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.8

2 years ago

0.1.6

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago