Avocarrot / tipalti

Generate tipalti urls

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tipalti

Helper to generate tipalti urls.

Use

const { TipaltiUrl, TipaltiHash, TipaltiUser } = require('tipalti');

const hash = new TipaltiHash('unique_secret_key', 'Payer LTD');

const user = new TipaltiUser('id_used_as_idap', 'john.doe@mail.com');

const sandbox = true;
const url = (new TipaltiUrl(hash, sandbox)).get(user);

console.log(url.dashboard);//iframe url for dashboard
console.log(url.invoices);//iframe url for invoices
console.log(url.payments);//iframe url for payments list

About

Generate tipalti urls

License:MIT License


Languages

Language:JavaScript 100.0%