[{"data":1,"prerenderedAt":41},["ShallowReactive",2],{"blog-post-integrating-payment-gateways-the-calm-way":3,"blog-posts":16},{"id":4,"slug":5,"title":6,"excerpt":7,"tags":8,"published_at":12,"cover_image_url":13,"sort_order":14,"content_html":15},"post-payment-gateways","integrating-payment-gateways-the-calm-way","Integrating payment gateways, the calm way","Midtrans, Xendit, Flywire — every gateway is different, but the integration shape that keeps you sane is always the same.",[9,10,11],"payments","integration","laravel","2025-09-02T09:00:00.000Z",null,2,"\u003Cp>After integrating a handful of payment gateways, you stop seeing the differences and start seeing the pattern. Every provider is a variation on the same three moving parts.\u003C\u002Fp>\n\u003Ch2>1. A request you control\u003C\u002Fh2>\n\u003Cp>You build the charge request, you sign it, you send it. Keep this layer thin and provider-specific, and normalise the response into your own shape immediately.\u003C\u002Fp>\n\u003Ch2>2. A webhook you do not control\u003C\u002Fh2>\n\u003Cp>The webhook is the source of truth for whether money actually moved. Treat it as hostile input:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Verify the signature before you trust a single field.\u003C\u002Fli>\n\u003Cli>Look the transaction up by \u003Cem>your\u003C\u002Fem> reference, not theirs.\u003C\u002Fli>\n\u003Cli>Make the handler idempotent — providers retry aggressively.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>3. A reconciliation you will be glad you built\u003C\u002Fh2>\n\u003Cp>Webhooks get lost. Networks fail. A nightly reconciliation job that compares your records against the provider's ledger turns \"we think we got paid\" into \"we know we got paid.\"\u003C\u002Fp>\n\u003Cp>Wrap all three behind a single interface in your application, and swapping or adding a gateway becomes an afternoon instead of a rewrite.\u003C\u002Fp>\n",[17,28,30],{"id":18,"slug":19,"title":20,"excerpt":21,"tags":22,"published_at":26,"cover_image_url":13,"sort_order":27,"reading_minutes":27},"post-booking-engine-lessons","shipping-a-booking-engine-without-losing-a-night-of-sleep","Shipping a booking engine without losing a night of sleep","What actually keeps a real-time booking engine stable in production: idempotent writes, explicit failure paths, and a checkout you can reason about.",[23,24,25],"booking","architecture","production","2025-11-18T09:00:00.000Z",1,{"id":4,"slug":5,"title":6,"excerpt":7,"tags":29,"published_at":12,"cover_image_url":13,"sort_order":14,"reading_minutes":27},[9,10,11],{"id":31,"slug":32,"title":33,"excerpt":34,"tags":35,"published_at":39,"cover_image_url":13,"sort_order":40,"reading_minutes":27},"post-vue-nuxt-portfolio","why-i-rebuilt-my-portfolio-in-nuxt","Why I rebuilt my portfolio in Nuxt","A personal site should be fast, accessible, and easy to update. Here is how Nuxt, a tiny design system, and server-side rendering got me there.",[36,37,38],"nuxt","vue","frontend","2025-06-14T09:00:00.000Z",3,1794545130049]