executePayWithAgreement method

Future<Either<BkashFailure, PayWithAgreementExecuteResponseModel>> executePayWithAgreement({
  1. required String paymentId,
  2. required String idToken,
})

Executes the payment with an existing agreement using the provided paymentId and idToken.

Returns a PayWithAgreementExecuteResponseModel if the execution is successful, or a BkashFailure indicating the reason for failure.

Implementation

Future<Either<BkashFailure, PayWithAgreementExecuteResponseModel>>
    executePayWithAgreement({
  required String paymentId,
  required String idToken,
}) async =>
        await _payWithAgreementApi.executePayWithAgreement(
          paymentId: paymentId,
          idToken: idToken,
        );