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
)
}
}Content copied to clipboard
Swiss Payment Support
For Swiss payments, the delegate function swissPayment() has to be used at PaymentQRService.
The following methods are supported:
| Function | Description |
|---|---|
generateQRCodeAsPng | Generate just a QR Code as PNG |
generateQRCodeAsSvg | Generate just a QR Code as SVG |
generateSwissPaymentFormPdf | Generate a Swiss payment form as PDF |
generateSwissPaymentFormPng | Generate a Swiss payment form as PNG |
generateSwissPaymentFormSvg | Generate 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/