Download the PHP package codebuglab/noon-payment-laravel without Composer
On this page you can find all versions of the php package codebuglab/noon-payment-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codebuglab/noon-payment-laravel
More information about codebuglab/noon-payment-laravel
Files in codebuglab/noon-payment-laravel
Package noon-payment-laravel
Short Description Integrate noon payment API with Laravel
License MIT
Informations about the package noon-payment-laravel
⚡⚡⚡ Noon Payment with Laravel
Integrate NoonPayment API with Laravel
Table of contents
- ⚡⚡⚡ Noon Payment with Laravel
- Setup
- Installation
- Config
- Publish (optional)
- Routes (optional)
- Test Card
- Available API Methods
- Initiate
- Get Order
- Notices
- License
Setup
Installation
To install this package through composer run the following command in the terminal
Config
Refer to Noon docs to get your info then add them to .env
file
Publish (optional)
Run this command in terminal to publish package files in your app
This will publish 2 files
- Feel free to change
noon_payment.php
config file and set package configuration on this file instead of.env
if you want -
If you don't need the config file you can run this command instead
NoonPaymentController.php
is a simple example to use it in your project, consider it as a demo.
Routes (optional)
This package has two routes using NoonPaymentController.php
file
- Create payment page:
Which call function ( NoonPaymentController@index
) by GET
Request
- Receiving response
Which receive a GET
response through function ( NoonPaymentController@response
)
Test Card
the link for test cards by official documentation => Test Cards
Available API Methods
Initiate
-
This will initiate new order.
-
Simply you can use response and redirect to pay page through this code
- After sitting your payment information or cancel the process you will go to response page
-
Remember you set it up earlier in
.env
file like this - For more information about request and response for initiate visit documentation ( Payment Initiate )
Get Order
-
This will get your order information by order id that retrieved by initiate function
-
Simply you can check if transaction is success by using
$response
variable like this - For more information about response and request for initiate visit documentation ( Payment Get Order )
Notices
- If you facing any problems using this package try use Routes this will give you a simple example in
NoonPaymentController.php
file. - If you want to make
Refund
orCancel
for order then this package doesn't provide these methods yet, So we highly recommend to read full Documentation before try this and making a pull request.
License
This package is a free software distributed under the terms of the MIT license.