consolefinance/api-client-php

API client that enables developers to access and manage the data of their Console Finance account.

1.0.0 2018-07-10 09:22 UTC

This package is not auto-updated.

Last update: 2024-10-09 12:10:43 UTC


README

Console Finance

Console Finance API Client for PHP

API client that enables developers to access and manage the data of their Console Finance account.

Requirements

  1. Console Finance account.
  2. Your account must belong to a business or you must be a business.
  3. API credentials. It can be obtained inside the Apps menu in the business settings dashboard.
  4. A server with PHP >= 5.6 installed. Composer also recommended.
  5. SSL Certificate.

Installation

composer require consolefinance/api-client-php

Usage

Load the library:

require 'vendor/autoload.php';

use \Console\Finance\AppClient;

Send payment request:

$Client->set_api_key('YOUR API KEY');
$Client->set_token($_POST['token']);
$Client->set_state($_POST['state']);
$Client->send_payment_request();