Add local Mollie payment stub for development and testing#46
Open
Add local Mollie payment stub for development and testing#46
Conversation
Implements a fully functional local payment provider that simulates the Mollie payment flow without requiring external API connections. New components: - LocalCheckoutProvider: Implements CheckoutProvider interface with in-memory payment storage, automatic status management, and pattern- based testing support. Conditionally activated when Mollie Client bean is absent. - LocalPaymentController: REST API for managing test payments with endpoints to list, view, and update payment statuses. Includes an interactive HTML checkout page that simulates the Mollie payment flow. - Comprehensive documentation in docs/LOCAL_PAYMENT_STUB.md covering setup, usage, API endpoints, testing workflows, and troubleshooting. Configuration changes: - Updated application-local.yml to disable Mollie API key by default, enabling the local stub for development - Added base-url and public-base-url configuration for local environment Features: - Automatic webhook triggering on payment status changes - Support for all payment statuses (PAID, CANCELLED, REFUNDED, ONGOING) - Pattern-based payment IDs for integration testing - In-memory payment storage with full inspection capabilities - Simulated checkout page with visual payment flow - Zero external dependencies for local development The stub provides a complete development environment for testing payment flows across events, activities, and memberships without needing a Mollie account or test API key.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements a fully functional local payment provider that simulates
the Mollie payment flow without requiring external API connections.
New components:
LocalCheckoutProvider: Implements CheckoutProvider interface with
in-memory payment storage, automatic status management, and pattern-
based testing support. Conditionally activated when Mollie Client
bean is absent.
LocalPaymentController: REST API for managing test payments with
endpoints to list, view, and update payment statuses. Includes an
interactive HTML checkout page that simulates the Mollie payment flow.
Comprehensive documentation in docs/LOCAL_PAYMENT_STUB.md covering
setup, usage, API endpoints, testing workflows, and troubleshooting.
Configuration changes:
enabling the local stub for development
Features:
The stub provides a complete development environment for testing
payment flows across events, activities, and memberships without
needing a Mollie account or test API key.