Download the PHP package fergusdixon/payfast-sdk-php without Composer
On this page you can find all versions of the php package fergusdixon/payfast-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fergusdixon/payfast-sdk-php
More information about fergusdixon/payfast-sdk-php
Files in fergusdixon/payfast-sdk-php
Package payfast-sdk-php
Short Description PayFast SDK - Make requests to PayFast
License MIT
Informations about the package payfast-sdk-php
payfast-sdk-php
A PHP handler for making requests to documented PayFast endpoints.
See their docs
Features
- [x] CI tools
- [x] Handle signature generation
- [x] Generate Timestamp
- [x] Make user defined requests
- [ ] Support R0 verification charges
- [x] Error handling
- [ ] Built in functions
- [ ] Ping
- [ ] Transaction History
- [ ] Query Card Transaction
- [ ] Subscriptions
- [ ] Charge Subscription
- [ ] Fetch Subscription Info
- [ ] Pause Subscription
- [ ] Unpause Subscription
- [ ] Cancel Subscription
Usage
This PayFast SDK requires config variables passed to it.
merchantId
and passPhrase
are mandatory, if not defined other fields will default to values shown below:
Custom Requests
You can create a request to any endpoint in PayFast using $payfast->request->customRequest($verb, $method, $options)
For example, getting Transaction History
Quirks
Signature Generation
Payfast requires a MD5 hash of the alphabetised submitted variables, header and body variables, as well as the passphrase to ensure the request has not been tampered with.
Testing
Payfast provides a sandbox environment to test integrations.
Test requests are sent to the normal endpoint, but append ?testing=true
to the URI.
Acknowledgements
- Add yourself here!