A simple WooCommerce payment gateway for OCPay.
Accept secure payments via OCPay powered by SATIM. This plugin integrates OCPay payment gateway into your WooCommerce store, allowing customers to pay securely using Algerian payment methods.
- PHP >= 7.2
- WooCommerce >= 4.0
- WordPress installation
- OCPay merchant account
Download the latest release from the GitHub releases page.
- Upload the plugin files to the
/wp-content/plugins/ocpay-gatewaydirectory - Activate the plugin through the 'Plugins' menu in WordPress
- Navigate to WooCommerce > Settings > Payments
- Click on "OCPay" to configure the gateway
Before using this plugin, you need to register as a merchant:
- Visit OneClickDz to sign up
- Complete the merchant registration process
- Wait for your merchant status to be validated
- Once approved, you'll receive your API credentials
OCPay provides two modes for testing and production:
- Sandbox Mode: For testing payments without real transactions
- Production Mode: For accepting real payments from customers
You'll need to obtain API keys for each mode from your OCPay merchant dashboard.
- Go to WooCommerce > Settings > Payments > OCPay
- Enable the payment gateway
- Configure the following settings:
- Title: The payment method name shown to customers (e.g., "OCPay")
- Description: Description shown during checkout (e.g., "Pay securely with OCPay")
- Environment: Select "Sandbox" for testing or "Production" for live payments
- Sandbox API Key: Enter your sandbox API key for testing
- Production API Key: Enter your production API key for live payments
- Fee Mode: Choose who pays the transaction fees (Merchant, Customer, or Split)
- Final Order Status: Set the order status after successful payment
- Save your settings
- Test a checkout to ensure everything works correctly
- Set "Environment" to "Sandbox" in the plugin settings
- Enter your sandbox API key in the "Sandbox API Key" field
- Place test orders to verify the integration
- Once testing is complete, switch "Environment" to "Production" and use your production API key
For detailed documentation and API references, visit:
For support and questions:
- Visit the OCPay Documentation
- Contact OneClickDz support
OneClickDz - https://oneclickdz.com
GPL-3.0-or-later