Commit 172ad7ef authored by Moki Ding's avatar Moki Ding 👻

Rewrite README.md

parent 79042ebd
# ChipChap API integration for PHP
# BankOfTheCommons API integration for PHP
This repository is a PHP implementation to interact with the ChipChap Financial API.
This repository is a PHP implementation to interact with the BankOfTheCommons API.
The API control panel are in [https://commerce.chip-chap.com](https://commerce.chip-chap.com)
It provides interaction with many online payment providers like Halcash, Paynet,
It provides interaction with many online payment providers like Bank Transfer, Spark,
Bank Card, Online Wallets, etc. with a secure authentication and authorization mechanism.
## The currently implemented services are:
* **Paynet:** generates reference barcodes for paying over internet without bank card data.
* **Halcash:** sends a hal to a phone or cancel a ticket.
* **Virtual Card:** creates a virtual visa.
* **Bitcoin:** pay and receive payments with btc.
* **Faircoin:** pay and receive payments with fair.
* **Etherium:** pay and receive payments with ETH.
* **BankTransfer:** sends money with SEPA
* **Spark Card:** loadup/order your spark card.
* **Bitcoin:** pay and receive payments with BTC.
* **Faircoin:** pay and receive payments with FAIR.
## Installation
1. Get the code via clone
* `git clone https://github.com/Chip-Chap/PHP-SDK.git`
* `git clone https://git.fairkom.net/faircoop/BankOfTheCommons/PHP-SDK.git`
2. Get via require in composer.json
* `require: { "chipchap/php-sdk": "dev-master" }`
* `require: { "bankofthecommons/php-sdk": "dev-master" }`
## Basic sample
```
......@@ -28,11 +26,11 @@ use TelepayApi\Core\UserCredentials;
use TelepayApi\TelepayClient;
$credentials = new UserCredentials(
'YOUR_TELEPAY_ACCESS_KEY',
'YOUR_TELEPAY_ACCESS_SECRET'
'YOUR_BOTC_ACCESS_KEY',
'YOUR_BOTC_ACCESS_SECRET'
);
$tc = new ChipChap($credentials, 'https://sandbox.chip-chap.com');
$tc = new ChipChap($credentials, 'https://api.bankofthecommons.coop');
print_r($tc->getSample()->make());
```
......
{
"name": "chip-chap/php-sdk",
"description": "The Chip-Chap PHP SDK for easy integrate Chip-Chap APIs from PHP",
"name": "bankofthecommons/php-sdk",
"description": "The BankOfTheCommons PHP SDK for easy integrate BotC APIs from PHP",
"authors": [
{
"name": "Lluis Santos",
"email": "cto@chip-chap.com"
"name": "BankOfTheCommons Developers",
"email": "info@bankofthecommons.coop"
}
],
"require": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment