Skip to content

Commit

Permalink
#update version
Browse files Browse the repository at this point in the history
  • Loading branch information
xang555 committed Aug 8, 2022
1 parent 54f1554 commit 3d8cee3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

## 1.0.4

+ Fix decode and crc QR codes including multi-byte chars like Japanese or chinese.

## 1.0.3

+ support cpm
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ a dart package for decode and encode emv QR code
# TODO

+ Update documentation
+ add decode CPM

## Credits

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: emvqrcode
description: a dart package for decode and encode emv QR code
version: 1.0.3
version: 1.0.4
homepage: https://github.com/LaoitdevOpen/dart-emv-code

environment:
Expand Down
7 changes: 2 additions & 5 deletions test/emv_cpm_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:emvqrcode/src/models/cmp/ber_tvl.dart';
import 'package:test/test.dart';

void main() {
test("to hex fuction", () {
test("encode cmp qrcode", () {
final qr = CPM();
qr.setDataPayloadFormatIndicator("CPV01");

Expand Down Expand Up @@ -45,10 +45,7 @@ void main() {

final cpm = EMVCPM();
final value = cpm.generatePayload(qr);
print("value -----------> $value");
expect(
"8505435056303161134F07A0000000555555500850726f647563743161134F07A0000000666666500850726f647563743262495A0812345678901234585F200E43415244484f4c4445522f454d565F2D08727565736465656e64219F100706010A030000009F2608584FD385FA234BCC9F360200019F37046D58EF13",
"8505435056303161134F07A0000000555555500850726f647563743161134F07A0000000666666500850726f647563743262495A0812345678901234585F200E43415244484f4c4445522f454d565F2D08727565736465656e64219F100706010A030000009F2608584FD385FA234BCC9F360200019F37046D58EF13");

expect(value,
"hQVDUFYwMWETTwegAAAAVVVVUAhQcm9kdWN0MWETTwegAAAAZmZmUAhQcm9kdWN0MmJJWggSNFZ4kBI0WF8gDkNBUkRIT0xERVIvRU1WXy0IcnVlc2RlZW5kIZ8QBwYBCgMAAACfJghYT9OF+iNLzJ82AgABnzcEbVjvEw==");
});
Expand Down

0 comments on commit 3d8cee3

Please sign in to comment.