Consider creating a base Stripe gateway for better code reusability

Created on 2 April 2023, almost 2 years ago

I'm working on implementing an integration for stripe SEPA and found that a lot of the code in the stripe payment gateway can be inherited except for some cases where credit card specific code is added.
I think there's a case for introducing a new StripeBase payment gateway that handles everything related to the main configuration fields, refunds, creating payments while the subclasses will handle the creation of payment methods based for their specific payment method.
We can also consider adding checks in the stripe review pane for a new ImplementsCreditCard interface instead of the generic StripeInterface.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇯🇴Jordan mhawwari

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024