2017 © Pedro Peláez
 

library fondy

Library for using API of fondy.eu

image

popcornphp/fondy

Library for using API of fondy.eu

  • Tuesday, November 7, 2017
  • by PopcornPHP
  • Repository
  • 1 Watchers
  • 0 Stars
  • 57 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 16 % Grown

The README.md

IPSP SDK Fondy

Payment service provider

A payment service provider (PSP) offers shops online services for accepting electronic payments by a variety of payment methods including credit card, bank-based payments such as direct debit, bank transfer, and real-time bank transfer based on online banking. Typically, they use a software as a service model and form a single payment gateway for their clients (merchants) to multiple payment methods. read more, (*1)

Source code

https://github.com/cloudipsp/ipsp-php, (*2)

Installation

composer require popcornphp/fondy

Quick Start

<?php

require_once 'vendor/autoload.php';

use PopcornPHP\Fondy\Client;

define('HOST', $_SERVER['HTTP_HOST']);
define('MERCHANT_ID', 1396424);
define('MERCHANT_PASSWORD', 'test');
define('GATEWAY', 'api.fondy.eu');
define('ORDER_ID', 'test_order_' . rand(0, 10000));

$client = new Client(MERCHANT_ID, MERCHANT_PASSWORD, GATEWAY);

Generate Checkout

<?php

use PopcornPHP\Fondy\Api;

$api = new Api($client);

$data = $api->call('checkout', array(
    'order_id' => ORDER_ID,
    'order_desc' => 'Short Order Description',
    'currency' => $api::UAH,
    'amount' => 20 * 100, // 20 UAH
    'response_url' => sprintf('http://%s/response.php?order_id=%s', HOST, ORDER_ID),
    'server_callback_url' => sprintf('http://%s/callback.php', HOST),
))->getResponse();

API Methods

Accept purchase (hosted payment page)

$data = $api->call('checkout',array());

Accept purchase (merchant payment page)

$data = $api->call('pcidss',array());

Purchase using card token

$data = $api->call('recurring',array());

Payment report

$data = $api->call('reports',array());

Order Refund

$data = $api->call('reverse',array());

Check payment status

$data = $api->call('status',array());

Card verification

$data = $api->call('verification',array());

Order capture

$data = $api->call('capture',array());

P2P card credit

$data = $api->call('p2pcredit',array());

The Versions

07/11 2017

dev-master

9999999-dev

Library for using API of fondy.eu

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

by Alexander Shapoval

06/11 2017

v1.0

1.0.0.0

Library for using API of fondy.eu

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

by Alexander Shapoval

17/01 2017

v1.0.0

1.0.0.0

Library for using API of fondy.eu

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

by Alexander Shapoval