BkashApi constructor
BkashApi({
- required BkashCredentials bkashCredentials,
- required bool logResponse,
Creates a new instance of the BkashApi with the provided bkashCredentials.
The bkashCredentials contains the necessary authentication information to access the bKash APIs.
Implementation
BkashApi({
required BkashCredentials bkashCredentials,
required this.logResponse,
}) : _tokenApi = TokenApi(
bkashCredentials,
logResponse: logResponse,
),
_createAgreementApi = CreateAgreementApi(
bkashCredentials,
logResponse: logResponse,
),
_payWithAgreementApi = PayWithAgreementApi(
bkashCredentials,
logResponse: logResponse,
),
_payWithoutAgreementApi = PayWithoutAgreementApi(
bkashCredentials,
logResponse: logResponse,
);