Download the PHP package shabayek/laravel-payment without Composer
On this page you can find all versions of the php package shabayek/laravel-payment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-payment
Laravel Payment Methods
This is a Laravel Package for Payment Gateway Integration. It has a clear and consistent API, is fully unit tested, and even comes with an example application to get you started.
Note this package under development Don't use it in production.
Usage
-
Install laravel payment package with composer
-
Publish the config file with following command
-
Initiate a payment with the following code:
-
Implement customer details contracts on user model by adding Billable trait
- Following columns is default for billable user
- first_name
- last_name
- phone
if you want to change the column name you can do add public methods on your model with convention name CamelCase like firstName + Column FirstNameColumn
-
Implement address details with relation to address model
The default relation is address if you want change the relation name you can do add public methods on your user model
-
Pass the user model to payment gateway
-
Add items with loop array of data items
-
Set transaction id will send to gateway
-
Check the payment is online to get pay url
-
The MasterCard method adds a new way to get the checkout form
pass the transaction model will update successIndicator and return view with checkout form
-
Print the errors messages
-
When callback from payment gateway, you can use the following code to verify the payment
- Check the payment status
Change log
Please see CHANGELOG for more information on what has been changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
If you've found a bug regarding security please mail [email protected] instead of using the issue tracker.
License
The Laravel payment methods package is open-sourced software licensed under the MIT license.
All versions of laravel-payment with dependencies
guzzlehttp/guzzle Version ^7.4
illuminate/contracts Version ^8.0