定制 bitocredit/php-gateway 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bitocredit/php-gateway

最新稳定版本:v1.1.1

Composer 安装命令:

composer require bitocredit/php-gateway

包简介

A PHP Library for integrate with bitocredit API.

README 文档

README

Bitocredit PHP Library

This library used for integrate with Bitocredit api

usage

copy config.sample.php file in your project and rename it to config.php

fill the variables inside config.php file.

and use library like this:

    require "vendor/autoload.php";
    include_once "your_project_path/config.php"; // path to your config.php file
    
    use Bitocredit\PhpGateway\ApiPhp;
    
    // if you set variables inside config file . you don't have to pass constructor values 
    $api = new ApiPhp("base_url" , "your_token");
    $result = $api->createWallet("wallet_id" , "network"); // replace wallet_id with your wallet id and set network type

methods

createWallet

This method used for creating wallet for user

endpoint : https://bitocredit.com/api/create/wallet/{token}

    $result = $api->createWallet("wallet_id" , "network"); // replace wallet_id with your wallet id and set network type

transactionCheck

This method used for check a transaction is confirmed or not

endpoint : https://bitocredit.com/api/transaction/check/{token}

    $result = $api->transactionCheck("transaction_hash" , "wallet_address"); // replace transaction_hash and wallet_address with your transaction hash and wallet address

transactionRecovery

This method used for check a transaction that is lost in blockchain

endpoint : https://bitocredit.com/api/transaction/recovery/{token}

    $result = $api->transactionRecovery("transaction_hash"); // replace transaction_hash with your transaction hash

transactionFee

This method used for check a transaction that is lost in blockchain

endpoint : https://bitocredit.com/api/transaction/fee/{token}

    $result = $api->transactionFee(); 

transactionExample

Please only use this api for test ! it's only an example to show how the server sends data to callback after payment confirmation

endpoint : https://bitocredit.com/api/transaction/example/callback

    $result = $api->transactionExample("transaction_hash"); // replace transaction_hash with your transaction hash

统计信息

  • 总下载量: 64
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固