Skip to content
E-commerce

Building an online store in Romania with Medusa: couriers, payments and invoices

Learn how to set up a Romanian e‑commerce site on Medusa, connect local couriers, configure payment methods and generate invoices with Qubitpage's CarphaCom platform.

Developer configuring a Romanian Medusa online store on a laptop
Illustration generated with AI.

To sell products online in Romania you can start with Qubitpage’s CarphaCom platform, which bundles Medusa v2, PostgreSQL and Next.js ready for local couriers and payment providers.

The stack runs on a Vultr VPS, gives you full control over the front‑end and lets you issue invoices without extra plugins.

Why choose CarphaCom for a Medusa‑based shop in Romania

Headless architecture that fits local needs

CarphaCom combines Medusa v2 with a Next.js front‑end, so the back‑office stays API‑first while the storefront renders instantly on phone, tablet and desktop. Because the stack is headless, you can swap the UI framework or add a mobile app without touching the commerce core. The same code runs on any VPS, which matches the low‑cost, high‑performance model many Romanian entrepreneurs prefer.

Built‑in Romanian courier and payment adapters

The CarphaCom distribution ships with integrations for the most used Romanian couriers and payment providers. When you install the platform, the courier module already knows the API endpoints for local carriers, and the payment module includes Stripe, PayPal and Netopia out of the box. You only need to enter your merchant IDs and the system will generate shipping rates and capture payments in the local currency.

Managed hosting on Vultr simplifies operations

Choosing the managed hosting option means Vultr provisions a VPS, installs the CarphaCom Docker image and configures SSL, daily backups and DDoS protection automatically. The service runs in an EU data centre, satisfying GDPR requirements for Romanian businesses. You can start with the Vultr Marketplace page and upgrade to the Business plan when traffic grows.

Predictable pricing and support

Qubitpage lists a fixed price for the CarphaCom developer edition, so you know the upfront cost before deployment. Ongoing maintenance is optional: the Essential, Professional and Complete plans cover change requests, SEO reports and periodic security audits. If you need a custom integration, the services page explains the hourly rates and the scope of custom work.

Fast time‑to‑market

Because the stack is pre‑configured for Romania, you skip the tedious process of hunting for third‑party plugins or writing adapters from scratch. After a few minutes of configuration you have a live storefront, ready to accept orders, print compliant invoices and ship with local couriers.

Setting up the Medusa server on a Vultr VPS

First, create a new VPS in the Vultr Marketplace and select the CarphaCom Developer Edition image. The image already contains the Docker runtime and a pre‑configured CarphaCom container, so you avoid manual dependency juggling.

  1. Log in to the Vultr control panel, choose a region inside the EU, and pick a plan that meets the minimum 2 vCPU / 4 GB RAM recommendation for a small shop. Confirm the order and note the public IP address.
  2. Open an SSH session to the new instance: ssh root@YOUR_IP. The default root password is sent by email; change it immediately with passwd.
  3. Verify Docker is running: systemctl status docker. If the service is inactive, start it with systemctl start docker and enable it on boot.
  4. Pull the CarphaCom Docker image from Docker Hub: docker pull qubitpage/carphacom:latest. The image bundles Medusa v2, PostgreSQL, and the Next.js front‑end.
  5. Create a dedicated Docker network so the containers can talk securely: docker network create carphacom-net.
  6. Launch PostgreSQL first, binding it to the network: docker run -d --name pg --network carphacom-net -e POSTGRES_PASSWORD=strongpass -e POSTGRES_USER=medusa -e POSTGRES_DB=medusa qubitpage/postgres.
  7. Start the Medusa API container, linking it to the database: docker run -d --name medusa --network carphacom-net -p 9000:9000 -e DATABASE_URL=postgres://medusa:strongpass@pg:5432/medusa qubitpage/medusa. The API will listen on port 9000.
  8. Finally, run the Next.js storefront: docker run -d --name storefront --network carphacom-net -p 80:3000 qubitpage/front. Browse to http://YOUR_IP to see the default CarphaCom shop.

Tip: After the first launch, edit .env inside the Medusa container to set your domain, email sender, and any custom tax rules before restarting the service.

If you need a deeper dive into Vultr networking or DNS configuration, the official Vultr documentation covers those topics in detail. For ongoing support, our contact page is available.

Connecting Romanian couriers to your store

Enable the built‑in adapters

