Skip to content
← All workCase study · 2026
2026

D'SKIN — Headless Store, Webpay Plus and a Routine-First Redesign

Long-term build for a Chilean skincare brand: WordPress replaced by an Astro storefront on Vercel with WooCommerce kept headless, a three-step checkout, a direct Webpay Plus integration on Node validated by Transbank, a custom admin with CRM and automations, and a 2026 redesign that orders the catalog as a four-step routine.

D'SKIN 2026 redesign: the store ordered as a four-step routine, with the product most people buy first leading the page

D'SKIN 2026 redesign: the store ordered as a four-step routine, with the product most people buy first leading the page

§01Overview
CASE STUDY · 2026Visit live ↗
Stack
  • Astro
  • TypeScript
  • React
  • TinaCMS
  • WooCommerce REST + Store API
  • Node.js
  • Webpay Plus (Transbank SDK)
  • Supabase
  • Vercel
Role
  • Full-Stack Developer
  • Payments Integration
  • Product & UX
Timeline
October 2026
Scope
  • ·WordPress storefront replaced by Astro on Vercel; WooCommerce kept as the headless order and inventory backend
  • ·Three-step single-page checkout (email, address with Chile's 16 regions and 346 comunas, payment)
  • ·Webpay Plus integrated directly through Transbank's REST API with the official SDK on Node, validated 10/10 by Transbank
  • ·Custom admin (D'SKIN Studio): CRM on Supabase, email flows, cart recovery, WhatsApp broadcasts, analytics
  • ·2026 "routine-first" redesign driven by three years of order data; no media queries, container queries only
  • ·Operated through a datacenter outage with a maintenance mode on the edge and a clean rollback
D'SKIN — Headless Store, Webpay Plus and a Routine-First RedesignJAIMEBUILDS · 2026
§02Summary

The engagement

D’SKIN is a Chilean clinical-cosmetics brand selling direct to consumer. I built their first WordPress + WooCommerce store in 2022, and since December 2025 I have been replacing it piece by piece with a system I own end to end: a headless storefront, the checkout, the payment integration, the admin tools, and now the merchandising logic. The client publishes content and runs campaigns without a developer; I keep the system moving.

Architecture

Astro on Vercel renders the storefront, bilingual (Spanish default, English at /en/*), with TinaCMS for visual editing of hero, best sellers, treatments, about page and blog. WordPress + WooCommerce stays as the headless backend for products, stock, orders and customer accounts, reached through the REST and Store APIs with graceful fallbacks when the backend is slow or down. A Supabase project holds the CRM, checkout telemetry and automation state.

Browser ──▶ Astro on Vercel (SSR routes + static pages)
              ├── WooCommerce REST / Store API  (catalog, cart, orders, SSO)
              ├── Payment gateway               (Webpay Plus via Transbank REST, Node)
              ├── Supabase                      (CRM, telemetry, cart recovery)
              └── Cron routes                   (order watch, reconciliation, ebook delivery)

The old 2025 cart-transfer scheme (signed HMAC tokens handing the cart to the WordPress checkout) is gone. Checkout now lives in Astro.

Checkout and payments

The checkout is a single page in three steps: email, shipping address with the official list of 16 regions and 346 comunas and shipping rules per comuna, then payment. The order is created in WooCommerce before redirecting to the gateway, the return route confirms it, an order-received page reads the result through a lookup endpoint, and a cron watches orders to deliver digital products (ebooks) and notify the team on Telegram.

Webpay Plus, integrated directly. Rather than the WordPress plugin, I integrated Transbank’s Webpay Plus through its REST API (v1.2) with the official SDK running on Node inside the Astro server routes; WordPress only carries a minimal connector as a must-use plugin. The flow covers create, return, commit, cancellation and timeout returns, and a reconciliation cron every five minutes that closes abandoned transactions.

// Return route, simplified. Commit is idempotent: concurrent returns for the
// same token resolve to one commit, and an authorized-but-uncommitted payment
// is retried before Transbank aborts it.
export const POST: APIRoute = async ({ request }) => {
  const token = (await request.formData()).get('token_ws');
  if (!token) return redirect('/checkout?pago=cancelado');

  const result = await withLock(token, () => webpay.commit(token));
  const order = await wc.getOrderByToken(token);

  if (result.status === 'AUTHORIZED' && result.response_code === 0) {
    await wc.markPaid(order.id, { authorization: result.authorization_code, installments: result.installments_number });
    return redirect(`/order-received?order=${order.id}`);
  }
  await wc.markFailed(order.id, result);
  return redirect(`/checkout?pago=rechazado&order=${order.id}`);
};

Testing ran on an isolated staging clone of the WordPress backend (its own database, outbound calls to the real gateway, mail and pixels blocked) behind a dedicated preview deployment: the six official cases (credit approved and rejected, three interest-free installments, debit approved and rejected, cancellation), plus double returns, six simultaneous returns resolving to a single commit, abandonment closed by reconciliation, and fourteen security probes on the return endpoints. Two behaviors not in Transbank’s documentation were found and handled: an authorized transaction aborts after roughly 30 to 65 seconds without commit, and starting a second transaction in the same browser aborts the first.

Transbank’s validation came back 10 of 10 on the mandatory tests and production credentials were issued in October 2026. The storefront carries the installments messaging behind an environment flag, so the switch from the current gateway to Webpay is a configuration change on a date the client chooses, with the previous gateway kept as fallback.

D’SKIN Studio

A custom admin for the brand: unified CRM on Supabase, five email automations, WhatsApp broadcasts, cart-recovery sequences, and analytics pulled from GA4, Search Console and Meta. JWT auth, IP-based rate limiting, structured logs on Vercel.

The 2026 redesign: order the store like a routine

In October 2026 I rebuilt the home, the shop and the product page around how the brand actually sells: a four-step routine (cleanse, treat, eye contour, moisturize) instead of WooCommerce categories. The design was decided by data. Grouping three years of paid orders by customer showed that the most common first purchase was the step-four moisturizer, not the cleanser; that most first orders were a single product; and that the most common pair was the serum plus the moisturizer, which is exactly the brand’s basic pack. So the hero leads with that moisturizer, every page offers that pair, and a block titled “Is one already on your shelf?” invites repeat buyers to complete the routine.

Five technical decisions worth keeping:

  • No media queries. container-type: inline-size on the main column and everything in cqw, clamp() and auto-fit grids, so a block behaves the same inside a column, a drawer or the full page.
  • Product grids are cells, not cards. The rule is that all five bottles render at the same size; a step with two products takes two cells.
  • Brand gold is never ink. Measured at 1.44:1 on the light background, it fails as text, so labels use a darker tone measured at 6.4:1 and lines a mid tone.
  • Reveal states are applied by JS after mount, only to what is below the fold, so the page never renders blank when the observer does not run.
  • Button selectors are nested under the route class, because a generic link rule was beating the button rule and painting black text on black.

Live data (price, photo, stock) still comes from WooCommerce. The redesign shipped first as a parallel /v2 route, out of the sitemap, so the client could review it with real products before the switch.

Operations

When the backend’s datacenter lost all connectivity in October 2026, the Vercel storefront kept serving but could not read products. I deployed a maintenance mode as a single serverless route in front of the site within the hour, kept the client’s customers informed, and rolled back to the last good deployment the moment the backend was reachable. The staging clone also served to test the WordPress backend on PHP 8.2 through 8.5 before moving production to 8.4.

Results

  • Lighthouse performance from 62 to 98; LCP from 4.2 s to under 1 s on the first migration.
  • The marketing team publishes copy, blog and product showcases without a developer.
  • Payments ready to move from a hosted gateway to a direct, validated Webpay Plus integration, on the client’s schedule.
  • Hosting cost cut by about 60% versus the managed WordPress plan it replaced.

Tech Stack

TechnologyPurpose
Astro 7.4Storefront, SSR routes, cron endpoints
React 19.3 / TypeScript 7Checkout, cart drawer, galleries, admin
TinaCMS 3.15Visual editing, Git-backed content
Zod 4Schema validation for forms, orders and API payloads
WooCommerce REST + Store APICatalog, orders, accounts
Transbank SDK (Node)Webpay Plus REST v1.2
SupabaseCRM, telemetry, automations
ResendTransactional email
VercelHosting, serverless routes, cron

Want this kind of work for your brand?

Book a 20-min intro →