Store
The Store is a hosted checkout page for your account. A buyer picks a tier, pays through your own payment gateway, and the key is minted and handed over the moment the payment clears. Nothing goes through a ticket queue and you never whitelist by hand.
Your storefront lives at a stable URL tied to your account:
https://envyauth.my.id/store/<your_account_uuid>Everything below is configured under Marketplace in the dashboard sidebar. A first-time setup takes about ten minutes, and you can walk your own checkout before a single buyer sees the page.
How a sale works
- The buyer opens your storefront and sees your active tiers with real prices.
- They optionally enter a promo code. A free code mints instantly; a percent or flat code reduces the amount they actually pay.
- They pick a payment method and get redirected to that gateway's hosted checkout.
- The gateway calls our webhook when the payment clears. We mint the key, mark the order completed, and hand back a claim link.
- The buyer lands on the claim page and copies their key.
The key is minted server-side against the script you attached to the product, so it lands in the right project with the right expiry without any action from you.
Set your store up
Work through these in order. Each step is a separate page under Marketplace → Storefront in the sidebar, except the last two which live on their own top-level pages.
Turn the store on
Open Marketplace → Storefront. The store ships switched off, and a disabled store returns an empty page to visitors rather than an error — nothing leaks about your account.
- Store live — master switch. Off means the storefront, checkout, and promo redemption are all closed.
- Require Discord — buyers connect Discord before paying, and the minted key is bound to their Discord ID automatically.

The master switch sits at the top of the Storefront page. Turn Require Discord on if your product is Discord-gated. It saves you the redeem step later, because the key already knows who owns it.

The second switch on the same card binds every minted key to the buyer's Discord account. You do not have to flip Store live on yet. The preview link in step 7 opens your storefront while it is still switched off.
Brand the checkout page
Storefront → Branding controls the lockup shown at the top of your checkout page: your store name, the product line underneath it, and your logo.

Upload logo sits at the top of the Branding page, above the name fields. Logo uploads are checked by reading the file's actual bytes, not the filename or the declared type. PNG, JPEG, WebP, and GIF are accepted up to 512 KB. SVG is rejected on purpose — it can carry scripts.
Set a name but no logo and the page falls back to a neutral gradient avatar. Leave both blank and the checkout renders with the EnvyAuth lockup instead.
Write your terms and privacy copy
Storefront → Legal is where you write your own Terms of Service and Privacy Policy. Buyers open them as a slide-out panel from the checkout page.

Terms of Service comes first, with Privacy Policy in the same layout below it. The copy is stored and rendered as plain text. Links and markup are never rendered, which keeps your checkout page from becoming a phishing vector if an account is ever compromised.
Each field shows Empty — uses the EnvyAuth document while it is blank, and the storefront links to the platform document instead. Buyers are told the seller has not published their own.
Connect a payment gateway
Storefront → Payments lists every supported gateway. Connect as many as you like — each enabled one becomes a payment option at checkout.

Each gateway you have not set up yet carries its own Connect button. 
A connected gateway carries a badge naming the environment it is actually running in. The green badge tells you the environment the gateway is actually running in, read from the credentials themselves. An
sk_test_key reads as Sandbox no matter which way you set the switch, and a mismatch is called out next to the badge.Paste the credentials
Click Connect — or Edit on a gateway you already use — and paste the keys from that provider's dashboard. Keys are encrypted at rest and never shown back to you in full.

The dialog opens over the payments list, with the secret key field first. Leave Live mode off for your first pass. Off means sandbox or test, which is exactly what you want until you have watched one purchase run end to end.

Live mode sits at the bottom of the same dialog. Off is sandbox, and that is where you start. Webhooks are registered for you on save. There is nothing to copy into the gateway dashboard except the Xendit verification token, which that provider only shows on its own Settings → Webhooks page.
Create your tiers
Marketplace → Products, then Add tier. A tier is one script plus one price plus one duration.

Add tier sits above the table, on the Products page. 
Duration is measured in days. Leave it empty and the key never expires. Leave Duration blank for a permanent key. Set the currency to something at least one connected gateway supports — a mismatch is rejected at checkout with
GATEWAY_CURRENCYrather than failing on the payment page.
Price is entered in minor units, with the currency picked right beside it. Repeat until every plan you sell has a row.
Walk your own checkout first
Back on Storefront, the Test mode card is the rehearsal room. Click Create preview link and you get a private URL that opens your storefront even while Store live is still off.

