Class: Stripe::PaymentLink::CreateParams::AfterCompletion
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentLink::CreateParams::AfterCompletion
- Defined in:
- lib/stripe/resources/payment_link.rb
Defined Under Namespace
Classes: HostedConfirmation, Redirect
Instance Attribute Summary collapse
-
#hosted_confirmation ⇒ Object
Configuration when ‘type=hosted_confirmation`.
-
#redirect ⇒ Object
Configuration when ‘type=redirect`.
-
#type ⇒ Object
The specified behavior after the purchase is complete.
Instance Method Summary collapse
-
#initialize(hosted_confirmation: nil, redirect: nil, type: nil) ⇒ AfterCompletion
constructor
A new instance of AfterCompletion.
Methods inherited from RequestParams
Constructor Details
#initialize(hosted_confirmation: nil, redirect: nil, type: nil) ⇒ AfterCompletion
Returns a new instance of AfterCompletion.
661 662 663 664 665 |
# File 'lib/stripe/resources/payment_link.rb', line 661 def initialize(hosted_confirmation: nil, redirect: nil, type: nil) @hosted_confirmation = hosted_confirmation @redirect = redirect @type = type end |
Instance Attribute Details
#hosted_confirmation ⇒ Object
Configuration when ‘type=hosted_confirmation`.
655 656 657 |
# File 'lib/stripe/resources/payment_link.rb', line 655 def hosted_confirmation @hosted_confirmation end |
#redirect ⇒ Object
Configuration when ‘type=redirect`.
657 658 659 |
# File 'lib/stripe/resources/payment_link.rb', line 657 def redirect @redirect end |
#type ⇒ Object
The specified behavior after the purchase is complete. Either ‘redirect` or `hosted_confirmation`.
659 660 661 |
# File 'lib/stripe/resources/payment_link.rb', line 659 def type @type end |