Advanced e-commerce example
In this exalpe we simulate an e-commerce website using Laravel and MonCash as a payment system.
Copy .env.example
into .env
and fill the missing environment variables values ( APP_KEY, MONCASH, PUSHER...).
You should be all set to start :
sail up
composer install
In opposition to the Basic example, we use :
- Facades
- Service Providers
- Containers
- Cache
- Queue/Job
- Echo
- Data Persistance with MySQL
- 🚧 Swap environment configuration in the settings
- Strategies design patterns
- 🚧 i18n Internationalisation
- English
- French
- Kreyol
- Cart + Checkout simulation
- 🚧 Confirmation Email
- 🚧 Confirmation SMS
- 🚧 Cron job to periodically check for missed signal from MonCash
In this example we use queues to safely process payment transactions and optimize the server performance.
You will need to select a valid queue connection (default is redis) and run the queue worker:
php artisan queue:work
or
sail php artisan queue:work
Also read about process monitoring via Supervision
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
MonCash is a mobile money service that allows daily transactions between MonCash users, regardless of their location in Haiti. Some of the daily transactions users can do are:
- Hold money in their MonCash account for day-to-day purchases
- Receive international money transfers
- Send money between MonCash users by using their phone number
- Deposit money to their MonCash account
- Withdraw money from their MonCash account
- Purchase Digicel bundles of minutes or data
- Pay to affiliated merchants
- Pay bills
- Receive payroll payments
Digicel Haiti offers this service in partnership with Sogebank.
MonCash has been in Haiti since 2010. The old name was Tchotcho Mobil.