Download the PHP package alet-systems/alet-payment without Composer
On this page you can find all versions of the php package alet-systems/alet-payment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alet-systems/alet-payment
More information about alet-systems/alet-payment
Files in alet-systems/alet-payment
Package alet-payment
Short Description AletPayment Laravel API Package.
License MIT
Homepage https://github.com/alet-systems/alet-payment-laravel
Informations about the package alet-payment
AletPayment Laravel API Package.
Documentation
See the Developer
API docs.
Installation
You can install the package via composer:
For Laravel version <= 5.4
With version 5.4 or below, you must register your facades manually in the aliases section of the config/app.php configuration file.
Usage
The package needs to be configured with your account's API key, which is available in the AletPayment Dashboard. Require it with the key's value. After install the package. you can use as follow.
:warning: Since V2
AletPayment->create()
is deprecated andAletPayment->checkout->create()
should be used.
Creating Checkout Session
After importing the alet-systems
package, use the checkout property of the AletPayment instance to create or fetch checkout sessions
.
::Note
you Must use use Illuminate\Support\Carbon
instead of use Carbon\Carbon
to get the expire date
After putting your building AletPaymentCheckoutRequest
just call the create
method. Note passing sandbox: true
option will create the session in test environment.
This is session response object contains the following fields
Getting Session by Session ID
To track the progress of a checkout session you can use the fetch method as shown below:
The following object represents a session
Cancel Session by Session ID
If the merchant want to cancel a checkout session. it's now possible as shown below.
The AletPaymentCheckoutSession
class is returned.
DirectPay
learn more about DirectPay here
DirectPay for telebirr
DirectPay for awash wallet
DirectPay for awash
Change Log
Released Date: v1.0.0
June 09, 2022
- Initial Release
Released Date: v1.2.0
June 30, 2022
- Name space changed. use AletPayment/AletPayment
- Exception Handling Improved
Released Date: v1.3.0
June 30, 2022
expiredate
parameter in checkout session create formate changed to LocalDateTime format- Exception Handling For Non Exsisting Session
Released Date: v2.0.0
Aug 10, 2022
DirectPay
added for Telebirr and Awash payment options
More Information
Credits
- basliel
- All Contributors
License
The MIT License (MIT). Please see License File for more information.