Download the PHP package ctf0/laravel-paymob without Composer
On this page you can find all versions of the php package ctf0/laravel-paymob. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ctf0/laravel-paymob
More information about ctf0/laravel-paymob
Files in ctf0/laravel-paymob
Download ctf0/laravel-paymob
More information about ctf0/laravel-paymob
Files in ctf0/laravel-paymob
Vendor ctf0
Package laravel-paymob
Short Description paymob integration for laravel
License MIT
Homepage https://github.com/ctf0/laravel-paymob
Package laravel-paymob
Short Description paymob integration for laravel
License MIT
Homepage https://github.com/ctf0/laravel-paymob
Please rate this library. Is it a good library?
Informations about the package laravel-paymob
Laravel PayMob
Paymob integration for laravel.
Currently Supported
Installation
-
install the package
- publish the package assets with
Config
- config/paymob.php
Setup
-
add the package routes to your
routes/web.php
ex. - add
Billable
to the model you will be billing. - next add
getBillingData()
which should return all the required fields for the order creation, check paymob requirements for more info.- all the optional fields has already been taken care of.
Usage
Normal
-
update
paymob.controller
with your own controller, which should have 3 methodsyou can check
DummyController
for a more detailed overview.type @method return GET checkOut
returns the view where the user will press the checkout btn POST process
get the selected payment type & make a request to paymob server GET complete
check for the transaction hmac & save it to your server, for more info check.
Refund
- all you need to is to call
PayMob::refund
and pass to it thetransaction_id
&amount_in_pounds
that will be refunded, ex.for more info check
Security
If you discover any security-related issues, please email [email protected].
All versions of laravel-paymob with dependencies
PHP Build Version
Package Version
Requires
illuminate/support Version
^7.0|^8.0|^9.0
The package ctf0/laravel-paymob contains the following files
Loading the files please wait ....