Piton Studios
Piton Studios
Ambalaj Cini
[08]

Ambalaj Cini

2022
Client
Ambalaj Cini
Year
2022
Scope
E-commerce, web design, payment
Role
Design / Development
§ Case Study

Ambalaj Cini — E-commerce + ad management — 30% company growth via Google Ads and Meta campaigns.

For Bilecik-based Ambalaj Cini we led development of the Next.js/React online sales platform: payment integration, product management and the order flow in one system.

Alongside development we set up and managed Google Ads and Facebook (Meta) campaigns — these digital growth efforts drove 30% company growth. Concrete, results-driven proof of our ad management service.

E-commercePayment IntegrationNext.jsPostgreSQL

Challenge

Bilecik-based Ambalaj Cini needed a platform to sell packaging and cleaning products online while managing orders, stock, shipping and invoicing from one place. Its existing setup lacked the flexibility to handle a growing catalog and rising order volume; payment collection, shipment tracking and internal operations (stock, accounting, CRM) all ran separately. The company wanted a fast, secure shopping experience for customers on one side, and a back office to run the entire operation from a single panel on the other.

Solution

We built an e-commerce system on Next.js and PostgreSQL (database, authentication, file storage) that combines the customer storefront with a full back office in one platform. The storefront covers catalog, promotions, cart and order/shipment tracking; the admin panel handles product/stock, orders, shipping, invoicing, accounting, CRM and campaign management with role-based access (admin/staff). Payment collection is automated through the PayTR iFrame API and shipping through a DHL integration, with order status and shipment status synced in both directions. On security, admin logins require multi-factor authentication (TOTP), Upstash-based rate limiting and a Content-Security-Policy are in place, and customers can manage their own data under Turkey's KVKK data-protection law. Pricing is always calculated server-side from the database; mutations run through Zod-validated Next.js Server Actions. Critical flows are covered by Vitest unit tests and Playwright E2E tests.

Key technical decisions

  • Card payment collection via the PayTR iFrame API and shipment tracking via a DHL integration stay synced in both directions with order status.
  • multi-factor authentication (TOTP) is mandatory in the admin panel; an account-owner rule plus Upstash rate-limiting block unauthorized access and brute-force attempts.
  • Price is always calculated server-side from the database; mutations run through Server Actions with Zod validation, so a client-submitted amount is never trusted.
  • Web push notifications (VAPID) and Resend transactional emails deliver order, payment and stock status changes to customers and the team instantly.
  • Vitest unit tests and Playwright E2E tests (covering auth, payment, shipping, search and other critical flows) validate every change on the CI pipeline.

Tech stack

Next.jsPostgreSQLTypeScriptPayTRDHL APIZodUpstashResendPlaywrightVitest

Outcome

Ambalaj Cini now runs catalog, order, payment, shipping and accounting workflows end to end from one system, with its own team. Card payments and shipment tracking are automated, admin access is secured with multi-factor authentication, and customer and team notifications go out instantly. Alongside development, the Google Ads and Meta campaigns we ran drove 30% growth for the company.

Related solutions