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

31 lines (23 loc) 647 B
import { IDeliveryAdapter, DeliveryAdapter, DeliveryDirector } from '@unchainedshop/core'; import { DeliveryProviderType } from '@unchainedshop/core-delivery'; const Post: IDeliveryAdapter = { ...DeliveryAdapter, key: 'shop.unchained.post', label: 'Manual', version: '1.0.0', typeSupported: (type) => { return type === DeliveryProviderType.SHIPPING; }, actions: (config, context) => { return { ...DeliveryAdapter.actions(config, context), isActive: () => { return true; }, configurationError: () => { return null; }, }; }, }; DeliveryDirector.registerAdapter(Post);