Mark Ku's Blog

Background

Our company wanted to rebuild the website for the Army and Air Force Exchange Service (AAFES) and, in the process, understand its operational rules and the relationship between AAFES and ShopMyExchange.

Understanding AAFES (Army and Air Force Exchange Service)

The Army and Air Force Exchange Service (AAFES), part of the U.S. Department of Defense, was established in 1895. It plays a crucial role in providing services to the U.S. military and their families, operating retail stores, service facilities, and food services on military bases. The goal is to enhance the quality of life for service members and their families. As the 53rd largest retailer in the United States, AAFES supports the morale and welfare of military personnel by offering quality goods and services.

AAFES also operates the e-commerce site ShopMyExchange.com, which exclusively serves authorized customers, including active-duty military personnel, veterans, reservists, National Guard members, U.S. Department of Defense civilian employees stationed abroad, State Department officials working in foreign countries, and their families. This platform offers a wide range of products, including kitchenware, lawn and garden supplies, home goods, and sports and outdoor equipment. All items are tax-free, allowing members of the military community to enjoy more affordable prices.

ShopMyExchange places a high value on customer information privacy and security. Whether an order is placed through the website, by phone, or by fax, suppliers cannot know the identity of the person or military unit placing the order.

MILITARY STAR® Card: A Credit Card Designed for Service Members

The MILITARY STAR® Card is a credit card issued by AAFES, specifically tailored for U.S. service members and their families. This card offers a variety of unique benefits and conveniences, including:

  • Special Offers: Cardholders can enjoy discounts and promotional offers when shopping at military exchange stores and their online platforms. (Often includes rewards of around 10%.)
  • Flexible Payment Options: The card offers various payment methods, such as installment plans.
  • Low Interest Rates: Compared to many commercial credit cards, the MILITARY STAR® Card typically has lower interest rates.
  • Rewards Program: Consumers can accumulate points and redeem them at military exchange stores.
  • Dedicated Service: Customer service and support designed for service members and their families.
  • ShopMyExchange.com: The ultimate convenience for online shopping. Reward

Two Shopping Methods

ShopMyExchange.com users have two ways to make purchases, but only the second one requires programmatic integration (this project uses the second method).

    1. Listing products directly on the ShopMyExchange.com website.
    1. Building our own AAFES website, which provides richer product information based on our backend database configuration.

Objective

To enable authorized military customers shopping on the ShopMyExchange website. When a user clicks on a "Specialty Store: XXX" link, they are redirected to our custom AAFES website. This site provides richer product information and allows users to add items to a cart. For checkout, the user is redirected back to ShopMyExchange to pay. After the user completes the payment on ShopMyExchange, ShopMyExchange uploads the order data to a designated FTP server. We then use a scheduled task to download the data from the FTP server and generate the order in our system.

Search result
Search result

Non-Functional Requirements

  • Integrate GA4 and Advanced Ecommerce reporting (up to the Checkout step, but not including Purchase).
  • Integrate Clarity for heatmap analysis.

Swimlane Diagram

The process is somewhat similar to the integration for a government joint supply contract. This transaction method protects the buyer's security and privacy, while also giving us more flexibility to customize our website. Swim-lane diagram

Author

Mark Ku

擁有 10+ 年經驗的資深軟體工程師,現為 AI 應用 Builder,專注於大型平台架構與簡化複雜系統設計,從電商系統到訂閱與收費平台,結合 AI Agent、AI 整合與自動化開發,打造高效率且可持續演進的產品技術基礎。Read More

Found this useful?

The author's free tools, daily podcasts and newsletter are all here.

Mark Ku · This article is licensed under CC BY 4.0. Credit the author and link back to the original when reusing it.

Comments

Subscribe to Newsletter

Subscribe to get new posts delivered instantly — never miss a tech share.

By submitting, you agree to receive emails. You can anytime.

Popular Posts

View all
Mark Ku
··602

Oracle Cloud Always Free Tier: Linux Host and Static IP for a $0 Cloud Solution

Oracle Cloud Always Free Tier: Linux Host and Static IP for a $0 Cloud Solution
Mark Ku
··490

Say Goodbye to Postman's Fee Trap! A Hands-on Guide to Bruno, the Open-Source Git-Native API Testing Powerhouse.

Say Goodbye to Postman's Fee Trap! A Hands-on Guide to Bruno, the Open-Source Git-Native API Testing Powerhouse.
Mark Ku
··333

A Free, Open-Source, Notion-like Knowledge Base — A Complete Guide to Deploying and Backing Up Outline Wiki

A Free, Open-Source, Notion-like Knowledge Base — A Complete Guide to Deploying and Backing Up Outline Wiki
Mark Ku
··264

Training Your Own AI Voice: Hardware Requirements, Open-Source Model Comparison, and LoRA Fine-Tuning

Training Your Own AI Voice: Hardware Requirements, Open-Source Model Comparison, and LoRA Fine-Tuning
Mark Ku
··221

Building an Efficient API Management Platform: Deploying Kong Gateway from Scratch - Part 1

Building an Efficient API Management Platform: Deploying Kong Gateway from Scratch - Part 1
Mark Ku
··215

Setting Up Samba on Ubuntu to Share Folders with Windows 11

Setting Up Samba on Ubuntu to Share Folders with Windows 11