CraftPayDocs
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

WayYou needBack to your site after paying
Buy linksOnly HTML linksNo – the buyer lands on your CraftPay store
Public catalogJavaScript in the browserNo – combine it with buy links
Checkout APIYour 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