dvelopment/rksv 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

dvelopment/rksv

Composer 安装命令:

composer require dvelopment/rksv

包简介

tool for RKSV encryption required by Austrian law for cash registers

README 文档

README

CircleCI

RKSV encryption tool

This tool is meant be used in systems that implement the Austrian "Registrierkassensicherheitsverordnung" (yes, that's one word ...).

This package has been developed on request by Pocketbill.

API

createAesKey

Creates a base64 encoded, random key with 256bits length. Ready to be used as input for the encryption methods and displayed to your users for registering it in FinanzOnline.

encryptTotalInEur

Just a convenience method which converts your EUR amount to cents before passing it to encryptTotalInCents. See below for the input parameters

encryptTotalInCents

The actual encryption method. It will encrypt your total value, according to the regulations.

It takes in the following parameters:

  • totalInCents (int) the total value you want to encrypt
  • base64AesKey (string) base64 encoded AES key to use
  • receiptNumber (string) the receipt number of the document you're about to sign
  • registerId (string) the ID of the cash register your representing
  • receiptType (string) the type of document you're about to sign. Possible values are:
    • Signer::TYPE_STANDARD just a regular receipt
    • Signer::TYPE_CANCEL the receipt for a cancellation of another receipt
    • Signer::TYPE_TRAINING a training document your users might want to create for training/testing purposes
    • Signer::TYPE_START a start document which is created when you start using a (new) cash register
    • Signer::TYPE_ZERO a "zero document" which is created every month/year or when the signature service became available again, after having been unavailable for at least 1 other document.

Usage examples

See test/RKSV/Test/SignerTest.php.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2017-02-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固