[Feature] Dedicated Api classes for each gateway factories
Closed this issue · 0 comments
Prometee commented
The PR of @Vogeslu make me rethink how the Api/Key
class have to be used and maybe have to be renamed. I'm thinking about getting dedicated Api
classes for each gateway factories like this :
- StripeCheckoutSession :
FluxSE\PayumStripe\Api\StripeCheckoutSessionApi
using traits :
-FluxSE\PayumStripe\Api\KeysAwareTrait
-FluxSE\PayumStripe\Api\AuthorizeApiAwareTrait
Finally add getter/setter forpayment_method_types
or a dedicated trait
- StripeJs :
FluxSE\PayumStripe\Api\StripeJsApi
extendsFluxSE\PayumStripe\Api\AbstractStripeKeys
using traitFluxSE\PayumStripe\Api\AuthorizeApiAwareTrait