WR-18426 - Adds Payments API and migrates SDK to HTTP client - #16
Merged
Merged
Conversation
This commit introduces the `Wayroo.Payments.SDK`, providing an in-process client for reading payment provider configurations. It mirrors the `Wayroo.Notification.SDK` pattern, allowing consumers to inject an `IClient` to retrieve data without directly depending on the data access layer. To ensure binary compatibility across various consumers (e.g., applications targeting `net8.0` and services targeting `net10.0`), the `Wayroo.Payments.Models`, `Wayroo.Payments.DataAccess`, and `Wayroo.Payments.SDK` projects are updated to multi-target both frameworks. The `Wayroo.Payments.DataAccess` project is made an internal dependency of the SDK package, bundling its DLLs without exposing it as a direct dependency.
…hant-ware-configuration
This commit introduces the Wayroo Payments HTTP API, decoupling the service from consumers that previously relied on its internal data access layer. The Wayroo.Payments.SDK is refactored to use Refit for HTTP communication with the new API, aligning the Payments service with the organization's standard microservice architecture and SDK patterns. The changes include: - New `Wayroo.Payments.API` project with API versioning, Swagger, OpenTelemetry (X-Ray), and health checks. - Updated `Wayroo.Payments.SDK` to be a typed HTTP client. - AWS CDK infrastructure for deploying the API as an ECS Fargate service with auto-scaling and Cloud Map service discovery.
steven-palomino
force-pushed
the
WR-18426-http-api
branch
from
June 4, 2026 17:49
efee296 to
306ed28
Compare
AndyDavisRS
requested changes
Jun 15, 2026
steven-palomino
force-pushed
the
WR-18426-http-api
branch
from
June 16, 2026 14:44
4104f74 to
1698c8c
Compare
AndyDavisRS
approved these changes
Jun 17, 2026
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.
Summary
Adds an HTTP API in front of the payments DynamoDB so composites read configs over HTTP instead of sharing the data layer (addresses prior PR
feedback). Rewrites Wayroo.Payments.SDK as a Refit client and adds a CDK Fargate construct mirroring Notification/ContentLibrary.
Changes
Tests
5 new API controller tests, 6 new manager tests, all passing. Builds clean.
Before deploy
{env}-payments-service-role IAM role, wayroo.payments ECR repo, pipeline vars for ECS SG + Cloud Map, Docker build step,
{{Endpoints.Micro.WayrooPayments}} template entry.