loki-checkout / magento2-indian-gst
Indian GST number field for Loki Checkout
Package info
github.com/LokiCheckout/LokiCheckout_IndianGst
Type:magento2-module
pkg:composer/loki-checkout/magento2-indian-gst
1.0.0
2026-11-21 18:54 UTC
Requires
- php: >=8.2 <8.6
- ext-pcre: *
- loki-checkout/magento2-core: ^2.0
- loki/magento2-components: ^2.0
- loki/magento2-field-components: ^2.0
- magento/framework: ^103.0
- magento/module-backend: ^102.0
- magento/module-config: ^101.2
- magento/module-customer: ^103.0
- magento/module-eav: ^102.1
- magento/module-quote: ^101.0
- magento/module-sales: ^103.0
- magento/module-store: ^101.1
Requires (Dev)
- loki-checkout/magento2-functional-tests: @dev
- loki/magento2-functional-tests: @dev
- phpunit/phpunit: ^10.5
- yireo/magento2-integration-test-helper: ~0.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-21 19:00:43 UTC
README
Adds a GST Number (GSTIN) field to billing and shipping addresses in the Loki Checkout.
Features
gst_numberfield 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 (
01to38,96,97or99) - check character (15th character)
- format (
- Lowercase letters and spaces are accepted and stored as uppercase without spaces
- Copied to
sales_order_addresson 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.