1. Go to this page and download the library: Download bobma-awen/tcc-transaction 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/ */
bobma-awen / tcc-transaction example snippets
use LoyaltyLu\TccTransaction\Annotation\Compensable;
/**
* Class OrderService.
* @RpcService(name="PayService", protocol="jsonrpc-http", server="jsonrpc-http", publishTo="consul")
*/
class PayService implements PayAccountInterface
{
public function creditAccountTcc($input)
{
throw new \Exception('msg');
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.