getPaymentProductGroup method
dynamic
getPaymentProductGroup({
- required String paymentProductGroupId,
- required void onSuccess(),
- required void onApiError(
- ApiErrorResponse apiError
- required void onFailure(),
Retrieves the PaymentProductGroup as identified by the provided paymentProductGroupId
from the Connect Gateway.
Implementation
getPaymentProductGroup({
required String paymentProductGroupId,
required void Function(PaymentProductGroup) onSuccess,
required void Function(ApiErrorResponse apiError) onApiError,
required void Function(NativeException e) onFailure,
}) {
final request = PaymentProductGroupRequest(
paymentProductGroupId: paymentProductGroupId);
return _communicator
.getPaymentProductGroup(
request,
_NativeFutureListener(
success: onSuccess, apiError: onApiError, failure: onFailure))
.awaitJob();
}