UNPKG

@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

28 lines 827 B
import { PaymentAdapter, PaymentDirector } from '@unchainedshop/core'; import { PaymentProviderType } from '@unchainedshop/core-payment'; const Invoice = { ...PaymentAdapter, key: 'shop.unchained.invoice', label: 'Invoice', version: '1.0.0', initialConfiguration: [], typeSupported: (type) => { return type === PaymentProviderType.INVOICE; }, actions: (config, context) => { return { ...PaymentAdapter.actions(config, context), configurationError: () => { return null; }, isActive: () => { return true; }, isPayLaterAllowed: () => { return true; }, }; }, }; PaymentDirector.registerAdapter(Invoice); //# sourceMappingURL=invoice.js.map