Download the PHP package payfast/payfast-php-sdk without Composer
On this page you can find all versions of the php package payfast/payfast-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package payfast-php-sdk
payfast-php-sdk
The Payfast PHP SDK provides an easy-to-use library for integrating Payfast payments into your project. This includes Custom Integration, Onsite Integration and all APIs.
Requirements
PHP 8.1 and later.
Documentation
See the Developer Docs
Composer
You can install the library via Composer. Run the following command:
To use the library, use Composer's autoload:
Getting Started
Custom Integration
Build a checkout form and receive payments securely from the Payfast payment platform.
NB! The default value of 'testMode' is true.
See the Developer Docs
Onsite Payments
Integrate Payfast’s secure payment engine directly into your checkout page.
NB! The default value of 'testMode' is false. Otherwise we get the Exception: " There was an exception: Sorry but Onsite is not available in Sandbox mode"
See the Developer Docs
API
Recurring Billing
The Subscription Payments API gives Merchants the ability to interact with subscriptions on their accounts.
NB! The default value of 'testMode' is true.
See the Developer Docs
Update card
The update card endpoint allows you to provide buyers with a link to update their card details on a Recurring Billing subscription or Tokenization charges.
NB! The default value of 'testMode' is false. Otherwise we get the Exception: " There was an exception: Sorry but Onsite is not available in Sandbox mode"
See the Developer Docs
Transaction History
The transaction history API gives Merchants the ability to interact with their Payfast account.
NB! The default value of 'testMode' is true.
See the Developer Docs
Credit card transaction query
The credit card transaction query API gives Merchants the ability to query credit card transactions.
NB! The default value of 'testMode' is true.
See the Developer Docs
Refunds
The Refunds API Providing gives Merchants the ability to perform refunds on their account.
NB! The default value of 'testMode' is false. Otherwise we get the Exception: " There was an exception: Sorry but Onsite is not available in Sandbox mode"
See the Developer Docs