Skip to content

inmite/spayd-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart Payment Descriptor for java

The SmartPayment project is a full java implementation of Smart Payment Descriptor which is a standard for QR code payments on mobile devices in Czech Republic. If you're interested in full specification, please go to http://qr-platba.cz website.

Library Features

License

The library is licensed under Apache License, Version 2.0. It means that it can be freely used for non-commercial and also for commercial projects. For more information look for full license agreement.

The SPD standard is also patent free.

Already implemented features

  • Parsing and full validation of SPD code
  • Full IBAN validation
  • Czech account number validation
  • Czech model object for payment

Missing features

  • SpaydWriter class is not implemented yet
  • CRC32 validation

Usage

The basic usage is very simple:


    SpaydReader<Payment> reader = SpaydReader.from(SpaydConfig.defaultConfig())
    final ReaderResult<Payment> result = mSpayd.readFromSpayd(validCode1);

    if (result.isSuccess()) {
        // do stuff with result.getPayment()
    } else {
        // handle errors in result.getErrors() or just show general message like "This is not va;id QR code with payment"
    }

About

Java implementation of SPAYD - Smart Payment Descriptor. http://qr-platba.cz

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages