# WordPress

The **RazCrypto Payments** plugin adds a "Pay with crypto" button to any WordPress page or post. No online
store is needed. Use it for courses, services, donations, invoices and digital products. Selling with
WooCommerce? Use the [WooCommerce plugin](/docs/woocommerce) instead.

[Download plugin](https://razcryptogateway.com/downloads/razcrypto-payments.zip) · version and checksum in
[manifest.json](https://razcryptogateway.com/downloads/manifest.json)

- **Block and shortcode:** the "RazCrypto Pay button" block, or `[razcrypto_pay link="…"]`.
- **Popup checkout:** the customer pays in a window on the same page, or on the payment page in a new tab.
- **No keys in WordPress:** the button uses a payment link, so no secret is stored on your site.
- **Works without JavaScript:** the button is a normal link to the payment page.

## Requirements

WordPress 6.3+ (tested up to 7.1), PHP 7.4+.

## Install

1. Download `razcrypto-payments.zip` (link above).
2. In WordPress open **Plugins → Add New Plugin → Upload Plugin**, choose the zip, then **Install Now → Activate**.

## Add a Pay button

1. In your RazCrypto dashboard create a **payment link** (Links) or a **product** (Products).
2. Copy its link. It looks like `https://razcryptogateway.com/l/AbCd1234`.
3. Edit a page in WordPress, add the **RazCrypto Pay button** block and paste the link.
4. Optional: set the button text and how checkout opens in the block's sidebar.
5. Publish.

The shortcode works in the classic editor, widgets and page builders:

```text
[razcrypto_pay link="https://razcryptogateway.com/l/AbCd1234" label="Buy now" open="popup"]
```

| Attribute | Meaning | Default |
|---|---|---|
| `link` | The payment link, or only its id (`AbCd1234`) | required |
| `label` | Button text | from Settings |
| `open` | `popup` — a window on the same page; `page` — the payment page in a new tab | from Settings |

## Settings

**Settings → RazCrypto Payments**

| Setting | What it does | Default |
|---|---|---|
| **Default button text** | Text used when a button has no label. | Pay with crypto |
| **Open checkout** | Popup window on the same page (recommended), or the payment page in a new tab. | Popup |

## Getting paid

- Payments go straight to the wallet addresses in your RazCrypto dashboard.
- Every payment shows in **Dashboard → Payments**. You get an email, and a webhook if you set one.
- To send customers to your own thank-you page, set a **redirect URL** on the payment link.
- A **one-time** link shows "already paid" after it is used once.

## Privacy

- Nothing is sent to RazCrypto until a visitor clicks a Pay button.
- When a visitor clicks, the checkout loads from your gateway. It receives the page address and the details
  the customer types there (only the fields you turned on for the link).
- The checkout script is bundled inside the plugin. No script comes from a third-party CDN.

Read the [privacy policy](https://razcryptogateway.com/legal/privacy) and [terms](https://razcryptogateway.com/legal/terms).

## Uninstall

Deactivating keeps your settings. Deleting the plugin from **Plugins** removes its settings too. Buttons
already on your pages then show as plain shortcodes, or nothing for the block.
