PHPackages                             chencha/pesapal - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. chencha/pesapal

ActiveLibrary[Payment Processing](/categories/payments)

chencha/pesapal
===============

Pesapal Payments Integration

0.1.1(11y ago)1115MITPHP

Since Dec 9Pushed 11y ago2 watchersCompare

[ Source](https://github.com/prodeveloper/pesapal)[ Packagist](https://packagist.org/packages/chencha/pesapal)[ RSS](/packages/chencha-pesapal/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (12)Versions (4)Used By (0)

\##Pesapal PHP module

\##Introduction The application allows for integration with pesapal in a framework and database agnostic way.

This is achieved by firing and dispatching payment events to the rest of your application.

The application is currently in heavy development.

\##Installation

From the root of your application run

```
composer require chencha/pesapal

```

This should install the package.

\##Getting started

\##Configurations

On start of application, several objects must be provided. The objects are listed below

\###Credentials

This is a simple value object

```
$credentials= new \Pesapal\Values\Credentials("","");

```

\###Demo Status

This object controls interaction with either the live or demo pesapal application. The object should be constructed with false when live and true when in demo mode

```
$demoStatus= new \Pesapal\Values\DemoStatus(true);

```

\###Iframe Dimensions

For iframe use, the dimensions should be provided. You can override any of the defaults

```
$iframeDimensions=new \Pesapal\Values\IframeDimensions(
    $height="620px",
    $width="500px",
    $autoscrolling="no",
    $iframeBorder=0
);

```

\###Listeners

\####Iframe Generated Event Listener

This class should listen for and act when a new Iframe is generated.

The listener must impliment

```
\Pesapal\Contracts\IFrameListener

```

A sample listener is provided that simply echos out the iframe

```
