Documentation
Overview
Getting Started
API Reference
Examples
SDKs
JavaScript
WordPress
Guides
Products
Subscriptions
Webhooks

WordPress Plugin

Accept payments on your WordPress site with CasPay

Installation

1Download Plugin
2Install & Activate
3Configure Settings
4Add Payment Button

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

Never share your API key publicly. Store it securely in WordPress settings.

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; }

Next Steps

API Reference

Complete API documentation

Webhooks Guide

Set up payment notifications