API ReferenceWooCommerceSDKssoonWebhookssoon

WooCommerce Integration

Accept Bitcoin payments and reward customers with cashback

Bitcoin Payments

Accept BTC at checkout with automatic order management

Cashback Rewards

Reward customers with cashback in sats

Account Linking

Customers can link to Trevi app for unified rewards

Your Configuration

https://api.trevi.cash
Not available in this session

No active API key yet. Create one to get started.

Quick Installation

1

Download the Plugin

Download the RECOMMENDED Trevi plugin below as .zip

2

Upload to WordPress

Go to Plugins → Add New → Upload Plugin and upload the .zip

3

Configure API Key

Go to WooCommerce → Settings → Payments → Trevi Bitcoin and enter your API key

Start Earning!

Customers pay with Bitcoin and earn cashback automatically

Trevi for WooCommerce

RECOMMENDED

Payment gateway + Rewards dashboard + Payment buttons + Auto-updates

Shortcode Reference

All shortcodes are included in the main plugin:

Rewards Dashboard - Show customer balance, withdraw BTC, view keys:

[btpay_rewards_dashboard]

Payment Button - Add BTC payment buttons anywhere:

[btpay_button amount="49.99" currency="CHF" description="Product"]
NEW in v4.7.0

Cashback Preview - Display cashback on product pages:

[btpay_cashback]

Custom text with placeholders:

[btpay_cashback text="Earn {sats} sats (~{fiat}) cashback!"]

Placeholders: {sats} {fiat} {fiat_amount} {symbol} {percent}

Cashback is automatic! When customers pay with BTC, they earn cashback in sats. They can view and withdraw rewards from the Rewards Dashboard.