The FRAGMENT Payments API uses OAuth2 client credentials for authentication. You'll need a Client ID and Client Secret from the FRAGMENT Dashboard.
The token endpoint is:
https://auth.us-west-2.fragment.dev/oauth2/tokennpm install @fragment-dev/ts-nodeimport Fragment from '@fragment-dev/ts-node';
const client = new Fragment({
clientId: process.env['FRAGMENT_CLIENT_ID'],
clientSecret: process.env['FRAGMENT_CLIENT_SECRET'],
});The Payments API provides the following resources: