coinfide/php-sdk

Coinfide.com PHP SDK

1.0.0 2020-08-05 11:34 UTC

This package is not auto-updated.

Last update: 2024-11-22 06:53:14 UTC


README

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