Stripe.EphemeralKey (stripity_stripe v2.17.3) View Source

Work with Stripe EphemeralKey objects.

You can:

  • Create a ephemeral key

Does not yet render lists or take options.

Does not have an official API docs endpoint, but is required for iOS and Android SDK functionality.

Explained in https://stripe.com/docs/mobile/ios/basic#ephemeral-key https://stripe.com/docs/mobile/android/basic#set-up-ephemeral-key

Stripe API reference: https://stripe.com/docs/api#customer

Link to this section Summary

Link to this section Types

Specs

t() :: %Stripe.EphemeralKey{
  associated_objects: term(),
  created: term(),
  expires: term(),
  id: term(),
  object: term(),
  secret: term()
}

Link to this section Functions

Link to this function

create(params, api_version, opts \\ [])

View Source

Specs

create(params, String.t(), Keyword.t()) ::
  {:ok, t()}
  | {:error,
     %Stripe.Error{
       code: term(),
       extra: term(),
       message: term(),
       request_id: term(),
       source: term(),
       user_message: term()
     }}
when params: %{customer: Stripe.id()} | %{issuing_card: Stripe.id()}

Create an ephemeral key.