Skip to content
HisarPay

Add a payment button to any WordPress page

A product page, a donation form or a service offer does not need WooCommerce. Add a shortcode or a Gutenberg block; when a visitor clicks the button, the HisarPay payment page opens.

  • WP 6+
  • PHP 7.4+
  • Gutenberg

What it does

  • Three looks: a plain button, a payment card with the amount and description, or a scannable QR code.
  • The Gutenberg block is configured from the sidebar, so there is no shortcode to memorise.
  • Enter a fixed amount, or attach a payment link you prepared in the dashboard.
  • Invoices are created server-side; your API key never reaches the browser.
  • Text and borders follow your theme’s text colour and stay readable in dark themes; change the button colour with the --hppb-accent CSS variable.
The Gutenberg block and the payment card on the page

Requirements

WordPress
6.0 or later
PHP
7.4 or later
Editor
Block editor (Gutenberg) or the classic editor
HisarPay
An active account and an API key

Setup

  1. Step 1

    Install the plugin

    Go to Plugins → Add New → Upload Plugin, upload hisarpay-buttons.zip and activate it.

  2. Step 2

    Enter your API key

    Paste the API key from the dashboard into Settings → HisarPay buttons and save. We recommend starting with a test key.

  3. Step 3

    Add a button to a page

    Insert the “HisarPay payment button” block in the block editor, or type the shortcode anywhere on the page.

    Shortcode
    [hisarpay_button amount="49.90" description="Logo design" style="card"]
  4. Step 4

    Preview and publish

    Preview the page and click the button. With the test key, simulate the payment on the payment page and check the return to your thank-you page.

Settings

The plugin’s global settings. Most of them can be overridden per button.

API key
Your hp_live_… or hp_test_… key.
Default coin
Let the customer choose, or limit to USDT or TRX.
Thank-you page
Where the customer returns after paying. If empty, the visitor comes back to the page with the button and sees a confirmation there.
Default style
button, card or qr.
Payment window
How long invoices opened from the buttons stay valid.
Payment links tab
List, create, pause and resume payment links without leaving WordPress, with an end and a number of uses if you like. A link that ended is not shown on the page.

Shortcode attributes

The block settings match these attributes one to one.

AttributeDescription
amountAmount in USD, e.g. "49.90". The minimum is 10 USD.
descriptionWith amount: shown on the payment page and in the dashboard. With link it only changes the text on the card.
stylebutton (default), card or qr.
labelButton text. Default: “Pay with crypto”.
tokenusdt or trx, with amount only. Leave empty to let the customer choose.
linkUse a payment link ID from the dashboard instead of amount. The link’s own coins and thank-you page apply; with open-amount links the customer enters the amount.
success_urlA thank-you page just for this button, with amount only.

Frequently asked questions

I use WooCommerce. Do I need this plugin?
No. The WooCommerce plugin covers the cart and order flow. Payment buttons are for sites without WooCommerce, or for one-off payments outside your store.
How does the QR style work?
With style="qr", the page shows a QR code that opens the payment page. Visitors scan it with their phone and pay from their wallet, which is handy when they are browsing on a desktop. With amount, the first time the button is shown the plugin creates a fixed-price payment link in your account and reuses it from then on; you will see it under Payment links.
Where do I see incoming payments?
Every payment appears under Invoices in the dashboard. If you linked the Telegram bot, you also get an instant notification on your phone.
Can I put several buttons on one page?
Yes. Each shortcode or block is independent, so you can add as many buttons as you like with different amounts and styles.
Can someone open lots of invoices through a button?
No. The plugin creates at most 10 invoices per visitor IP every 5 minutes, and a button whose amount or settings were tampered with on the page is refused.

WooCommerce

Adds TRX and USDT to your checkout and updates the order by itself once the payment confirms.

  • WP 6+
  • WC 8+
  • PHP 7.4+
  • HPOS

Telegram bot

Payment alerts, balances and invoices with a QR code from a chat. For safety, the bot cannot withdraw.

  • Bot
  • TR · EN

Official SDKs

Node.js, PHP and Python libraries with typings, automatic retries and webhook verification built in.

  • Node.js
  • PHP
  • Python

Your first collection is an e-mail away

Sign-up is free; your test keys are ready the moment you confirm your e-mail.