WooCommerce Installation
Step-by-step guide to install LayerPay on WordPress/WooCommerce
Requirements
- WordPress 6.0 or higher
- WooCommerce 7.0 or higher
- PHP 7.4 or higher
- SSL certificate (HTTPS required for wallet connections)
Installation
Method 1: Upload via Admin Panel (Recommended)
- Download layerpay-woocommerce.zip
- Go to your WordPress admin: Plugins → Add New
- Click "Upload Plugin" at the top
- Choose the downloaded ZIP file and click "Install Now"
- After installation, click "Activate Plugin"
Method 2: FTP Upload
- Download and unzip layerpay-woocommerce.zip
- Upload the
layerpayfolder to/wp-content/plugins/ - Go to Plugins in WordPress admin
- Find "LayerPay" and click "Activate"
# Via WP-CLI
wp plugin install layerpay-woocommerce.zip --activate
Configuration
After activation, configure the plugin:
- Go to WooCommerce → Settings → Payments
- Find "LayerPay - Crypto Payments" and click "Manage"
Required Settings
Merchant Wallet Address
Enter your Ethereum wallet address (starts with 0x). This is where you'll receive all payments.
0x742d35Cc6634C0532925a3b844Bc9e7595f...
Optional Settings
| Setting | Description | Recommended |
|---|---|---|
| Network Mode | Test (testnet) or Live (mainnet) | Start with Test |
| Price Margin | Buffer for price volatility | 2% |
| Price Cache | Cache duration for prices | 60 seconds |
| Debug Mode | Enable for troubleshooting | Off (unless needed) |
Testing
Before accepting real payments, test the integration:
-
Set Network Mode to "Test"
This uses testnet networks with fake tokens
-
Get testnet ETH
Visit sepoliafaucet.com to get free Sepolia ETH
-
Create a test order
Add products to cart and proceed to checkout
-
Select "Pay with Crypto"
Choose ETH and Sepolia network
-
Connect wallet and pay
Use testnet ETH to complete payment
-
Verify order status
Order should change to "Processing" after confirmation
Going Live
When you're ready to accept real payments:
- Change Network Mode from "Test" to "Live"
- Double-check your Merchant Wallet Address is correct
- Turn Debug Mode off
- Save settings
Order Management
Crypto payments appear in WooCommerce like any other order:
- Order Status: Changes to "Processing" when payment is confirmed
- Transaction ID: The blockchain transaction hash is saved with the order
- Order Notes: Details about the crypto payment (network, amount, payer address)
You can view transaction details by clicking on any order and scrolling to the "Order Notes" section, or view on the block explorer using the transaction hash.