getPaymentProductGroup method

dynamic getPaymentProductGroup({
  1. required String paymentProductGroupId,
  2. required void onSuccess(
    1. PaymentProductGroup
    ),
  3. required void onApiError(
    1. ApiErrorResponse apiError
    ),
  4. required void onFailure(
    1. NativeException e
    ),
})

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();
}