

def __init__(self, options=None):
    if (not options):
        options = {
            
        }
    merchant_settings = getattr(settings, 'MERCHANT_SETTINGS')
    if ((not merchant_settings) or (not merchant_settings.get('amazon_fps'))):
        raise IntegrationNotConfigured(("The '%s' integration is not correctly configured." % self.display_name))
    amazon_fps_settings = merchant_settings['amazon_fps']
    self.aws_access_key = (options.get('aws_access_key', None) or amazon_fps_settings['AWS_ACCESS_KEY'])
    self.aws_secret_access_key = (options.get('aws_secret_access_key', None) or amazon_fps_settings['AWS_SECRET_ACCESS_KEY'])
    super(AmazonFpsIntegration, self).__init__(options=options)
    options.setdefault('host', self.service_url)
    self.fps_connection = FPSConnection(self.aws_access_key, self.aws_secret_access_key, **options)

dataset/ETHPy150Open agiliq/merchant/billing/integrations/amazon_fps_integration.py AmazonFpsIntegration.__init__/original