DaffCartPaymentMethodAdd
This action is temporary until custom reducers can be injected by the @daffodil/paymentSource modules. Right now, the payment modules need a way to update cart state with a payment token.
todo: remove when possible.
import { DaffCartPaymentMethodAdd } from '@daffodil/cart/state'
class DaffCartPaymentMethodAdd<<T extends DaffCart = DaffCart>> implements Action {
readonly type: DaffCartPaymentActionTypes.CartPaymentMethodAddAction
payload: T['payment']
}
Properties
Name | Type | Description |
---|---|---|
type | DaffCartPaymentActionTypes.CartPaymentMethodAddAction | |
payload | T['payment'] |