Skip to content

Commit 45a99ad

Browse files
committed
Register payment methods via action hook
Replace the large, hardcoded payment method registration block in Plugin::register_payment_methods() with a do_action('pronamic_pay_register_payment_methods', $this->payment_methods) call. Remove the ImageService import and delegation of default method registrations so integrations and external packages can register payment methods in plugin space. Update CHANGELOG.md to document the new action, the changed registration flow, the move of Pronamic default methods to the pronamic-pay-default-payment-methods package, and a fix for Billink and Focum image assignment.
1 parent e3e7cd2 commit 45a99ad

2 files changed

Lines changed: 18 additions & 549 deletions

File tree

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C
66

77
## [Unreleased][unreleased]
88

9+
### Added
10+
11+
- Added the `pronamic_pay_register_payment_methods` action to register payment methods in plugin space.
12+
13+
### Changed
14+
15+
- Updated payment method registration flow so payment methods are registered via the `pronamic_pay_register_payment_methods` action.
16+
- Moved Pronamic default payment method registration out of core and into the [`pronamic/pronamic-pay-default-payment-methods`](https://github.com/pronamic/pronamic-pay-default-payment-methods) package.
17+
18+
### Fixed
19+
20+
- Fixed image assignment for Billink and Focum in default payment method registration (now in [`pronamic/pronamic-pay-default-payment-methods`](https://github.com/pronamic/pronamic-pay-default-payment-methods)).
21+
922
## [4.32.0] - 2026-03-23
1023

1124
### Added

0 commit comments

Comments
 (0)