The Test mode card sits below the payment methods list. Buy one of your own tiers through it with a sandbox gateway. You want to see the key land in the right project with the right expiry before a real buyer does.
The card also warns you when your store is live but every enabled gateway is still in sandbox — that combination takes real buyers to a checkout that moves no money.
Share the link
The Store page card at the bottom holds your public URL. Copy it and put it wherever your buyers are.

Copy the URL straight from the last card on the Storefront page. Switch each gateway to live mode first, and buy one real key yourself before you post the link anywhere public.
Test mode
Test mode is not a separate switch you flip. Two things put an order into it, and either one is enough:
- The buyer arrived through your preview link.
- The gateway they paid with is running on sandbox credentials.
Buyers are never left guessing. A sandbox checkout carries a banner naming the gateway, and it updates as they switch payment methods.

A test order behaves like any other order — the key is really minted, the webhook is really verified — with one difference: it is excluded from your revenue total and from the Paid, Pending, and Issues counters. It carries a Test badge in Sales, and the key note gets a [test] suffix so it is obvious in your key list too.
Payment gateway reference
| Gateway | Currencies | Webhook setup |
|---|---|---|
| Stripe | Multi-currency | Endpoint and signing secret are created automatically when you connect. |
| PayPal | Multi-currency | Webhook is created or reused automatically, per environment. |
| Midtrans | IDR only | Nothing to configure — each transaction carries its own notification override. |
| Xendit | Multi-currency | Callback URL registers automatically; paste the verification token from your Xendit dashboard. |
| Tebex | Multi-currency | Endpoint validation handshake is answered automatically on connect. |
Each gateway has a Live mode switch: off is sandbox or test, on is real money. Run at least one sandbox purchase end to end before you turn it on.
The switch is a label, not the truth. What decides the real environment is the key you pasted — sk_test_, xnd_development_, and SB-Mid-server- are sandbox credentials whatever the switch says, and the payments list tells you when the two disagree.
Products
Marketplace → Products holds the tiers buyers can choose from. A product is a script plus a price plus a duration.

| Field | Meaning |
|---|---|
| Script | Which script the minted key unlocks. The owning project is snapshotted onto the order at purchase time. |
| Label | What the buyer sees, up to 80 characters. Also becomes the key note. |
| Duration | Days the key stays valid, 1–3650. Leave it empty for a permanent key. |
| Price | Amount in minor units (cents, rupiah, and so on) up to 100,000,000. |
| Currency | Three to eight characters. Must be supported by at least one connected gateway. |
| Active | Inactive products disappear from the storefront but keep their sales history. |
| Sort order | Lower numbers show first. |
Deactivate rather than delete when you retire a tier — past orders stay readable that way.
Discounts
Marketplace → Discounts holds promo codes. There are three kinds, and the kind decides which checkout path the code takes.


Max uses means unlimited, and a blank expiry means the code never lapses.| Kind | Effect |
|---|---|
free | Buyer gets the key without paying. Redeemed directly, no gateway hop. |
percent | Cuts the price by a percentage, 0–100. |
flat | Subtracts a fixed amount in minor units. |
Every code also supports:
- Bonus days — added on top of the product duration, up to 3650. Works with all three kinds.
- Max redemptions — hard cap, 1–1,000,000. Leave empty for unlimited.
- Expiry — a date after which the code stops validating.
- Active — turn a code off without deleting it.

Codes accept letters, numbers, -, and _, up to 64 characters.
A percent code that lands on zero behaves like a free code: the key is minted immediately instead of sending the buyer to a payment page they'd pay nothing on.
Sales
Marketplace → Sales lists every order with its status.

| Status | Meaning |
|---|---|
pending | Checkout started, waiting on the gateway webhook. |
completed | Paid and the key was minted. |
pending_capacity | Payment cleared but your plan's key limit was full. Raise the limit and the key gets issued. |
refunded | Reversed after completion. |
failed | The gateway reported a failure. |
Orders also carry a source: checkout for a normal purchase and promo for a free-code redemption.

A pending_capacity row means a buyer paid and is waiting. Treat it as urgent — upgrade the plan or free up keys, and the pending order settles.
What buyers see
This is your storefront as a buyer meets it: your tiers with real prices, a promo field, and one tab per connected gateway.

After payment clears, the buyer lands on a claim page holding the minted key. Nothing else is required from you.
Going live checklist
- Enable the store and decide whether Discord is required.
- Set your brand name, product name, and logo.
- Write your Terms and Privacy copy.
- Connect at least one gateway, leaving Live mode off.
- Create your tiers with a currency the gateway supports.
- Open the preview link and buy one of your own tiers end to end.
- Confirm the order shows as Test in Sales and the key landed in the right project.
- Turn Live mode on, revoke the preview link, and buy one real key yourself before you share the URL.