createSettingsPaymentProcessor function

Future<ApiResponse<SettingsPaymentProcessorSaved>> createSettingsPaymentProcessor(
  1. ExsitedClient client,
  2. Object payload, {
  3. bool? raiseOnError,
  4. String? responseFormat,
})

POST /api/{api_version}/settings/payment_processors

Create an offline payment processor; 201. Refused unless credentials.maximumRetryOnFailure is "0" or "1".

Implementation

Future<ApiResponse<SettingsPaymentProcessorSaved>>
    createSettingsPaymentProcessor(
  ExsitedClient client,
  Object payload, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
        client.sendPostRequest(SettingsUrls.settingsPaymentProcessors,
            jsonBody: payload,
            raiseOnError: raiseOnError,
            responseFormat: responseFormat,
            dtoDecoder: SettingsPaymentProcessorSaved.fromMap);