Upgrading & Uninstalling
Upgrading Payments
Section titled “Upgrading Payments”Always take a database backup (php vendor/bin/wire db:backup) before upgrading in production.
-
Update the package and refresh modules so ProcessWire runs
___upgrade()automatically:Terminal window composer update trk/processwire-paymentsphp vendor/bin/wire module:refreshphp vendor/bin/wire payments:doctor --json
- Open Setup -> Upgrades (with
ProcessWireUpgrade) or navigate to Modules -> New and use Add Module from Directory (Payments), Add Module from URL, or Add Module from Upload (ZIP archive) to replace the module files. - Click Modules -> Refresh so ProcessWire detects the new version and executes
___upgrade()automatically.
- Replace
site/modules/Payments/with the new release directory. - Open Modules -> Refresh in the ProcessWire Admin (or run
php vendor/bin/wire module:refresh) so___upgrade()executes cleanly.
Uninstalling Payments
Section titled “Uninstalling Payments”Uninstalling Payments from Modules (or via php vendor/bin/wire module:uninstall Payments) triggers ___uninstall(), which removes:
- All internal
PaymentsBlueprintscollections and singletons (gateways, plans, payment links, saved sources, settings). - All managed SQL tables under
entries_tbl_payments_*(ledger transactions,payments_subscriptions,payments_subscription_events, invoices, and webhook logs). - The companion
ProcessPaymentsadmin page at Setup -> Payments. - All four RBAC permissions (
payments-admin,payments-manage,payments-refund,payments-view).