mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-26 05:55:15 +00:00
We currently ask the credit card first which payment actions like "void" it supports. But all the logic is not card specifc. It depends on the payment method which actions it supports. And instead of having two different classes potentially being the source of truth for actions, I prefer leaving that responsibility with exactly one class, the payment method. I'll move the `can_?` methods next.