24pay 中文文档教程
24Pay (.js)
https://www.npmjs.com/package/24pay
Usage
const p24 = require("24pay")
const key = "1234567812345678123456781234567812345678123456781234567812345678"
const iv = "demoOMEDDEMOomed"
const text = "demoOMED10.50EUR10000TestPayment2014-05-05 14:57:13"
const signed = p24(key, iv, text)
console.info(signed) // 51762BFDA1DEBF57B8F655FC113F6062
Notes:
MID
从你的“Mid”结合反向形式的“Mid”做IV 例如。 如果 Mid 为“abc123”,则 IV 参数应为“abc123321cba”
Licence
,请根据需要使用。 如果你是个好人,请给我买杯啤酒。
作者 Samuel Ondrek
24Pay (.js)
https://www.npmjs.com/package/24pay
Usage
const p24 = require("24pay")
const key = "1234567812345678123456781234567812345678123456781234567812345678"
const iv = "demoOMEDDEMOomed"
const text = "demoOMED10.50EUR10000TestPayment2014-05-05 14:57:13"
const signed = p24(key, iv, text)
console.info(signed) // 51762BFDA1DEBF57B8F655FC113F6062
Notes:
MID
Do IV the from your "Mid" combined with reversed form of "Mid" Eg. If Mid is "abc123", IV param should be "abc123321cba"
Licence
Use as far as you want. If you are a good person, buy me a beer.
Author Samuel Ondrek