Download the PHP package stephenjude/paystack-lite without Composer
On this page you can find all versions of the php package stephenjude/paystack-lite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stephenjude/paystack-lite
More information about stephenjude/paystack-lite
Files in stephenjude/paystack-lite
Package paystack-lite
Short Description Paystack Lite - Use Paystack Checkout Form on the go.
License MIT
Homepage https://github.com/stephenjude/paystack-lite
Informations about the package paystack-lite
Paystack Lite - Use Paystack Checkout Form on the go.
Paystack Lite creates a blade directive you can include in your views. This is the easiest integration of paystack checkout form for Laravel applications.
Installation
-
Install PaystackLite with composer
-
if you are using Laravel less than 5.4 Add
Stephenjude\PaystackLite\PaystackLiteServiceProvider::class
to theproviders
array in yourconfig/app.php
. - Open your .env file and add your public key, secret key, customer default email and payment url like so:
Usage
Paystack-lite make use of blade directive to abstract away all javascript configurations for setting up paystack checkout forms.
Paystack Popup Example
Include the Blade Directive (@paystack
) somewhere in your template before your main application JavaScript is loaded.
The @paystack
blade directive creates payWithPaystack(amount, email, meta, onPaymentCompleted, onPaymentCancelled)
JavaScript helper which takes five parameters. the amount, customer email, meta data, callback for payment completed and callback when checkout form is closed.
Paystack Emebeded Example
Include the paystack embeded blade directive inside of your html container
Add your javascript callback function
Paystack Fluent APIs
This package makes use of bosunski/lpaystack package. So you can use all paystack fluent APIs provided in the package.
Usage
See the supported Paystack APIs here.
Changelog
Please see CHANGELOG for more information what has changed recently.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.