Sha256: 5f3290767cc77d842927d353987c368487951b86ce6fd931d5078ba75684e53e

Contents?: true

Size: 623 Bytes

Versions: 17

Compression:

Stored size: 623 Bytes

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  module Terminal
    class ConnectionTokenService < StripeService
      # To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. On your backend, add an endpoint that creates and returns a connection token.
      def create(params = {}, opts = {})
        request(
          method: :post,
          path: "/v1/terminal/connection_tokens",
          params: params,
          opts: opts,
          base_address: :api
        )
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
stripe-13.3.1 lib/stripe/services/terminal/connection_token_service.rb
stripe-13.3.0 lib/stripe/services/terminal/connection_token_service.rb
stripe-13.3.0.pre.beta.3 lib/stripe/services/terminal/connection_token_service.rb
stripe-13.3.0.pre.beta.2 lib/stripe/services/terminal/connection_token_service.rb
stripe-13.3.0.pre.beta.1 lib/stripe/services/terminal/connection_token_service.rb
stripe-13.2.0 lib/stripe/services/terminal/connection_token_service.rb
stripe-13.1.2 lib/stripe/services/terminal/connection_token_service.rb
stripe-13.2.0.pre.beta.3 lib/stripe/services/terminal/connection_token_service.rb
stripe-13.2.0.pre.beta.2 lib/stripe/services/terminal/connection_token_service.rb
stripe-13.1.1 lib/stripe/services/terminal/connection_token_service.rb
stripe-13.2.0.pre.beta.1 lib/stripe/services/terminal/connection_token_service.rb
stripe-13.1.0 lib/stripe/services/terminal/connection_token_service.rb
stripe-13.0.2 lib/stripe/services/terminal/connection_token_service.rb
stripe-13.1.0.pre.beta.3 lib/stripe/services/terminal/connection_token_service.rb
stripe-13.0.1 lib/stripe/services/terminal/connection_token_service.rb
stripe-13.1.0.pre.beta.2 lib/stripe/services/terminal/connection_token_service.rb
stripe-13.0.0 lib/stripe/services/terminal/connection_token_service.rb