Class: Stripe::PaymentLinkService::UpdateParams::AfterCompletion::Redirect

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/payment_link_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(url: nil) ⇒ Redirect

Returns a new instance of Redirect.



747
748
749
# File 'lib/stripe/services/payment_link_service.rb', line 747

def initialize(url: nil)
  @url = url
end

Instance Attribute Details

#urlObject

The URL the customer will be redirected to after the purchase is complete. You can embed ‘CHECKOUT_SESSION_ID` into the URL to have the `id` of the completed [checkout session](stripe.com/docs/api/checkout/sessions/object#checkout_session_object-id) included.



745
746
747
# File 'lib/stripe/services/payment_link_service.rb', line 745

def url
  @url
end