0.5.2 • Published 3 years ago

payrexx v0.5.2

Weekly downloads
1
License
ISC
Repository
-
Last release
3 years ago

Payrexx NodeJS SDK

Payrexx NodeJS/TS API Wrapper https://github.com/WeslleyDeSouza/payrexx-nodejs

📦 Installation

🔁 Transpile TS to JS

🔨 Implemented

Signature

  • checkSignature ✔️

Paylink

  • get ✔️
  • create ✔️
  • delete ✔️

Gateway

  • get ✔️
  • create ✔️
  • delete ✔️

Subscriptions

  • login ✔️
  • create ✔️
  • update ✔️
  • delete ✔️

Transactions

  • get 🔨
  • charge 🔨
  • refund 🔨
  • create 🔨

Documentation

For further information, please refer to the official REST API reference: https://developers.payrexx.com/v1.0/reference

Examples

  • Paylink:
   let PAYR = new PayRexx( auth.instance, auth.secret);

   const payment = await PAYR.paylink.create({
       "title":       "Item_423",
       "description": "Product_Selling_XY",
       "psp":             1,
       "referenceId": "test",
       "purpose":     "test",
       "amount":        10,
       "vatRate" :      0,
       "currency":     "CHF",
       "sku":           "20.19.03.1",
       "preAuthorization": false,
       "reservation":      0,
   });


   console.log('PAYR.payment',payment.id)
   console.log('-----------------------------------------');

   const _get = await PAYR.payment.get(payment.id)
   console.log(_get)
   console.log('-----------------------------------------');

   const _delete = await PAYR.payment.delete(payment.id)
   console.log(_delete.status);
  • Gateway:
const gateway = await PAYR.gateway.create({
    "amount": 8925,
    "vatRate": 7.7,
    "currency": "CHF",
    "sku": "P01122000",
    "preAuthorization": false,
    "reservation": 0,
    "successRedirectUrl": "https://www.merchant-website.com/success",
    "failedRedirectUrl":  "https://www.merchant-website.com/failed"
});


console.log('PAYR.gateway',gateway.id)
console.log('-----------------------------------------');

const _get = await PAYR.gateway.get(gateway.id)
console.log(_get)
console.log('-----------------------------------------');

const _delete = await PAYR.gateway.delete(gateway.id)
console.log(_delete.status);
0.5.2

3 years ago

0.5.0

3 years ago

0.5.1

3 years ago

0.0.1

3 years ago

0.3.0

3 years ago

0.3.6

3 years ago

0.3.5

3 years ago

0.3.8

3 years ago

0.3.7

3 years ago

0.4.1

3 years ago

0.3.2

3 years ago

0.4.0

3 years ago

0.3.1

3 years ago

0.4.3

3 years ago

0.3.4

3 years ago

0.4.2

3 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.1

4 years ago

0.2.2

4 years ago

0.2.0

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.9

4 years ago

0.1.6

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.5

4 years ago

0.1.3-beta

4 years ago

0.1.2-beta

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago