tac.extensions.shopk_access v1.4.2

Sells access tags as SKUs via ShopK/Kromer payments. Integrates with ShopK to allow users to purchase access tags through the Kromer payment system. Modular version using separate modules for different functionality.

Author: Twijn
View on GitHub →

Examples

-- This extension is loaded automatically by TAC.
-- Once loaded, it provides ShopK integration commands:

-- In TAC shell:
-- > shopk help              -- Show available commands
-- > shopk slot add tenant.1 Premium Access 500 30
-- > shopk slot list         -- List all configured slots
-- > shopk start             -- Start the ShopK shop

-- From another extension:
function MyExtension.init(tac)
    -- Wait for shopk_access to load, then use its functionality
    local shopk = tac.require("shopk_access")
    if shopk then
        print("ShopK integration available")
    end
end

Functions

MyExtension.init()

View source

From another extension:

ShopKAccessExtension.init(tac)

View source

Extension initialization

Parameters: