Philip Sloth
All work
Payments SaaS·2025·Full-Stack Developer

PayFlow

Multi-method checkout sandbox — card, Klarna, Apple Pay, Google Pay, MobilePay

PayFlow — Multi-method checkout sandbox — card, Klarna, Apple Pay, Google Pay, MobilePay

A live payment-method sandbox — card with Luhn validation and Visa/Mastercard IIN detection, Klarna (Pay Now / Later / Installments), Apple Pay and Google Pay matching OS specs, MobilePay with Danish-language flow, and jsPDF receipts.

A reference build for every payment method a Danish or Nordic SMB might actually need. Card input does Luhn validation client-side and detects Visa vs Mastercard from the IIN the moment the customer types the sixth digit; expiry validates MM/YY, CVC is length-checked. The Klarna flow offers the full trio (Pay Now / Pay Later / Installments) with a radio selector and smooth transition between methods. Apple Pay and Google Pay buttons follow the real OS specs, not a stock 'click-to-pay' placeholder. MobilePay carries a Danish-language interface, phone-number validation, and a confirmation screen that matches the production MobilePay UX. Every transaction generates a jsPDF receipt. There's a demo autofill button for each method so clients can walk through the flow without typing real card numbers. I built this because most dev agencies wire Stripe and call it a day — MobilePay alone covers 80% of Danish SMB transactions and it's usually the thing that's missing.

  • Luhn validation + Visa/Mastercard IIN detection
  • Full Klarna trio (Pay Now / Later / Installments)
  • Apple Pay + Google Pay to OS spec
  • MobilePay with Danish-language confirmation flow
  • jsPDF receipt generation client-side