Class: Stripe::PaymentLink::CreateParams::AfterCompletion

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/payment_link.rb

Defined Under Namespace

Classes: HostedConfirmation, Redirect

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(hosted_confirmation: nil, redirect: nil, type: nil) ⇒ AfterCompletion

Returns a new instance of AfterCompletion.



323
324
325
326
327
# File 'lib/stripe/resources/payment_link.rb', line 323

def initialize(hosted_confirmation: nil, redirect: nil, type: nil)
  @hosted_confirmation = hosted_confirmation
  @redirect = redirect
  @type = type
end

Instance Attribute Details

#hosted_confirmationObject

Configuration when ‘type=hosted_confirmation`.



317
318
319
# File 'lib/stripe/resources/payment_link.rb', line 317

def hosted_confirmation
  @hosted_confirmation
end

#redirectObject

Configuration when ‘type=redirect`.



319
320
321
# File 'lib/stripe/resources/payment_link.rb', line 319

def redirect
  @redirect
end

#typeObject

The specified behavior after the purchase is complete. Either ‘redirect` or `hosted_confirmation`.



321
322
323
# File 'lib/stripe/resources/payment_link.rb', line 321

def type
  @type
end