Your own website
Buy links
A buy link puts packages in the cart and opens your store's checkout. No code and no API key needed.
The link
Add ?add= to your store's checkout address with one or more package ids:
https://mist.craftpay.net/checkout?add=cm3k9x8qw0004
https://mist.craftpay.net/checkout?add=cm3k9x8qw0004,cm3k9xc110006:2&player=NotchParameters
| Parameter | What it does |
|---|---|
add | Package ids, separated by commas. Add :2 after an id for quantity 2. Replaces whatever is in the cart. |
player | Optional. Fills in the buyer's Minecraft name. |
Where do I find the ids?
Every package in the API has a ready-made buyUrl. You can also see the id in the dashboard's address bar when you edit a package.
Example: a button in HTML
HTML
<a href="https://mist.craftpay.net/checkout?add=cm3k9x8qw0004" class="buy-button">
Buy VIP – €4.99
</a>Subscriptions
A subscription is always bought on its own. If a link contains a subscription, the buyer goes straight to the subscription checkout for it.
Stuck? Write to mail@craftpay.net