# getSurchargeCalculation method

dynamic getSurchargeCalculation(

1. {required SurchargeCalculationRequest request,
2. required SurchargeCalculationResponseListener listener}

)

Retrieves a surcharge calculation as a SurchargeCalculation object from the Online Payments gateway with the use of a SurchargeCalculationRequest.

## Implementation

    getSurchargeCalculation({
      required SurchargeCalculationRequest request,
      required SurchargeCalculationResponseListener listener
    }) {
      return _nativeSdkCommunicator.listenForSurchargeCalculation(request, listener).awaitJob();
    }