Class: CheckoutSdk::Previous::CheckoutPreviousStaticKeysSdkBuilder
- Inherits:
-
StaticKeysBuilder
- Object
- AbstractCheckoutSdkBuilder
- StaticKeysBuilder
- CheckoutSdk::Previous::CheckoutPreviousStaticKeysSdkBuilder
- Defined in:
- lib/checkout_sdk/previous/checkout_previous_static_keys_sdk_builder.rb
Instance Attribute Summary
Attributes inherited from StaticKeysBuilder
Attributes inherited from AbstractCheckoutSdkBuilder
#environment, #environment_subdomain, #http_client, #logger, #multipart_http_client
Instance Method Summary collapse
Methods inherited from StaticKeysBuilder
#with_public_key, #with_secret_key
Methods inherited from AbstractCheckoutSdkBuilder
#with_environment, #with_environment_subdomain, #with_http_client, #with_logger, #with_multipart_http_client
Instance Method Details
#build ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/checkout_sdk/previous/checkout_previous_static_keys_sdk_builder.rb', line 10 def build @secret_key_pattern = SECRET_KEY_PATTERN @public_key_pattern = PUBLIC_KEY_PATTERN super configuration = CheckoutConfiguration.new( PreviousStaticKeysSdkCredentials.new(secret_key, public_key), environment, http_client, multipart_http_client, logger ) configuration.environment_subdomain = environment_subdomain if environment_subdomain CheckoutApi.new(configuration) end |