Skip to content

coinfide/php-sdk

Repository files navigation

Coinfide integration generic PHP SDK

Installation

Require it with Composer composer require confide/php-sdk dev-master.

Requirements

The server should support TLS 1.2. It means OpenSSL version > 1.0.1 and Curl > 7.43, check the library versions your PHP is compiled against.

Running

Basically, all parameters are passed to Coinfide\Client constructor. Supported parameters are:

  • sslOptions: array of curl options to pass to the client;
  • trace: passing 'trace' => true dumps all requests (made and received) to console.

Examples

Copy .env.example to .env and run the tests or examples. The following examples are included:

  • example.php - example order creation, and redirection to payment form;
  • callback.php - example callback processing;
  • orderlist.php - getting list of orders, fetching order details;
  • refund.php - payment refund;
  • status.php - changing order status (cancelling order).

Further reading

Read full documentation in the wiki