Sha256: 71602a22872e67e0bdff096cbcac4101c324762eb4948c1b6bfd3c457ed15855
Contents?: true
Size: 775 Bytes
Versions: 8
Compression:
Stored size: 775 Bytes
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe # A Customer Session allows you to grant Stripe's frontend SDKs (like Stripe.js) client-side access # control over a Customer. class CustomerSession < APIResource extend Stripe::APIOperations::Create OBJECT_NAME = "customer_session" def self.object_name "customer_session" end # Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources. def self.create(params = {}, opts = {}) request_stripe_object( method: :post, path: "/v1/customer_sessions", params: params, opts: opts ) end end end
Version data entries
8 entries across 8 versions & 1 rubygems