Module: Ingenico::Connect::SDK::Webhooks::Webhooks

Defined in:
lib/ingenico/connect/sdk/webhooks/webhooks.rb

Overview

Ingenico ePayments platform factory for several webhooks components

Class Method Summary collapse

Class Method Details

.create_helper(secret_key_store) ⇒ Object

Creates a WebhooksHelper that uses the given SecretkeyStore.



16
17
18
# File 'lib/ingenico/connect/sdk/webhooks/webhooks.rb', line 16

def self.create_helper(secret_key_store)
  create_helper_builder(secret_key_store).build
end

.create_helper_builder(secret_key_store) ⇒ Object

Creates a WebhooksHelperBuilder that uses the given SecretkeyStore



8
9
10
11
12
# File 'lib/ingenico/connect/sdk/webhooks/webhooks.rb', line 8

def self.create_helper_builder(secret_key_store)
  WebhooksHelperBuilder.new
    .with_marshaller(DefaultMarshaller.INSTANCE)
    .with_secret_key_store(secret_key_store)
end