Chahta Rewards: Building a Modern Web App Inside WordPress

3–4 minutes

The challenge

Choctaw Travel Plazas wanted to remove friction from its loyalty program by making rewards accessible directly through its website.

Previously, customers relied on the existing native mobile app to access their rewards. The goal was to provide a comparable experience at choctawtravelplazas.com/rewards, allowing customers to register, manage their accounts, and use their rewards without installing an app.

The challenge was delivering that experience within the organization’s existing WordPress infrastructure rather than building a separate application.

My role

I was the sole developer, responsible for the application architecture, technical decisions, backend integration, and frontend implementation.

A frontend designer provided mockups based on the existing mobile app. I translated those designs into a responsive web application, making the implementation and interaction decisions along the way.

I used AI coding assistants throughout development to support problem-solving, research, and implementation while retaining responsibility for the architecture, code, and final decisions.

The approach

I developed a custom WordPress plugin that embeds a full-page React single-page application (SPA) within the existing website.

The frontend uses React 19, React Router, TypeScript, and Tailwind CSS 4. React Router handles navigation and data loading within the application, creating a fluid experience without traditional page reloads.

On the backend, WordPress acts as an intermediary between the frontend and PDI Technologies’ Loyalty API. Custom PHP services, REST API endpoints, and data transfer objects manage authentication, API requests, and data normalization.

I also built custom WordPress blocks for registration, login, and password recovery using the WordPress Interactivity API. These provide lightweight, interactive entry points into the React application without requiring React for every interaction.

Rather than treating WordPress as just a content management system, this architecture uses it as the foundation for a modern, PWA-style web experience.

The hard part

Running a full-page SPA inside WordPress

The marketing department’s development platforms were limited to WordPress and GitHub Pages. A separately hosted application wasn’t the direction for this project.

The more interesting challenge was making WordPress support an application with its own navigation, loading states, dialogs, and mobile-focused layouts while preserving its existing theme and content infrastructure.

Integrating React Router within WordPress allowed the application to manage its own screens and interactions. The WordPress Interactivity API provided a complementary approach for account-related blocks outside the SPA.

Together, these technologies made it possible to combine traditional WordPress pages with a richer application experience.

Integrating a complex third-party loyalty API

PDI’s API introduced several challenges, including separate application and member authentication tokens, inconsistent response structures, and transaction records that don’t map directly to customer-facing activity.

I built a PHP integration layer to handle these differences before sending data to React.

One example was transaction history. A single purchase could produce multiple records for points earned, offers redeemed, and rewards issued. I developed normalization logic to group these events into a clearer transaction history instead of displaying the raw API responses.

The result

Version 1 delivered a fully integrated loyalty web application at choctawtravelplazas.com/rewards.

Customers can access account management, points balances, available offers, rewards redemption, transaction history, and travel plaza information directly from their browser.

The result is an additional way to participate in Chahta Rewards, reducing the need to download the native mobile app and creating a foundation for future PWA enhancements.

Post-launch adoption and engagement metrics are not yet available.

Technical deep dive

Explore the live application:

Choctaw Travel Plazas Rewards

The implementation brings together a custom WordPress REST API, server-side PDI integration, React Router, and interactive WordPress blocks within a single plugin.

Read about how I built it.