@unchainedshop/plugins
Version:
Official plugin collection for the Unchained Engine with payment, delivery, and pricing adapters
20 lines (19 loc) • 763 B
TypeScript
import status from './status.ts';
import init from './init.ts';
import secureFields from './secureFields.ts';
import authorize from './authorize.ts';
import validate from './validate.ts';
import settle from './settle.ts';
import cancel from './cancel.ts';
import authorizeAuthenticated from './authorizeAuthenticated.ts';
export default function createDatatransAPI(endpoint: string, merchantId: string, secret: string): {
fetchDatatrans: (path: string, body: unknown) => Promise<Response>;
init: typeof init;
authorize: typeof authorize;
validate: typeof validate;
secureFields: typeof secureFields;
status: typeof status;
authorizeAuthenticated: typeof authorizeAuthenticated;
settle: typeof settle;
cancel: typeof cancel;
};