m8ty-payment-qr - m8ty Payment QR Code creation

This module is used to create QR codes for payments.

Usage

class MyClass(
private val paymentQRService: PaymentQRService
) {
fun createQRCode() {
paymentQRService().swissPayment().generateSwissPaymentFormPdf(
paymentData = myPayment
)
}
}

Swiss Payment Support

For Swiss payments, the delegate function swissPayment() has to be used at PaymentQRService.

The following methods are supported:

FunctionDescription
generateQRCodeAsPngGenerate just a QR Code as PNG
generateQRCodeAsSvgGenerate just a QR Code as SVG
generateSwissPaymentFormPdfGenerate a Swiss payment form as PDF
generateSwissPaymentFormPngGenerate a Swiss payment form as PNG
generateSwissPaymentFormSvgGenerate a Swiss payment form as SVG

See PaymentQRServiceTest for an example.

Further links:

  • https://www.six-group.com/dam/download/banking-services/standardization/qr-bill/ig-qr-bill-v2.2-en.pdf

  • https://www.codecrete.net/qrbill/

Packages

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard