Consider creating a base Stripe gateway for better code reusability

Created on 2 April 2023, about 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

  • Issue created by @mhawwari
  • Issue was unassigned.
  • Assigned to TomTech
  • Status changed to Closed: outdated about 1 month ago
  • πŸ‡ΊπŸ‡ΈUnited States TomTech

    Hi @mhawwari,

    The PaymentElement actually supports using multiple different Payment Methods.

    There are currently 8-10 implemented.

    Currently SEPA is not, but only requires implementing a PaymentMethodType to be supported.

Production build 0.71.5 2024