Case study · Gift cards and vouchers

A gift card network's Magento modules taken to 2.4.8, and a Shopify app beside them

Who this is for For a gift card, voucher or loyalty platform whose merchants run Magento and Shopify, and whose Magento modules have fallen behind Magento's releases.

A South African gift card and voucher network had three Magento modules built for an older 2.4. We brought them up to date and tested them on every release from 2.4.4 to 2.4.8, moved gift card issuing onto the network's deposit flow for a retailer, and built a Shopify app that checks each voucher at checkout, in about 87 hours.

  • Gift cards and vouchers
  • Magento 2
  • Shopify

Home / Case studies / A gift card network's Magento modules taken to 2.4.8, and a Shopify app beside them

The situation

  • A South African gift card and voucher network let shoppers buy its gift cards and redeem its vouchers in Magento stores, through three modules an agency had built on an older Magento 2.4.
  • The modules had fallen behind: they used Zend code that newer Magento releases no longer ship, mixed SOAP and REST calls, mocked the gift card notification, and had no tests.
  • The network wanted the same capability on Magento's current releases and on Shopify, without a custom integration for every merchant.

What we connected

  1. 1Magento 2 to Gift card network: gift cards issued on deposit, vouchers redeemed
  2. 2Shopify app to Gift card network: vouchers checked live, confirmed after the order

What changed

  • Magento releasesEach of the three modules tested on every release from 2.4.4 to 2.4.8
  • Code brought currentZend replaced with Laminas, PHP 8.1 and 8.2 types, a content security policy allowlist, admin screens on UI components
  • ChecksUnit and regression tests, and two of the three modules passing PHPStan level 5
  • A dead endpointOne gift card endpoint the modules called answered 404; the API check found it and it was replaced
  • Gift card issuingMoved onto the network's deposit flow for a retailer, delivered to two test stores
  • Shopify appBuilt in about 87 hours, inside a four-to-five-week window
  • An API changeWhen the network changed its API's response codes, the fix shipped the same day
How we built it

The floor first

We set the oldest release to support at 2.4.4, the oldest Adobe still supported at the time, and tested each module on every release from there to 2.4.8, with a test store each for 2.4.7 and 2.4.8.

The code brought current

Zend code replaced with Laminas, PHP 8.1 and 8.2 types, JSON handled natively, stricter input checks, the modules added to the content security policy, admin screens moved to UI components, and data patches in place of setup scripts.

Every API call checked

We ran each module against the network's sandbox and wrote up every call it made. One gift card endpoint answered 404; it was replaced before handover.

Gift cards on the deposit flow

For a retailer, gift card issuing moved onto the network's deposit flow, which needs a card number for each card. The store takes one from a range the network supplies, set in the store's configuration.

A Shopify app beside them

A checkout extension checks each voucher with the network as the shopper enters it, turns it into a real Shopify discount code, and confirms the redemption with the network once the order is placed. Several vouchers can go on one order, and each one is noted on the order for reporting. Halfway through we dropped a discount function for generated discount codes, which worked within what Shopify lets an app change at checkout.

The whole story

Three modules, an older Magento

The network's Magento modules worked on the Magento they were built for. Newer releases had dropped code they depended on, and the network wanted them current, and on Shopify too, so each new merchant didn't mean a new integration.

Current, and tested on five releases

We set the floor at 2.4.4, brought the code up to date, and tested each module on every release from 2.4.4 to 2.4.8. Checking every API call against the sandbox found one endpoint that no longer existed.

A new way to issue gift cards

Later, a retailer needed its gift cards issued through the network's deposit flow, which ties each card to a card number. We built that as a change order and delivered it to two test stores.

Shopify, in about 87 hours

The Shopify app was built from scratch and handed over in September 2025, inside the four-to-five-week window the statement of work set, for the network to host and pilot.