Your own website
Overview
Show your packages on your own website, in your own design, and let CraftPay handle the payment, the receipt and the delivery in-game.
Three ways to do it
| Way | You need | Back to your site after paying |
|---|---|---|
| Buy links | Only HTML links | No – the buyer lands on your CraftPay store |
| Public catalog | JavaScript in the browser | No – combine it with buy links |
| Checkout API | Your own server (an API key) | Yes – to your own successUrl |
Which one should I pick?
- Just want a “Buy” button on your site? Use buy links – copy a link from the API or build it yourself.
- Want to show prices and packages that update by themselves? Load the public catalog with JavaScript and use each package's
buyUrl. - Have your own cart, login or want the buyer back on your site? Create a checkout with the checkout API from your server.
- Want the whole store on your own address? Connect your own domain.
What CraftPay always handles
- The payment page with card (Stripe) and PayPal – the money goes to your own account.
- Discount codes, gift cards, VAT and receipts by e-mail.
- Delivery: the plugin runs the package's commands on your server.
- The order shows up in your dashboard and in the API like any other.
Stuck? Write to mail@craftpay.net