CSQ Docs
    CSQ Docs
    Dummy Product Usage Guide
    • CSQ API Doc
    • Dummy Product Usage Guide
    • Overview on Dummy Products
    • Top-Up Simulation
    • Voucher Purchase Simulation
    • Supermarket Vouchers Purchase Simulation
    • Bill Payment Simulation

    Overview on Dummy Products

    1. ๐Ÿงญ What Are Dummy Products?#

    Dummy products are test-friendly entities that mimic real product flows. They accept and validate all required inputs, return realistic responses, and simulate edge cases like errors, timeouts, and conditional queries.
    โœ… No real transactions occur
    ๐Ÿงช Ideal for testing UI, workflows, error handling
    ๐Ÿ” Safe for pre-production environments

    2. ๐Ÿ“ฆ Dummy Product Catalog#

    CategoryProduct IDProduct NameBehavior Summary
    Mobile Top-up9990DummyTopupSimulates balance recharge with outcomes by phone number
    Vouchers9991DummyPinReturns PIN with extra metadata
    Vouchers9994DummyVoucherADTrueRandom query logic; may need second request
    Vouchers9995DummyVoucherADFalseAlways requires second query for completion
    Supermarket Vouchers9993DummySuperMarketSimple one-step voucher purchase
    Bill Payment9992DummyBillsSimulates full invoice + payment logic
    Bill Payment9989DummyBills2Simplified flow โ€” no invoice query

    3. ๐Ÿงฉ Understanding additionalData#

    Depending on the flow, additionalData plays one of two roles:

    ๐Ÿ”น As an Indicator#

    Field hasAdditionalData: true signals that a second query should be performed.
    Query result is randomized: may return success or an error like 404.
    Useful for testing retry logic and fallback handling.

    ๐Ÿ”น As a Container#

    Used in bill queries to hold structured fields:
    {
      "account": "123456",
      "customerName": "James May",
      "transactionCode": "ABC123XYZ"
    }
    Modified atย 2025-07-08 13:49:00
    Next
    Top-Up Simulation
    Built with