PHPackages                             julianmc90/place-to-pay-sdk - 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. julianmc90/place-to-pay-sdk

ActiveLibrary

julianmc90/place-to-pay-sdk
===========================

PlaceToPay SDK for PHP

013PHP

Since Jan 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/julianmc90/PlaceToPaySDK)[ Packagist](https://packagist.org/packages/julianmc90/place-to-pay-sdk)[ RSS](/packages/julianmc90-place-to-pay-sdk/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PlaceToPaySDK
=============

[](#placetopaysdk)

PlaceToPaySDK For PHP

Requirements
------------

[](#requirements)

- ext-soap
- memcached

Installation
------------

[](#installation)

Install using composer

```
composer require julianmc90/place-to-pay-sdk:dev-master@dev

```

Require this autoload

```
require_once __DIR__ . '/vendor/autoload.php';

use PlaceToPay\PlaceToPay;
```

Create and configure a PlaceToPay Object

```
/**
 * Setting PlaceToPay Object
 * @var PlaceToPay
 */
$placeToPay =  new PlaceToPay([
        /**
         * Web service Url
         */
		'wsdl'   => 'https://test.placetopay.com/soap/pse/?wsdl',

        /**
         * Login
         */
        'login'  => '6dd490faf9cb87a9862245da41170ff2',

        /**
         * Transactional Key
         */
        'tranKey'=> '024h1IlD',

        /**
         * Timezone (Optional) defaults to America/Bogota
         */
        //'timeZone' => ''
	]);
```

Getting Bank List
-----------------

[](#getting-bank-list)

To get the bank list, this is loaded from cahe and refreshed each day

```
$placeToPay->getBankList();
```

Setting up a PSE Transaction Request
------------------------------------

[](#setting-up-a-pse-transaction-request)

```
/**
 * payer, buyer and shipping follows the next format
 * @var Array
 */
$payer = Array(
        'document'     => '',
        'documentType' => '',
        'firstName'    => '',
        'lastName'     => '',
        'company'      => '',
        'emailAddress' => '',
        'address'      => '',
        'city'         => '',
        'province'     => '',
        'country'      => '',
        'phone'        => '',
        'mobile'       => ''
);
```

Additional data

```
/**
 * Additional data follows the next format
 * @var array
 */
$additionalData = Array();

/**
 * could be added more indexes to fit your needs
 */
$additionalData[] = ['name'=>'', 'value'=>''];
```

The transaction request need the following information

```
/**
 * To set the Transaction request
 * follow this format
 */
$placeToPay->setPseTransactionRequest([
	        'bankCode'		=> '',
	        'bankInterface'	=> '',
	        'returnURL'		=> '',
	        'reference'		=> '',
	        'description'	=> '',
	        'language'		=> '',
	        'currency'		=> '',
	        'totalAmount'	=> 0,
	        'taxAmount'		=> 0,
	        'devolutionBase'=> 0,
	        'tipAmount'		=> 0,
	        'payer'			=> $payer,
	        'buyer'			=> $buyer,
	        'shipping'		=> $shipping,
	        'additionalData'=> $additionalData
        ]);
```

Create and send the transaction

```
$placeToPay->createTransaction();

// Get transaction information

/**
 * needs a transaction identifier
 * @type {Number}
 */
$identifier = 1234;

$placeToPay->getTransactionInformation($identifier);
```

Setting up a PSE Transaction MultiCredit Request
------------------------------------------------

[](#setting-up-a-pse-transaction-multicredit-request)

Needs Credits to be setup

```
/**
 * Credits follows the next format
 * @var array
 */
$credits = [];

/**
 * could be added more indexes to fit your needs
 */
$credits[] = [
    'entityCode' 	=>'',
    'serviceCode' 	=>'',
    'amountValue' 	=>0,
    'taxValue' 		=> 0,
    'description' 	=>''
];
```

The transaction multicredit request needs the following information

```
$placeToPay->setPseTransactionMultiCreditRequest([
         'bankCode'      => '',
         'bankInterface' => '',
         'returnURL'     => '',
         'reference'     => '',
         'description'   => '',
         'language'      => '',
         'currency'      => '',
         'totalAmount'   => 0,
         'taxAmount'     => 0,
         'devolutionBase'=> 0,
         'tipAmount'     => 0,
         'payer'         => $payer,
         'buyer'         => $buyer,
         'shipping'      => $shipping,
         'additionalData'=> $additionalData,
         'credits' => $credits
    ]);
```

Creates and gets the transaction response

```
$placeToPay->createTransactionMultiCredit();
```

Note
----

[](#note)

This is made for a testing my skills for PlaceToPay company

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/acd91b54e7e25de363b1cd37c1938297c465f00c0d4b229a3cf8b77be619b47d?d=identicon)[julianmc90](/maintainers/julianmc90)

---

Top Contributors

[![julianmc901](https://avatars.githubusercontent.com/u/206603342?v=4)](https://github.com/julianmc901 "julianmc901 (16 commits)")

### Embed Badge

![Health badge](/badges/julianmc90-place-to-pay-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/julianmc90-place-to-pay-sdk/health.svg)](https://phpackages.com/packages/julianmc90-place-to-pay-sdk)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