The CarphaCom platform ships with ready‑made adapters for the most common Romanian carriers: Fan Courier, Sameday and DHL Romania. After you have installed the CarphaCom package on your Medusa server, open medusa-config.js and add the desired adapters to the shippingOptions array. Each adapter requires the API key you receive from the carrier’s developer portal; paste the key into the apiKey field of the corresponding object.

Map shipping zones

Next, define shipping zones in the Medusa admin UI. Create a zone called “Romania – national” and assign all Romanian counties to it. Then create a second zone “Romania – Bucharest” for the capital, where many carriers offer a flat‑rate service. For each zone, select the enabled adapters and set the serviceLevel (standard, express, same‑day) that matches the carrier’s offering.

Test rate calculations

With zones in place, use the “Calculate shipping” button on a draft order. Enter a sample address in Bucharest and a product weight of 2 kg. The UI will display rates returned by each enabled adapter. Verify that the numbers match the carrier’s published price tables; adjust the weightStep or baseFee overrides in the adapter configuration if needed.

When the rates look correct, place a test order and confirm that the order summary shows the selected carrier and the exact amount you saw in the admin UI. If a carrier returns an error, consult its API documentation – the CarphaCom module logs the response in /var/logs/courier.log, which helps pinpoint missing parameters.

For further assistance you can reach our support at contact@qubitpage.com or explore the product catalog for additional shipping extensions.

Configuring payment gateways for Romanian customers

Set the store currency to RON

Open the Medusa admin UI and navigate to Settings → Currency. Choose RON from the dropdown and save. The change propagates to product prices, cart totals and checkout summaries, ensuring every amount is displayed in Romanian lei.

Add Stripe as a payment provider

In the dashboard go to Payments → Providers and click Add provider. Select Stripe. Fill the form with the Publishable key and Secret key you obtained from the Stripe dashboard under Developers → API keys. Tick the Enable sandbox mode checkbox to use Stripe’s test environment. Save the configuration, then create a test order and use the test card number 4242 4242 4242 4242 to verify the flow.

Integrate PayPal

Return to Payments → Providers and add a new entry for PayPal. Input the Client ID and Secret from the PayPal developer portal (sandbox credentials). Activate the Sandbox toggle, which directs checkout to https://www.sandbox.paypal.com. After saving, place a test order and complete the payment with the sandbox buyer account you created in PayPal.

Configure Netopia for local payments

Netopia is the only Romanian gateway listed in the CarphaCom offering. In the provider list select Netopia. Provide the Merchant ID and Secret key supplied by Netopia after registering for a merchant account. Check the Test mode option; Netopia will return a simulated success response without contacting the live bank. Save and run a checkout using the test card number 4111 1111 1111 1111 to confirm integration.

Verify the complete checkout

After all three providers are saved, create a product priced in RON, add it to the cart and proceed to checkout. The payment step should display Stripe, PayPal and Netopia as options. Choose each one in turn, complete the sandbox transaction, and confirm that the order status updates to paid. If any provider fails, revisit the keys and sandbox toggles.

For ongoing support or a deeper dive into custom payment logic, see our contact page or the products overview.

Generating invoices that meet Romanian tax rules

Required fields for a compliant invoice

Romanian law expects each invoice to contain a VAT identification number, a unique series and number, and complete client data. The client section must include the full name or company name, fiscal address, and the registered VAT number when the buyer is a taxable entity. You also need to record the supplier’s VAT number, the date of issue, and a description of the sold items with their unit price, quantity and applicable tax rate.

Configuring the invoice template in CarphaCom

CarphaCom runs on Medusa v2, so you can extend the order workflow with a custom invoice service. In the medusa-config.js file add an invoice plugin entry that maps the required fields from the order payload to the template variables. Use a server‑side rendering engine such as Handlebars to produce HTML that matches the Romanian invoice layout. The template should insert the VAT number, series, and client address in the header, then list line items and totals.

Exporting PDFs from the order workflow

After an order reaches the fulfilled state, trigger a webhook that calls the invoice service. The service renders the HTML, passes it to a PDF generator (for example puppeteer), and stores the resulting file in a protected bucket. In the Medusa admin UI you will see a new “Invoice PDF” button on each order detail page. Clicking it downloads the PDF, which you can attach to the confirmation email or print for archival.

Automation and compliance checks

