preAuthCancel method
Cancels a former pre-authorization (releases the blocked amount). Must be activated by hobex.
Implementation
Future<TransactionResponse> preAuthCancel({
required String preAuthTransactionId,
required num amount,
String? reference,
String? currency,
}) {
final body = _txBody(
amount: amount,
reference: reference,
transactionId: preAuthTransactionId,
currency: currency,
);
return _sendTransaction('DELETE', 'api/transaction/preauth', body);
}