SwissPaymentGenerator

A service class responsible for generating Swiss payment QR codes and related payment forms in various formats such as PNG, SVG, and PDF. This service complies with the Swiss QR-Bill standard specifications.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun generateQRCodeAsPng(paymentData: PaymentQRValues): ByteArray

Generates a QR code in PNG format based on the provided payment data.

Link copied to clipboard
open override fun generateQRCodeAsSvg(paymentData: PaymentQRValues): ByteArray

Generates a QR code as an SVG based on the provided payment data.

Generates a QR code in SVG format based on the provided payment data and scale.

Link copied to clipboard

Generates a Swiss QR-bill payment form in PDF format using the provided payment data.

Link copied to clipboard

Generates a Swiss QR payment form in PNG format based on the provided payment data.

Link copied to clipboard
fun generateSwissPaymentFormSvg(paymentData: PaymentQRValues, documentWidth: Int = PDF_WIDTH_MM_A4, documentHeight: Int = PDF_HEIGHT_MM, position: Float = PDF_POSITION): ByteArray

Generates a Swiss QR payment form in SVG format based on the provided payment data and document dimensions.