Search by

loki-checkout / magento2-indian-gst

loki-extensions

Indian GST number field for Loki Checkout

Package info

github.com/LokiCheckout/LokiCheckout_IndianGst

Type:magento2-module

pkg:composer/loki-checkout/magento2-indian-gst

Fund package maintenance!

yireo

www.paypal.me/yireo

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-11-21 18:54 UTC

This package is auto-updated.

Last update: 2026-11-21 19:00:43 UTC


README

Magento version PHP version License Latest Version

Adds a GST Number (GSTIN) field to billing and shipping addresses in the Loki Checkout.

Features

  • gst_number field on both the billing and the shipping address form
  • Shown per address, only when the country of that address is India (IN), without page reload
  • The GST Number is removed from an address when its country changes away from India
  • Optional by default; can be made required in the admin
  • Server-side and client-side validation of the GSTIN:
    • format (22AAAAA0000A1ZC)
    • state code (01 to 38, 96, 97 or 99)
    • check character (15th character)
  • Lowercase letters and spaces are accepted and stored as uppercase without spaces
  • Copied to sales_order_address on order placement (only for addresses in India)
  • Saved to the customer address EAV attribute when "save in address book" is checked
  • Prefilled from a saved customer address on return visits
  • Displayed as GST: <number> in the checkout summary, order emails, invoice emails, invoice PDFs and the admin order view
  • Editable in the admin customer address and order address edit forms

Configuration

Stores > Configuration > Loki Checkout > Indian GST > Require GST Number (loki_checkout/indian_gst/required): when enabled, a GST Number is required for every billing and shipping address in India.

Installation

composer require loki-checkout/magento2-indian-gst
bin/magento module:enable LokiCheckout_IndianGst
bin/magento setup:upgrade
bin/magento cache:flush

User stories

The expected behaviour is documented in the stories/ folder.

Current status

Static Tests Unit Tests Integration Tests Playwright DI Compilation