All projects

MACHBANK · 2026

Embedded Merchant Payments (SDK)

Senior Software Engineer

A full payment flow inside partner apps that product can change without a single app release.

TypeScriptNode.jsFastifyServer-Driven UIAWS LambdaAPI GatewayTerraform

The Problem

MACHBANK’s SDK lets partner banking apps offer MACH payments inside their own apps. Paying a business by QR is the core of that, and it is also where product changes come fastest: new copy, promotion banners, merchant details on the receipt, new authorization requirements. Shipping each of these through every partner’s app release was not viable.

What I Built

A server-driven payment flow. The flow’s four screens (payment creation, authorization, execution, and receipt) are composed on the backend with the Server-Driven UI framework and rendered by generic SDK clients. Adding a promotion banner, a tip or comment field, or the merchant’s name on the receipt is a backend deploy.

Security in the flow, not around it.

  • Integrated the bank’s fraud-prevention check into payment creation.
  • Built the authorization step around the SDK’s authentication module. I extended the API Gateway Lambda authorizer with new endpoints and session attributes (session ID, device OS) and made token failures return a clean 401 instead of a 500.
  • Rolled out the MACHPASS regulatory requirement behind a feature flag so it could be switched on by environment.

Observability from day one. Every authorization outcome and every flow close emits a structured analytics event. The SDK logs carry request arguments and sanitized inputs, so a failed payment can be traced from the gateway to the provider.

Platform pieces around the flow.

  • Bootstrapped the SDK’s A/B testing service, including its infrastructure in every environment. This lays the groundwork for serving server-driven screen variants per user.
  • Built an orchestration service for pre-production environments so the SDK can be exercised end-to-end before release.
  • Shipped Terraform configuration for each new service across staging and production.

Technical Challenges

The flow was the first production consumer of the 2026 SDUI platform’s server kit. That made it the place where contract changes met real, older app versions. Migrating it is what exposed a styling field that older Android builds couldn’t decode. Before the final cutover, I proved the legacy and new implementations of all four screens produced structurally identical output, using a parity test suite.

Impact

The merchant payment experience inside partner apps can now be changed — copy, layout, promotions, authorization steps — with a backend deploy instead of coordinated app releases across every partner.