# preparePaymentRequest method

dynamic preparePaymentRequest(

1. {required SdkPreparePaymentRequest request,
2. required PaymentRequestPreparedListener listener}

)

Prepares a payment request - supplied as a SdkPreparePaymentRequest - used for creating a payment via the Online Payments gateway, it is returned as a PreparedPaymentRequest.

## Implementation

    preparePaymentRequest({
      required SdkPreparePaymentRequest request,
      required PaymentRequestPreparedListener listener
    }) {
      return _nativeSdkCommunicator.listenForPreparedPaymentRequest(request, listener).awaitJob();
    }