定制 limikael/wp-crypto-accounts 二次开发

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

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

limikael/wp-crypto-accounts

最新稳定版本:v0.0.4

Composer 安装命令:

composer require limikael/wp-crypto-accounts

包简介

Be a bank for your wordpress users

README 文档

README

Sorry... This plugin is not maintained anymore... :(

This WordPress plugin allows Wordpres users to deposit and withdraw bitcoin.

It makes a WordPress instance function as a bank, and can be used as a foundation to create banking and financial software in WordPress.

User interface

The plugin provides a number of shortcodes that can be used to create the user experience on the frontend of the WordPress site. The shortcodes are:

  • [bca-balance] - Show the current balance for the currently logged in user.
  • [bca-deposit] - Show an interface, including a QR-code, for the user to deposit funds into the account.
  • [bca-history] - Show the account history for the current user.
  • [bca-withdraw] - Show an interface that lets the current user withdraw funds to an external Bitcoin address.

The look and feel of the user interface is further tweakable using CSS.

API

There is an API for other plugins to take advangage of the accounting functionality. The functions exposed through this API are:

  • bca_get_user_account($user)
    Get a reference to an Account object for the user specified by $user. The $user parameter can be either a user id or a WordPress User object.
  • bca_entity_account($entity_type, $entity_id)
    Get a reference to an Account object for the specified entity type, with the specified entity id. There is no fixed set of entity types, and the $entity_type is just a plain string.
  • bca_make_transaction($denomination, $fromAccount, $toAccount, $amount, $options)
    Move the specified amount from the fromAccount to the toAccount. The accounts should be specified using Account objects returned by the functions above. The $denomination parameter is a string, and should ba any of btc, mbtc or satoshi. The $options parameter is optional, and may contain the following fields:
    • notice - Specify the text to appear next to the transation in the account history.
    • confirming - If this is set to true, it allows moving funds from accounts that have unconfirmed transactions. Use with caution!

Security

So, if the WordPress site is hacked, all the Bitcoins will be stolen, right? Actually not, since no private keys is stored on the system. As a user withdraws funds, the Bitcoins will not be moved directly. Rather, a transaction will be stored in the database. There is then a REST api that can be used to actually perform the transactions, and the REST api takes the private key as input.

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 3
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-08-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固