ভাউচার রিসেলার
রিসেলাররা ব্যালেন্স টপ-আপ করে পরিমাণ অনুযায়ী ছাড়ে প্রিমিয়াম ভাউচার কোড কেনেন ও বিক্রি করেন; মেম্বাররা আপগ্রেড পেজে কোড ব্যবহার করেন। প্রিমিয়াম।
The Voucher Reseller plugin sells premium time as codes. A reseller tops up a balance with you, buys voucher codes in bulk at a volume discount and sells them on - in a shop, on a forum, to people without a card. A member types the code on the upgrade page and gets the premium package at once. You generate free vouchers for promotions, approve resellers, confirm top-ups and see every code and who used it.
It is for sites whose buyers cannot pay by card, for markets where local agents sell access, and for giveaways.
Switching it on
Voucher Reseller is a premium plugin: it needs the voucher-reseller addon on your licence. Buy it at lcpanel.com, press Check again now on Admin → Configuration → License, then switch Voucher Reseller on at Admin → Extensions → Plugins (Manage Plugins). Four pages appear under Extensions, with tabs between them: Manage Vouchers (/admin/plugin/voucher-reseller), Account Balances (/balances), Generate Vouchers (/generate) and Settings (/settings).
Vouchers are tied to a package pricing row, so you need at least one paid package with pricing on Admin → People → Account Packages (Account packages) and the package shown on the upgrade page.
Settings
| Setting | What it does |
|---|---|
| Voucher length | Characters of the code after the prefix, 8 to 50 (default 12). |
| Voucher prefix | Optional letters in front of every code, no spaces. |
| Redeem attempts per hour per IP | Brute-force limit on the upgrade page (default 10). |
| Resellers need approval | On (default): a new reseller account waits until you approve it on Account Balances before it can buy. |
| Max vouchers per order | How many a reseller may buy at once (default 1000). |
| Resellers may cancel unused vouchers | Lets a reseller cancel an available code of theirs. |
| Minimum top-up / Maximum top-up | Bounds of a top-up request (default 100 to 5000, in the site currency). |
| Top-up instructions | How a reseller pays you (bank details, a mobile wallet number, who to send the receipt to). Shown on the reseller page; you confirm the money on Account Balances. |
| Discount up to the second band (%) | Default 10 %. |
| Second band starts at (vouchers) / Discount in the second band (%) | Default 100 vouchers, 30 %. |
| Third band starts at (vouchers) / Discount in the third band (%) | Default 500 vouchers, 50 %. |
The discount is decided by the quantity of one order: an order of 120 codes of a 30-day package at 7.99 costs 120 × 7.99 × 70 % . The reseller page shows the exact sum before the order is placed.
The admin pages
Manage Vouchers opens with five figures - Total vouchers, Available, Used, Approved resellers, Vouchers purchased (money) - and a list of every code: Voucher code, Generated, Package and period, Cost (or free), Owner (a reseller, or admin for the site's own), Status (active, used, cancelled) and Used by with the date. Filter by Code, By owner, By package, By status and Only paid; tick rows and Cancel selected or Delete selected (used codes are never deleted).
Account Balances is where money meets the plugin. Top-up requests waiting lists each request with Payment received (adds the amount to the balance and notifies the reseller) and Cancel. Below, every reseller account: Username, Is reseller (approved / waiting), Balance available, Total vouchers, Last payment, with Approve / Revoke and an Adjust box that adds or subtracts any amount with a note. Add a reseller by username approves a member on the spot; otherwise members become candidates by opening the reseller page themselves.
Generate Vouchers makes codes that cost nothing: Account username (optional) lists them on that member's reseller account (leave it empty to keep them as the site's own), Voucher package picks a package and period, Voucher quantity up to 5000. The new codes appear in a box to copy.
The member and reseller side
Redeeming. On /upgrade, under the packages, a Use a voucher box takes a Voucher code (posted to plugins/voucher-reseller/redeem). A valid, unused code upgrades the account for the period of the voucher, sends a notification, and marks the code used with the member's name. Wrong codes count against the hourly attempt limit.
The reseller page is /reseller_home (also /resellers), reached from the public Features → Resellers menu and, for allowed members, from the file manager rail as Reseller. It has four tabs:
- Manage codes - the reseller's own vouchers with Package / period, Purchase date / value and Status; filters By package and By status; Export all and Export available as CSV; Cancel on unused codes when allowed.
- Generate codes - the packages and periods available, a Voucher quantity box with the live price line (quantity × discounted unit price), Generate vouchers; below it Top up your balance with your instructions and a Request top-up form.
- Balance history - every top-up, purchase and adjustment with its status.
- Voucher API - how a reseller's own system makes codes:
POST /plugins/voucher-reseller/apiwithusername,api_key(API key 1 from Account → Settings → API Access),pricing_idandquantity; the JSON answer carriesvoucher_codes,costand the newbalance.
Until approved, a reseller can look around but not buy; the page says so.
Typical workflow
- Set the discounts, bands and Top-up instructions; save.
- A member opens
/reseller_home→ their account shows as waiting on Account Balances → Approve. - They request a top-up and pay you; you press Payment received.
- They buy codes on Generate codes and sell them; buyers redeem on
/upgrade. - You watch everything on Manage Vouchers.
Tips
- Generate a few free 7-day vouchers for your newsletter (Newsletters) or a launch promotion.
- Set Voucher prefix to your brand's letters so a code is recognisable at a glance.
- A voucher keeps the package and period it was generated with; changing prices later does not change existing codes.