Download the PHP package zfhassaan/payfast without Composer

On this page you can find all versions of the php package zfhassaan/payfast. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package payfast


Latest Version on Packagist Total Downloads Hits

Disclaimer

This is unofficial Payfast API Payment Gateway. This repository is only created to help developers in streamlining the integration process. You can Review the Official Payment Gateway here.

This Package only covers direct checkout and hosted checkout process. There's no Subscription option enabled yet it'll be added in the next build.

About

This document contains detailed explanation about how to integrate with Payfast API's Based transactions functionality. This document also contains the details for online transaction. v1.0.0

Intended Audience

This document is for merchants acquires and developers who want to integrate with Payfast to perform a API's based Transaction.

Integration Scope

The merchant will implement all ecommerce functionality. PayFast service (PayFast) will be used only payment processing.

API End Points

This section contains the details of all APIs provided by Payfast. These APIs could be called by the merchants, acquirers and/or aggregators. These APIs are based on REST architecture and serve standard HTTP codes for the response payload.

Integration Prerequisites

Merchants will be registered on PayFast prior to integration. After merchant sign up for PayFast account, following two unique values will be provided to merchant to operate: Merchant_ID and Secured_key , these keys are used to get a one-time authentication token, which is used to authenticate payment requests to the "PayFast"payment gateway.

Installation

You can install the package via composer

`

Set .env configurations

configuration

Add These files in app/config.php

and also in alias in app/config.php

Steps

Direct Checkout
  1. Get Authentication Token
  2. Validate Customer Information.
  3. Initiate Transaction
Hosted Checkout
  1. Get Authentication Token
  2. Initiate Transaction on Payfast Page.

The Direct Checkout and Hosted checkout credentials can be obtained from Payfast The following are direct checkout methods that can be used with PCIDSS certified websites. You can read more about how to initiate Hosted checkout on this wiki page

What is PCI DSS Certified.

PCI certification ensures the security of card data at your business through a set of requirements established by the PCI SSC. These include a number of commonly known best practices, such as: Installation of firewalls. Encryption of data transmissions, use of anti-virus software. In addition businesses must restrict access to cardholder data and monitor access to network resources.

PCI-compliant security provides a valuable asset that informs customers that your business is safe to transact with. Conversely, the cost of noncompliance, both in monetary and reputational terms, should be enough to convince any business owner to take data security seriously.

A data breach that reveals sensitive customer information is likely to have severe repercussions on an enterprise. A breach may result in fines from payment card issuers, lawsuits, diminished sales and a severely damaged reputation.

After experiencing a breach, a business may have to cease accepting credit card transactions or be forced to pay higher subsequent charges than the initial cost of security compliance. The investment in PCI security procedures goes a long way toward ensuring that other aspects of your commerce are safe from malicious online actors.

Hosted Checkout

The Hosted checkout requires to follow following steps;

  1. Get Authentication Token from Payfast
  2. Create signature with md5 standard md5($merchant_id.':' . $merchant_name.':'.$amount.':'.$order_id)
  3. Create Payload for website. The website payload will look something like this:

  4. Submit it on Payfast provided URL.

    Usage

Changelog

Please see Changelog for more information what has changed recently.

Security

The following lines are taken from briandk repository for contributing in an open source projects.

Great Bug Reports tend to have:

License

The MIT License (MIT). Please see License File for more information.


All versions of payfast with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zfhassaan/payfast contains the following files

Loading the files please wait ....