@unchainedshop/plugins
Version:
Because of a Typescript issue with upstream "postfinancecheckout", the Postfinance plugin has been disabled from transpilation, import the source ts files from src and enable node_module tsc or copy over the src/payment/postfinance-checkout to your projec
25 lines (23 loc) • 693 B
text/typescript
import makeFetcher from './makeFetcher.js';
import status from './status.js';
import init from './init.js';
import secureFields from './secureFields.js';
import authorize from './authorize.js';
import validate from './validate.js';
import settle from './settle.js';
import cancel from './cancel.js';
import authorizeAuthenticated from './authorizeAuthenticated.js';
export default function createDatatransAPI(endpoint: string, merchantId: string, secret: string) {
const fetchDatatrans = makeFetcher(endpoint, merchantId, secret);
return {
fetchDatatrans,
init,
authorize,
validate,
secureFields,
status,
authorizeAuthenticated,
settle,
cancel,
};
}