Class: Stripe::Terminal::ReaderService::ProcessPaymentIntentParams::ProcessConfig

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

Defined Under Namespace

Classes: Tipping

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(allow_redisplay: nil, enable_customer_cancellation: nil, return_url: nil, skip_tipping: nil, tipping: nil) ⇒ ProcessConfig

Returns a new instance of ProcessConfig.



287
288
289
290
291
292
293
294
295
296
297
298
299
# File 'lib/stripe/services/terminal/reader_service.rb', line 287

def initialize(
  allow_redisplay: nil,
  enable_customer_cancellation: nil,
  return_url: nil,
  skip_tipping: nil,
  tipping: nil
)
  @allow_redisplay = allow_redisplay
  @enable_customer_cancellation = enable_customer_cancellation
  @return_url = return_url
  @skip_tipping = skip_tipping
  @tipping = tipping
end

Instance Attribute Details

#allow_redisplayObject

This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow.



277
278
279
# File 'lib/stripe/services/terminal/reader_service.rb', line 277

def allow_redisplay
  @allow_redisplay
end

#enable_customer_cancellationObject

Enables cancel button on transaction screens.



279
280
281
# File 'lib/stripe/services/terminal/reader_service.rb', line 279

def enable_customer_cancellation
  @enable_customer_cancellation
end

#return_urlObject

The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method’s app or site. If you’d prefer to redirect to a mobile application, you can alternatively supply an application URI scheme.



281
282
283
# File 'lib/stripe/services/terminal/reader_service.rb', line 281

def return_url
  @return_url
end

#skip_tippingObject

Override showing a tipping selection screen on this transaction.



283
284
285
# File 'lib/stripe/services/terminal/reader_service.rb', line 283

def skip_tipping
  @skip_tipping
end

#tippingObject

Tipping configuration for this transaction.



285
286
287
# File 'lib/stripe/services/terminal/reader_service.rb', line 285

def tipping
  @tipping
end