The QR code payment plugin can be used for any kind of offline payment when QR code invoices are issued. The booking itself has the state On hold, when not changed in the settings, as soon as the user has finished the booking process. This means the web site admin needs to QR manually activate the booking when the payment has arrived on the bank account.
The Qr code plugin actually supports any QR code image or the Swiss QR code invoice system. Therefor, when Swiss QR code is used, the global DPCalendar configuration needs to have as currency either "CHF" or "EUR" set, as only these two are supported. Also the zip and city values must be filled when the Swiss QR type is used to be able to properly generate the QR code.
The DPCalendar QR code plugin allows to add unlimited Swiss bank accounts to DPCalendar. When the plugin is opened in the back end, then you can click on the "+" button to add a new configuration. There you can fill the following fields:
The invoice is sent out as soon as the attendee has selected the QR code payment provider and clicks on the confirm button. The invoice is rendered from the file /plugins/dpcalendarpay/qr/tmpl/invoice.php, means the site admin can do a layout override, when some adaptions are needed.
A special parameter in the invoice is the "qrcode" parameter which contains the QR code HTML text from the payment provider configuration. The DPCalendar PDF options like header, logo or address are used in the invoice as well to be inline with the other system generated PDF files.
The subject of the mail is created from the language string "PLG_DPCALENDARPAY_QR_PAYMENT_PROVIDER_TYPE_IMAGEQR_INVOICE_SUBJECT_TEXT" or "PLG_DPCALENDARPAY_QR_PAYMENT_PROVIDER_TYPE_SWISSQR_INVOICE_SUBJECT_TEXT" and the message from "PLG_DPCALENDARPAY_QR_PAYMENT_PROVIDER_TYPE_IMAGEQR_INVOICE_MESSAGE_TEXT" or "PLG_DPCALENDARPAY_QR_PAYMENT_PROVIDER_TYPE_SWISSQR_INVOICE_MESSAGE_TEXT", they both depend which type of QR code is used. The available variables are explained below.
The file name of the invoice is generated from the language string "PLG_DPCALENDARPAY_MANUAL_INVOICE_FILENAME", while the %s variable in the string is the uid.
We are using the mustache templating system to inject and render variables in the language strings as described in the Output rendering article. Means you can use a variable like {{price}} in the string and it will be replaced with the real value. For every language string below are the following variables available:
Comments (0)