creditTransaction method
Implementation
Future<ElginResponse?> creditTransaction({
required String value,
}) async {
try {
final response = await channel.invokeMethod(
PaymentTypeCall.CREDIT.method,
{
'value': value,
},
);
final model = ElginResponse.fromJson(response.toString());
return model;
} catch (_) {
return null;
}
}