@trustshare/rest
TypeScript icon, indicating that this package has built-in type declarations

1.0.24 • Public • Published




REST Client
Simple borderless payments infrastructure for marketplaces.
Embedded fintech done right - whether that's escrow, credit, banking or payments.
Design your payment flow with our borderless API.

Home | Documentation | Dashboard

📖 Documentation

See our in-depth documentation to learn how you can use the trustshare REST client to integrate with our platform.

🔧 Installation

To use the REST client on your back-end service, you can easily install our package from NPM:

# via npm:
npm install --save @trustshare/rest

# via yarn
yarn add @trustshare/rest

🚀 Quick start

To use our client, you will need to sign up or log in to the dashboard to acquire a private API key used to instantiate the REST client. You can use our handy getting started guide that describes setting up your organisation on the dashboard.

Once you have access to your organisation's private key, you can easily instantiate and start using the REST client. With all this out of the way, you can use the newly set up client to achieve tasks needed for integration such as creating a payment intent.

import rest from '@trustshare/rest';

const trustshare = rest('<YOUR_PRIVATE_API_KEY>');

const result = await trustshare.v1.createPaymentIntent({ ... });

Readme

Keywords

none

Package Sidebar

Install

npm i @trustshare/rest

Weekly Downloads

1

Version

1.0.24

License

ISC

Unpacked Size

428 kB

Total Files

23

Last publish

Collaborators

  • f5io
  • badrequest400
  • srsholmes
  • trustshare-bot