---
title: "Discussion on \"Mocking a Payment API Service in Checkout Flows\" | Hashnode"
description: "Discussion on \"Mocking a Payment API Service in Checkout Flows\". Learn how to mock a payment provider with Mokapi using real HTML pages and Kafka events, so Playwright tests can walk through an actual checkout flow."
url: "https://hashnode.com/posts/mocking-a-payment-api-service-in-checkout-flows/6a625a8e28347321ed7e8659"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Mocking a Payment API Service in Checkout Flows](https://mokapi.hashnode.dev/mocking-a-payment-api-service-in-checkout-flows?utm_source=hashnode&utm_medium=feed)

Learn how to mock a payment provider with Mokapi using real HTML pages and Kafka events, so Playwright tests can walk through an actual checkout flow.

Jul 23 · 16 min read · mokapi.hashnode.dev  
Read the article

-   [#testing](https://hashnode.com/tag/testing)
-   [#playwright](https://hashnode.com/tag/playwright)
-   [#e2e](https://hashnode.com/tag/e2e)
-   [#mocking](https://hashnode.com/tag/mocking)

## Written by

[Marcel Lehmann](https://hashnode.com/@mokapi)

@mokapi · Bern

  
[View profile](https://hashnode.com/@mokapi)

I'm a solution architect and the founder of Mokapi — an open-source API mocking tool I started in 2020 that has grown way beyond what I ever imagined. I build and maintain it in my spare time because I love coding and creating tools that make developers' lives easier. My goal is simple: help software developers deliver better and faster software to the people who use it.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
