GitHub

daffPaymentReducerFactory

The reducer for the payment page state, see DaffPaymentReducerState.

import { daffPaymentReducerFactory } from '@daffodil/payment/state'
const daffPaymentReducerFactory: <T extends DaffPaymentResponse<unknown> = DaffPaymentResponse<unknown>>(actions: string[]) => (state: DaffPaymentReducerState, action: DaffPaymentActions<T>) => DaffPaymentReducerState