• :
  • :


BTCZ Open-source Payment Gateway

  • Create easily payment gateways
  • Instant checkout confirmation
  • No registration necessary
  • Auto-generated invoices
  • Automatic transactions
  • No additional fees
  • Automatic refund
Create Payment Gateway * required


You can use our API to accept BTCz payments on your website and verify the transaction. The pay.btcz.app gateway is an free to use API service that provide you end-to-end-user BTCz payment. It generating a new address (and QR) for each payment. It also provide you web UI for the payment process and states templates until success.

In order to have an alterative regarding the usability of payment gateways, it is a need to have this open-sourced solution as basis for every developer. Also mostly to push user acceptance, this project must have to be a lever in the entrepreneurship people. Please visit the Getting started page to know more about integrating this API in your online store.

For any comment, suggestion or issues about this gateway, feel free to contact us via the below community channels. You can also contact us directly by using the contact form. Please visite first the FAQ page for any usage related question.

This is a free and open-source service, please support us by donating here.

[BTCz.app] BTCz: t1VYSo8VtpKMm1SUwp1KJHbqrtfqj7tgpaE
[Community] BTCz
: t1fHHnAXxoPWGY77sG5Zw2sFfGUTpW6BcSZ

API Info

Creating a gateway

  • GET Example full router path:
    https://pay.btcz.app/api/request_payment/0.005/BTCZ/wheres%20the%20money%20lebowski/t1VYSo8VtpKMm1SUwp1KJHbqrtfqj7tgpaE/[email protected]/https%253A%252F%252Fwww.google.com/https%253A%252F%252Fwww.google.com/https%253A%252F%252Fwww.google.com/0/01234abcd
  • GET Example with query string:
    https://pay.btcz.app/api/request_payment/?expect=1.235&currency=BTCZ&message=wheres%20the%20money%20lebows[email protected]test.com&ipnPingback=https%3A%2F%2Fwww.google.com&cliSuccessURL=https%3A%2F%2Fwww.google.com&cliErrorURL=https%3A%2F%2Fwww.google.com&SpeedSweep=0&secret=01234abcd
  • Expanded:
      [email protected]&
  • Notes:
    • By using full router path, all parameters are mandatory.
    • By using query string, some parameters are optional.
    • The SpeedSweep can only be used up to 0 BTCz.
    • If the secret is not set, the gateway will generate a 20 bytes hex string.
    • Encode the URL's to awoid routing issue:
      • Simple URL encoding by using GET with query string.
      • Double URL encoding by using GET with full router path.

  • Parameters definition:
    • expect : [Mandatory] The expected amount to pay.
    • currency : [Mandatory] The currency code (supported: BTCZ, BTC, USD, EUR, CHF, GBP, RUB).
    • seller : [Mandatory] The seller BTCz address.
    • ipnPingback : [Mandatory] The IPN URL to get (from server side) once paid or expired.
    • message : [Optional] An optional message.
    • customerMail : [Optional] The customer eMail
    • cliSuccessURL : [Optional] The URL to redirect browser on success.
    • cliErrorURL : [Optional] The URL to redirect browser on expired.
    • SpeedSweep : [Optional] Use speed checkout (0=disabled / 1=enabled), default is 0.
    • secret : [Optional] The secret phrase that is appended to IPN call. If not set, the gateway generate a random one.

  • Sample JSON Response:
  • Invoice URL template:

Fetching Data from Existing Gateway

  • GET Example:
  • Sample Response:
      [optional] "tx": {"tx":"TX Hex string","broadcast":{"result":"broadcast Hex string","error":null,"id":"621680ed-ae85-4db3-bd84-58d5ed2edff8"}}}
      [optional] "success_callback_url":"https://mysite_or_IP/result/?Hello=1",
      [optional] "err_callback_url":"https://mysite_or_IP/result/?Hello=0"
  • Notes:
    • The [optional] are depending on the state.
    • The speed_sweep_fee is in %. (5% for speed checkout, no extra fee for standard checkout)
    • Use the "id" from the request_payment/ call JSON return.

Other Informations

  • States explained
    • 0: Awaiting payor to continue
    • 1: Awaiting payment
    • 2: Gateway expired
    • 5: Payment & IPN Pingback completed
  • IPN pingback:
    • On success paid or expired, the gateway pingback to the defined ipnPingback url set by the request_payment/ call. The secret and the state is appended.
  • More:
    • You will only receive a callback URL in the JSON with states 2-errURL and 5-successURL
    • Standard tx fee: 0.0001
    • TX confirmation count: 1
    • State 2 and 5 execute the :ipnPingback URL (on server side)


  • Total created gateway:
  • Actual open gateway:
  • Paid gateway:
  • Expired gateway: