Class: Stripe::PaymentLinkService::CreateParams::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.



49
50
51
# File 'lib/stripe/services/payment_link_service.rb', line 49

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.



47
48
49
# File 'lib/stripe/services/payment_link_service.rb', line 47

def url
  @url
end