Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/updesire/your-gate/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
YourGate Payment Gateway for WooCommerce
About
This plugin integrates your WooCommerce store with the YourGate payment gateway, allowing your customers to make secure payments easily and safely.
Features
- ✅ Authority creation and redirect to checkout page
- ✅ Webhook support for automatic payment confirmation
- ✅ Callback support for user return
- ✅ Developer Sandbox mode
- ✅ Custom Metadata support
- ✅ Display payment info in order management
- ✅ Persian and English language support
- ✅ Compatible with WordPress 5.0+ and WooCommerce 3.0+
Requirements
| Version | Minimum Version |
|---|---|
| WordPress | 5.0+ |
| WooCommerce | 3.0+ |
| PHP | 7.2+ |
Installation
Method 1: Manual Installation
- Download the plugin file
- Extract the ZIP file
- Upload the
yourgate-getwayfolder towp-content/plugins/ - Go to Plugins > Installed Plugins in WordPress admin
- Activate the YourGate WooCommerce Gateway plugin
Method 2: ZIP File Installation
- Go to Plugins > Add New in WordPress admin
- Click Upload Plugin
- Select and install the plugin ZIP file
- Activate the plugin
Configuration
After activating the plugin:
- Go to WooCommerce > Settings > Payments
- Click Manage next to YourGate
- Enter the following settings:
| Setting | Description |
|---|---|
| Enable / Disable | Enable/disable the payment gateway |
| Title | Display title on checkout page (default: YourGate) |
| Description | Display description on checkout page |
| YourGate Token | Your API token from YourGate panel |
| Base URL | API server address (default: https://admin.yourgate.io) |
| Developer Sandbox | Enable Sandbox for testing |
| Send Metadata | Include order info in request |
| Webhook Secret | Webhook authentication token (optional) |
Getting Token from YourGate Panel
- Login to YourGate admin panel: https://admin.yourgate.io
- Go to API Keys or Tokens section
- Create a new token
- Copy the token and paste it in the YourGate Token field in plugin settings
Webhook Setup
To receive automatic payment results, configure Webhook in YourGate panel:
Webhook URL:
https://yourdomain.com/wp-json/yourgate/v1/webhook
⚠️ Make sure to use HTTPS
Setup Steps:
- Login to YourGate panel
- Go to Webhook Settings section
- Enter the URL above
- Optionally, create a Webhook Secret and enter it in plugin settings
File Structure
yourgate-getway/
├── yourgate.php # Main plugin file
├── readme.txt # WordPress readme file
├── README.md # This file (English)
├── README.fa.md # Persian readme file
└── languages/
├── yourgate-woocommerce.pot # Translation template
├── yourgate-woocommerce-fa_IR.po # Persian translation
├── yourgate-woocommerce-fa_IR.mo # Persian compiled translation
├── yourgate-woocommerce-en_US.po # English translation
└── yourgate-woocommerce-en_US.mo # English compiled translation
Multilingual Support
This plugin supports two languages:
- Persian (fa_IR) - For Persian websites
- English (en_US) - For English websites
The display language is selected based on your WordPress site language settings.
Troubleshooting
| Problem | Solution |
|---|---|
| Plugin not showing | Make sure WooCommerce is installed and active |
| API connection error | Check your token and API URL |
| Webhook not working | Check webhook URL and HTTPS |
| Payment not confirmed | Check order status in admin panel |
Changelog
1.1.0
- Added webhook support
- Added Developer Sandbox mode
- Added Metadata support
- Improved security with Webhook Secret
- Added Persian language support
1.0.0
- Initial plugin release
License
This plugin is licensed under GPLv2.
Support
- Website: https://yourgate.io
- Email: support@yourgate.io
Contributing
Contributions are welcome! Please submit a Pull Request.
Made with ❤️ by YourGate