Repository navigation
[FEATURES] Refactor manual gateway to plugin wise #635
Closed
OwnPay Admin
started this conversation in
General
Replies: 1 comment
Plannedimplementation of the requested features. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
Refactor manual payment gateways from free-form, unlimited rows created in the Manual Gateway setup settings into plugin-based gateways, mirroring how API gateways already work.
Today a merchant (or the platform in All Brands) can create any number of ad-hoc manual gateways from the Manual Gateway setup UI, with no plugin backing them. After this refactor, each manual gateway will be an installable plugin (for example "bKash Personal"), and its manual payment details (number, QR code, logo, introduction/instructions, and so on) will be configured from that plugin's settings screen.
The existing Manual Gateway setup settings will be removed.
Motivation
Current behavior
op_manual_gateways(seedatabase/schema.sql), owned either by the platform (templates) or by a brand (account overrides).src/Controller/Admin/GatewayController.php,templates/admin/gateways/index.twig), via the "Add Manual Gateway" flow.modules/gateways/*with amanifest.json("type": "gateway"), installed/activated through the plugin system, and configured at/admin/plugins/{slug}/settings.Desired behavior
Plugin-based manual gateways
modules/gateways/bkash-personal/with amanifest.jsonmarked as a manual gateway type), alongside existing API gateway plugins.Plugin settings for manual payment details
op_gateway_configsor plugin settings).Removal of the old setup
Migration
op_manual_gatewaysneed a migration path. Options to decide during implementation:Kernel::ensureManualGatewayPaymentNumberColumn).op_manual_gatewaystable may remain as the storage for plugin-configured manual gateway data, or configuration may move to the plugin settings storage (for exampleSettingsRepositorygroups likeplugin.{slug}or gateway config tables). Decide based on what keeps checkout resolution (ManualGatewayRepository::listActiveForCheckout) and SMS verification (SmsVerificationJob) working with minimal churn.Acceptance criteria
CheckoutController/PaymentIntentCheckoutController) renders the plugin-configured manual gateway with its number, QR, logo, and instructions exactly as it does today.tests/Controller/GatewayController*, frontend checkout tests,ServiceTestmanual gateway masking).Out of scope
All reactions