Downloads
Stars
Version
A Laravel 5 service provider for the Paynow SDK for PHP
See https://github.com/paynow/Paynow-PHP-SDK
Composer install - from the command line, run:
composer require musonza/paynow-sdk-php-laravel
Publish config file:
php artisan vendor:publish
Config file will be published on config path as paynow.php
<?php
return [
'integration_id' => env('PAYNOW_INTEGRATION_ID'),
'integration_key' => env('PAYNOW_INTEGRATION_KEY'),
'return_url' => env('PAYNOW_RETURN_URL', 'http://example.com/gateways/paynow/update'),
'result_url' => env('PAYNOW_RESULT_URL', 'http://example.com/return?gateway=paynow'),
];
You can use the Paynow facade as below:
<?php
// Returns Paynow\Payments\FluentBuilder
$payment = Paynow::createPayment('Invoice 35', '[email protected]');