Module: Payhub

Defined in:
lib/payhub.rb,
lib/payhub/types.rb,
lib/payhub/client.rb,
lib/payhub/errors.rb,
lib/payhub/version.rb,
lib/payhub/webhook.rb,
lib/payhub/next_action.rb

Overview

Discriminated NextAction returned in payment.next_action.

Ruby has no sealed-classes; instead, decode_next_action returns a frozen struct subclass keyed off the kind so callers can ‘case na in OtpRequired`.

Defined Under Namespace

Modules: Errors, NextAction, WebhookEvent Classes: Client, Health, InvalidSignatureError, MalformedHeaderError, Payment, TimestampOutOfToleranceError, WebhookEventPayload, WebhookSignatureError

Constant Summary collapse

Refund =

Refund row currently mirrors Payment.

Payment
VERSION =
"1.0.1"

Class Method Summary collapse

Class Method Details

.new(*args, **kwargs) ⇒ Object



12
13
14
# File 'lib/payhub.rb', line 12

def self.new(*args, **kwargs)
  Client.new(*args, **kwargs)
end