Skip to content
All work

Freelance · E-commerce · 2024

Dulce Berlín

End-to-end e-commerce for a small business, with the Wompi payment widget, webhooks, payment states and refunds.

Next.js → Wompi → Django → PostgreSQLStorefront (Next.js) → Payment widget → Wompi → webhook → Django API → PostgreSQLStorefrontNext.jsPayment widgetWompiWompipayDjango APIRESTPostgreSQLPayment statewebhookorderspending · confirmed · refunded
Architecture sketch — Conceptual diagram; not the production architecture. Scroll sideways to see the full diagram.

My role

Freelance full-stack developer with end-to-end ownership: requirements, frontend, backend, payments and deployment.

Problem

A small business needed to sell online and take payments reliably, including the cases where a payment is pending or has to be refunded.

Approach

A Next.js storefront on top of a Django API and PostgreSQL. The payment widget starts the transaction, and webhooks from Wompi, not the browser, decide the final payment state.

Technical highlights

  • Wompi payment widget integrated end to end.
  • Payment webhooks keep order state consistent on the server.
  • Pending-payment handling, so an order is never lost between checkout and confirmation.
  • Refund flows built into the backend.

Stack

Next.js · Django · PostgreSQL · Wompi