Download the PHP package wychoong/lunarphp-mpgs without Composer
On this page you can find all versions of the php package wychoong/lunarphp-mpgs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wychoong/lunarphp-mpgs
More information about wychoong/lunarphp-mpgs
Files in wychoong/lunarphp-mpgs
Package lunarphp-mpgs
Short Description MPGS payment adapter for Lunar
License MIT
Homepage https://github.com/wychoong/lunarphp-mpgs
Informations about the package lunarphp-mpgs
MPGS payment adapter for Lunar
MPGS Hosted checkout integration for Lunar
Supported action
- purchase
Not supported (PR welcome)
- refund
- authorize/capture
Installation
You can install the package via composer:
You can publish the config file with:
Enable the driver
Set the driver in config/lunar/payments.php
Add your MPGS credentials
Set your MPGS_ variable in .env
Setup
We use closure to return the data you want to pass to the api
Backend Usage
Creating a PaymentIntent
This method will initiate a checkout session to be used by checkout.js
Latest session and order.id are stored in cart's meta
Storefront Usage
This package only provide basic blade components to interact with MPGS,, publish the views to fit your storefront design
Set up the scripts and payment component
In the your checkout page
The component will handle the success payment for you. To redirect or add handling after payment verified, set your route or listen to livewire event
Roadmap
- support capture/refund if applicable
- implement omnipay-mpgs adapter
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- wychoong
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of lunarphp-mpgs with dependencies
guzzlehttp/guzzle Version ^7.5
illuminate/contracts Version ^9.0 | ^10.0
illuminate/support Version ^9.0 | ^10.0
livewire/livewire Version ^2.0
lunarphp/core Version ^0.3.0-alpha.2
spatie/laravel-package-tools Version ^1.14.0