wemake180 / bagisto-wompi
Wompi Payment Gateway integration for Bagisto E-commerce - Support for Colombia payments
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Type:bagisto-package
pkg:composer/wemake180/bagisto-wompi
Requires
- php: ^8.2|^8.3
- ext-curl: *
- ext-json: *
- guzzlehttp/guzzle: ^7.0
- laravel/framework: ^11.0
Requires (Dev)
- orchestra/testbench: ^9.0
- phpunit/phpunit: ^10.0|^11.0
This package is not auto-updated.
Last update: 2025-10-24 04:44:53 UTC
README
A comprehensive Wompi Payment Gateway integration for Bagisto e-commerce platform, specifically designed for Panama market with support for Clave and international credit/debit cards.
Features
- 🇵🇦 Panama Market Focus: Full support for Wompi Panama payment methods
- 💳 Multiple Payment Methods: Credit cards, debit cards, and Clave (Panama)
- 🔐 Secure Transactions: 3D Secure authentication and SHA256 signatures
- 📱 Widget Integration: Embedded and popup payment forms
- 🔔 Real-time Webhooks: Automatic order status updates
- 🌍 Multi-language: Spanish and English support
- 📊 Transaction Tracking: Complete transaction history and status monitoring
- ⚡ Easy Configuration: Simple admin panel setup
Requirements
- Bagisto: 2.x
- PHP: 8.1 or higher
- Laravel: 10.x or 11.x
- Extensions: curl, json
Installation
Method 1: Manual Installation
-
Copy the module to your Bagisto project:
cp -r packages/Webkul/Wompi /your-bagisto-project/packages/Webkul/Wompi
-
Register the module in
config/concord.php:'modules' => [ // ... other modules \Webkul\Wompi\Providers\WompiServiceProvider::class, ],
-
Run migrations:
php artisan migrate php artisan config:cache
Method 2: Composer Installation (Future)
composer require webkul/bagisto-wompi php artisan migrate
Configuration
- Access Admin Panel → Sales → Payment Methods
- Enable Wompi payment method
- Configure credentials:
- Sandbox Mode: Enable for testing
- Public Key (Sandbox): Your sandbox public key
- Private Key (Sandbox): Your sandbox private key
- Public Key (Production): Your production public key
- Private Key (Production): Your production private key
Wompi Dashboard Configuration
Configure these URLs in your Wompi dashboard:
- Webhook URL:
https://your-domain.com/wompi/webhook - Success URL:
https://your-domain.com/wompi/success - Cancel URL:
https://your-domain.com/wompi/cancel
Usage
- Customer selects Wompi as payment method during checkout
- Redirect to payment page with Wompi widget
- Customer completes payment using their preferred method
- Automatic webhook processing updates order status
- Customer redirected to success/cancel page based on result
Supported Payment Methods
- Credit Cards: Visa, MasterCard
- Debit Cards: Local and international
- Clave: Panama's national payment system
- 3D Secure: Enhanced security for card transactions
File Structure
packages/Webkul/Wompi/
├── src/
│ ├── Config/system.php # Admin configuration
│ ├── Http/Controllers/ # Controllers
│ ├── Models/ # Eloquent models
│ ├── Payment/Wompi.php # Main payment class
│ ├── Repositories/ # Data repositories
│ └── Resources/ # Views and translations
├── composer.json # Package definition
└── README.md # Documentation
For New Projects
To use this module in another Bagisto project:
-
Copy the entire folder:
cp -r packages/Webkul/Wompi /new-project/packages/Webkul/Wompi
-
Add to concord.php in the new project:
\Webkul\Wompi\Providers\WompiServiceProvider::class,
-
Run setup:
cd /new-project php artisan migrate php artisan config:cache -
Configure in Admin Panel with your Wompi credentials
License
MIT License - see LICENSE file for details.
Ready to use in any Bagisto project!