Download the PHP package rainwaves/payfast-payment without Composer
On this page you can find all versions of the php package rainwaves/payfast-payment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rainwaves/payfast-payment
More information about rainwaves/payfast-payment
Files in rainwaves/payfast-payment
Package payfast-payment
Short Description This is a PHP package for integrating with the PayFast.co.za payment gateway. It provides a convenient way to handle one-time payments and recurring billing in your PHP applications, with support for both vanilla PHP and Laravel.
License MIT
Informations about the package payfast-payment
Payfast Payment Package
This is a PHP package for integrating with the PayFast payment gateway. It provides a convenient way to handle one-time payments and recurring billing in your PHP applications, with support for both vanilla PHP and Laravel.
Installation
You can install the PayGate Payment Package via Composer. Run the following command in your project directory:
Configuration
After installing the package, you need to configure it with your PayGate credentials. In Laravel, you'll need to publish the config file and set the credentials in your .env file:
- merchant_id=XXXXXXXX
- merchant_key=XXXXXXXXXX
- env=XXXXXXXX
- return_url=XXXXXXXXXXXX
- cancel_url=XXXXXXXXXXXX
- notify_url=XXXXXXXXXXXX
- pass_phrase=XXXXXXXXXXXX
Usage
Vanilla PHP
``
A form with hidden input will be returned
Laravel
Assuming you have the necessary routes and views set up, here's an example of how to use the PayGate Payment Package in Laravel: ``
Testing
To run the PHPUnit test cases for the package, use the following command:
vendor/bin/phpunit
License
This package is open-source software licensed under the MIT license.