PHP code example of adrianolaselva / stone-sdk

1. Go to this page and download the library: Download adrianolaselva/stone-sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

adrianolaselva / stone-sdk example snippets


$client = new \Integracao\Credenciamento\Stone\Client();

* Passar como parâmetro no construtor em forma de array.


$client = new \Integracao\Credenciamento\Stone\Client();

$client->setParameter(StoneParameterConst::STONE_HOST, "http://...");
$client->setParameter(StoneParameterConst::STONE_TIMEOUT, "");
$client->setParameter(StoneParameterConst::STONE_USERID, "");
$client->setParameter(StoneParameterConst::STONE_SECRETKEY, 10);

$merchantApi = new MerchantApi($client);