CraftPayDocs
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.

Parameters

ParameterWhat it does
addPackage ids, separated by commas. Add :2 after an id for quantity 2. Replaces whatever is in the cart.
playerOptional. 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