TransactPayApi constructor

TransactPayApi({
  1. required String apiKey,
  2. required String encryptionKey,
})

Constructor for the TransactPayApi class.

Accepts an apiKey for authentication and an encryptionKey for encrypting the request payload.

Implementation

TransactPayApi({
  required this.apiKey,
  required String encryptionKey,
}) : encryptionService = EncryptionService(encryptionKey: encryptionKey);