WordPress Plugin
Accept payments on your WordPress site with CasPay
Installation
1. Download Plugin
Download the latest version from WordPress.org or our GitHub repository:
https://github.com/caspay/wordpress-plugin
2. Configuration
Basic Settings
Go to Settings → CasPay and enter your credentials:
API Key: your_api_key Environment: testnet or mainnet Currency: CSPR
3. Shortcodes
Payment Button
[caspay_button product_id="prod_123" amount="100" text="Pay with CasPay"]
Add this shortcode to any page or post to display a payment button
Subscription Button
[caspay_subscription plan_id="plan_123" text="Subscribe Now"]
Payment History
[caspay_history limit="10"]
Display payment history for logged-in users
4. WooCommerce Integration
CasPay can be integrated as a payment gateway in WooCommerce:
Enable Gateway
Go to WooCommerce → Settings → Payments and enable "CasPay"
// Add to functions.php add_filter('woocommerce_payment_gateways', 'add_caspay_gateway'); function add_caspay_gateway($gateways) { $gateways[] = 'WC_Gateway_CasPay'; return $gateways; }