getPaymentProductDirectory method
dynamic
getPaymentProductDirectory({
- required String paymentProductId,
- required void onSuccess(),
- required void onApiError(
- ApiErrorResponse apiError
- required void onFailure(),
Retrieves the PaymentProductDirectory associated to the provided paymentProductId
from the Connect Gateway.
Implementation
getPaymentProductDirectory({
required String paymentProductId,
required void Function(PaymentProductDirectory) onSuccess,
required void Function(ApiErrorResponse apiError) onApiError,
required void Function(NativeException e) onFailure,
}) {
final request = PaymentProductDirectoryRequest(productId: paymentProductId);
return _communicator
.getPaymentProductDirectory(
request,
_NativeFutureListener(
success: onSuccess, apiError: onApiError, failure: onFailure))
.awaitJob();
}