Help Instance Help

m8ty_client_paymentscan

Payment scanner client for QR code-based payments. Enables scanning QR codes from web apps and processing payment QR codes.

Before you start

Check the documentation of the m8ty_client_paymentscan library.

Import all needed libraries

import 'package:dio/dio.dart'; import 'package:m8ty_client_paymentscan/m8ty_client_paymentscan.dart';

Client Setup

final client = M8tyClientPaymentscan(); client.setOAuthToken('ApiOAuth2', oauthToken);

API Surface

PaymentScannerApi

Method

Description

scanConnect

Scan QR from webApp to enable Payment Scan QRs

scanPayment

Scan Payment QR

How to perform different tasks

Here some examples how the dart client can be used

Scan connect (pair with web app)

final client = M8tyClientPaymentscan(); client.setOAuthToken('ApiOAuth2', oauthToken); final api = client.getPaymentScannerApi(); try { final response = await api.scanConnect( scanConnectRequestModel: ScanConnectRequestModel((b) { // set required fields }), ); print('Connected: ${response.data}'); } on DioException catch (e) { throw Exception( 'Request failed (status: ${e.response?.statusCode}): ${e.response?.data}', ); }

Scan payment QR

final client = M8tyClientPaymentscan(); client.setOAuthToken('ApiOAuth2', oauthToken); final api = client.getPaymentScannerApi(); try { final response = await api.scanPayment( // provide scanned QR data ); print('Payment data: ${response.data}'); } on DioException catch (e) { throw Exception( 'Request failed (status: ${e.response?.statusCode}): ${e.response?.data}', ); }
03 June 2026