Download the PHP package niush/laravel-nano-to without Composer
On this page you can find all versions of the php package niush/laravel-nano-to. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download niush/laravel-nano-to
More information about niush/laravel-nano-to
Files in niush/laravel-nano-to
Package laravel-nano-to
Short Description Nano.to Payment Gateway in Laravel
License MIT
Homepage https://github.com/niush/laravel-nano-to
Informations about the package laravel-nano-to
Laravel NANO.TO
Easily integrate Nano.to Payment Gateway in Laravel Application, with full control.
Installation on Laravel
You can install the package via composer:
Then publish the config file using artisan.
Update config file (config/nano-to.php
) with your desired settings. Use env
where ever required.
Configuration
Add Nano Webhook Secret in your env file. Make sure it is difficult to guess with random string. DO NOT USE SAME AS APP_ENV.
Go through the generated config file and update as required. Make sure the Nano address all belongs to you and is accessible. You can provide, default title and description.
Required Named Routes
For this to work properly, you must have these 3 named routes created to handle your business logic. The named route can always be customized in config file.
-
nano-to-success
: Redirected when Payment is successful. Do not confirm the payment using this route. The confirmation must be handled in webhook url. -
nano-to-cancel
: Redirected when Payment is canceled, using back button. Useful to redirect back to cart page etc. nano-to-webhook
: The POST route that is called by Nano.to when the payment is successfully processed. The request contains payment information, hash, webhook secret in headers. More information can be found down below.
Using Full Route Instead:
By default the config accepts named route for webhook and success page. If you want to use full route, for cases like different domain and backend to handle webhook or success page. You can update the config files success_url
, cancel_url
and webhook_url
to be a full URL with domain name.
As, you have full control, it can easily be implemented via APIs also.
Usage
NOTE: Amount is always in USD Currency.
For initiating Payment process:
You might want to use custom Webhook Secret. So that, it is always different for each checkout. So, instead of using same environment variable. You can do:
Webhook Response Example
Full Example of Webhook Controller
Click to expand!
Advanced Usage (API / Helpers)
View details and response here
Translation
Add translation for these messages if required.
nano-to.checkout-page-not-loaded
= "Unable to load Checkout Page."nano-to.no-receiver
= "Receiver Account was not available."
Testing
Contributions are welcome.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email author instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Nano.to is a product of Forward Miami, LLC. ⚡
Help me with Nano?
1) What is Nano?
[Nano](https://nano.org/) is a Fee-less, Eco-friendly, Instant digital money for the modern world.
1) How to verify or view block information of my transaction?
https://nanolooker.com/block/{HASH}
Show Support
nano_378shkx4k3wd5gxmj3xnjwuxtaf9xrehyz7ugakpiemh8arxq8w9a9xniush
All versions of laravel-nano-to with dependencies
guzzlehttp/guzzle Version ^7.3
illuminate/support Version ^6.0|^7.0|^8.0|^9.0