Sha256: f6db014391e704d39595d9ec4c702142d2538f97979900c4e7ca67459f0139a7
Contents?: true
Size: 949 Bytes
Versions: 54
Compression:
Stored size: 949 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" def self.object_name "terminal.connection_token" end # 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
54 entries across 54 versions & 1 rubygems