These are chat archives for Payum/Payum
PHP 5.5+ Payment processing library. It offers everything you need to work with payments. From simplest use cases to very advanced ones.
because the BasePayment does not implement \ArrayAccess...
true. It implements another interface
and the magic happens here
So theres a api endpoint for getting the list of the available banks... would that be inself an action? (e.g. RetrieveiDealBanks)
which will do the api call... and return the list of banks
@lunetics that sounds good. The logic splitted into several actions make it easy to overwrite or extended it by others. If it is not important or you do not expect that part to be extended you can put it in one place
which gateway has it implemented this way?
I've not done anything like that
what do you think is the better approach?
The api class is dumb, It just takes data and performs an external call. The action is where the whole should remain.