initializeQRCodePayment static method
Future
initializeQRCodePayment(
{ - required String publicKey,
- required String merchantRef,
})
Implementation
static Future<dynamic> initializeQRCodePayment({
required String publicKey,
required String merchantRef,
}) async {
try {
var response = await Fetcher.fetch(
method: Method.post,
path: '/payment-engine/api/v1/web-engine/process/qr-request',
publicKey: publicKey,
payloads: {
"qrRequestType": "GENERATE_QR",
"merchantTransactionReference": merchantRef
},
);
return response;
} catch (e) {
throw Exception(e);
}
}