Skip to content

Visa BNPL

One codebase, two jobs: a client deliverable and a platform for all, delivered with hexagonal architecture, in a regulated frame.

A greenfield Buy Now, Pay Later middleware for Visa’s Pismo.io carried a tension familiar to platform work: deliver the specific thing the client needs now, and leave behind a platform the wider payments ecosystem can build on next. Hexagonal architecture is how it did both, on cloud-native microservices in Java 21 and Kotlin on AWS, with the compliance and observability a regulated payments business demands built in rather than bolted on.

Java 21KotlinAWSKafkaHexagonal

The problem: deliverable, or platform?

A payments deliverable is rarely a one-off. The client needs a working BNPL flow now, but the same organisation wants a platform the broader digital-payments ecosystem can reuse next. Build only the deliverable and the platform becomes a rewrite; build only the platform and the deliverable misses its deadline. Both, from one codebase, is the real requirement.

The bet: hexagonal

Hexagonal architecture, ports and adapters over a domain-driven core, is the resolution. The payment domain, the orchestration logic and the rules live in a technology-agnostic core. The immediate client deliverable is one adapter over that core; the wider platform is the same core with more adapters. The deliverable ships on time, and the platform is not a second project, it is what the core already is.

The hexagonal architecture of the BNPL payment platformA central hexagon is the payment domain core, holding orchestration and rules, technology-agnostic. On the left, two inbound adapters plug into it: the client deliverable (one adapter) and the wider platform (more adapters over the same core). On the right, three driven adapters: Kafka for event streaming, Redis for real-time caching and DynamoDB for NoSQL storage. The whole platform is held to a regulated frame: PSD2 and PCI DSS compliance, with Grafana and Prometheus observability for financial SLAs.Driving adapters (inbound)Driven adapters (outbound)Payment domain coreorchestration + rulestechnology-agnosticClient deliverableone adapterWider platformmore adaptersKafkaevent streamingRedisreal-time cacheDynamoDBNoSQL storeHeld to a regulated frame: PSD2 · PCI DSS · SLA observability (Grafana / Prometheus)
Hexagonal architecture: one payment domain core, technology-agnostic, with the client deliverable and the wider platform as two adapters over the same core; Kafka, Redis and DynamoDB as the driven adapters; all held to a regulated payments frame.

The build

The core ran as cloud-native microservices on AWS in Java 21, Python and Kotlin, kept maintainable and domain-driven. Redis handled real-time caching, DynamoDB the NoSQL storage, and Kafka the event streaming, with custom data mappers for the complex payment-orchestration flows.

A start-up, in a regulated frame

Pismo.io is a fintech; Visa is a regulated payments network. Part of the work was bringing the one into the other, making a fast-moving payments platform meet what a regulated environment expects, without losing the pace.

  • Compliance, not an afterthought. PSD2 and PCI DSS alignment was worked out across product, compliance and DevSecOps from the start, not bolted on later.
  • Auditable delivery. Codefresh CI/CD with Docker and Terraform enforcing infrastructure as code, for full traceability.
  • Metrics and observability for financial SLAs. Grafana and Prometheus standards for service uptime, transaction volume, latency and failure patterns, so the platform could be run to the SLAs a payments business is held to.

Delivered AI-augmented

The delivery itself ran AI-augmented: code generation, test scaffolding and PR review with AI in the loop, inside Pismo.io’s AI-forward culture and under collective ownership on Kanban. On a regulated payments platform that is a pace multiplier rather than a shortcut, because the hexagonal boundaries and the compliance gates are exactly what keep AI-assisted output honest.

Holding the pattern

Co-leading the architecture meant owning the pattern, not just proposing it. A pattern only pays off if the team holds it, so mentoring on the hexagonal patterns and the payment-domain modelling lifted consistency across services, and the core stayed a clean domain core as more hands joined, the platform a platform rather than drifting back into one-off code.