Sha256: 2209881d843a75fafa821bbf95041e1078eea1cd0c6c422ae3ad23e0046a13da
Contents?: true
Size: 876 Bytes
Versions: 2
Compression:
Stored size: 876 Bytes
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe module Terminal # A Connection Token is used by the Stripe Terminal SDK to connect to a reader. # # Related guide: [Fleet management](https://stripe.com/docs/terminal/fleet/locations) class ConnectionToken < APIResource extend Stripe::APIOperations::Create OBJECT_NAME = "terminal.connection_token" # 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 self.create(params = {}, opts = {}) request_stripe_object( method: :post, path: "/v1/terminal/connection_tokens", params: params, opts: opts ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stripe-10.9.0.pre.beta.1 | lib/stripe/resources/terminal/connection_token.rb |
stripe-10.8.0 | lib/stripe/resources/terminal/connection_token.rb |