To avoid gaps, add a validation step before the order is marked as fulfilled. The validation script checks that the VAT number follows the RO‑XXXXXXXXX pattern and that the invoice series is unique in the database. If any field is missing, the order is paused and the staff receives a notification via the built‑in Qubitpage AI agent.

If you need help tailoring the template or integrating the PDF generator, contact us through the contact page. The same approach works for any CarphaCom store built on Medusa, regardless of the chosen hosting plan.

Choosing the right hosting plan and scaling options

When you launch a CarphaCom shop you already have a Medusa backend, but the underlying VPS still determines how fast pages render and how many concurrent orders you can handle. Qubitpage offers three managed plans that differ mainly in compute resources and price. The right choice depends on your expected traffic, product catalogue size and whether you need the AI auto‑blog feature.

Below is a concise comparison. All plans run on a European data centre, include SSL, daily backups, DDoS protection and monitoring. If you need more than the listed limits you can request a custom upgrade through the contact form.

Plan CPU RAM Storage Monthly price
Start 1 vCPU 2 GB 30 GB SSD 19 €
Business 2 vCPU 4 GB 60 GB SSD 29 €
Shop 4 vCPU 8 GB 120 GB SSD 45 €

If you anticipate a modest launch, say a few hundred visitors a day, the Start plan is sufficient. It keeps costs low while still providing the essential security stack.

Growth spikes, such as flash sales or seasonal promotions, often require the extra CPU and RAM of the Business plan. The larger SSD also helps when you store many product images locally.

For established stores processing dozens of orders per minute, the Shop plan gives headroom. Its 4 vCPU allocation reduces checkout latency, and the 120 GB SSD accommodates high‑resolution media and backup snapshots.

All three plans can be scaled vertically by contacting support. Horizontal scaling, adding more instances behind a load balancer, is not part of the managed offering, so plan ahead if you expect massive traffic.

For a full breakdown of what each plan includes, visit the services page. Choose the tier that matches your current load and budget, then upgrade when metrics show you need more capacity.

Frequently asked questions

Can I use a custom domain with the CarphaCom Medusa stack?

You can point any domain you own to the VPS where the CarphaCom Developer Edition runs. The stack itself does not restrict hostname usage, so after configuring DNS you only need to ensure the web server in the Next.js layer listens on that host. I usually add the domain to the server’s virtual host file and restart the service. The process is the same as with any self‑hosted Node.js application.

Do I need to write code to add a new Romanian courier?

Adding a courier involves creating a small integration module that maps the carrier’s API to Medusa’s fulfillment interface. The CarphaCom platform already includes common Romanian couriers, but for a new one you must implement the request/response handling. The code is limited to a few functions: building the shipment payload, sending it via HTTPS, and interpreting the tracking response. No full‑stack rewrite is required, just the connector.

Is VAT automatically calculated for Romanian orders?

Medusa’s tax subsystem can be configured with Romania’s VAT rates, and the CarphaCom stack ships with a default 19 % setting for domestic sales. You enable the tax plugin, set the jurisdiction to RO, and the engine applies the rate to every order line. The calculation happens before the checkout summary, so the customer sees the final amount including VAT. If you sell to EU countries, you must adjust the tax rules accordingly.

What support is available if I run into deployment issues?

Qubitpage offers a support channel through contact@qubitpage.com and the official GitHub repository. You can open an issue describing the error, and the engineering team will respond within business hours. For urgent problems, the Managed Hosting plans include monitoring and DDoS protection, which can surface deployment failures early. I recommend checking the deployment logs on your VPS first, then reaching out if the logs don’t clarify the cause.

Next steps to launch your Romanian Medura store

Grab the CarphaCom Developer Edition from the Vultr Marketplace, spin it up on a VPS located in the EU, and point your domain to the instance. Once the stack is running, configure the Romanian courier and payment adapters provided out of the box – they require only your account credentials and a few mapping rules for shipping zones. After the integrations are active, test a complete checkout flow: add a product, select a courier, pay with Stripe or Netopia, and verify the generated invoice matches local fiscal requirements. When the test succeeds, switch the DNS to the production hostname and enable daily backups in the managed hosting plan. If you prefer a hands‑off approach, let Qubitpage handle the deployment and ongoing maintenance; see our services page for details.

Written by

Mircea S. Rusu

Founder and engineer of Qubitpage. Support engineer since 2005, CMS developer, former technical consultant at Niguarda Ca' Granda Hospital in Milan, and author of the book “The Architect”.

More about the author →