Stripe.Services.CustomerPaymentMethodService (tiger_stripe v0.1.10)

Copy Markdown View Source

CustomerPaymentMethod API operations.

Summary

Functions

list_payment_methods(client, customer, params \\ %{}, opts \\ [])

@spec list_payment_methods(Stripe.Client.t(), String.t(), map(), keyword()) ::
  {:ok, term()} | {:error, Stripe.Error.t()}

List a Customer's PaymentMethods

Returns a list of PaymentMethods for a given Customer

retrieve_payment_method(client, customer, payment_method, params \\ %{}, opts \\ [])

@spec retrieve_payment_method(
  Stripe.Client.t(),
  String.t(),
  String.t(),
  map(),
  keyword()
) ::
  {:ok, term()} | {:error, Stripe.Error.t()}

Retrieve a Customer's PaymentMethod

Retrieves a PaymentMethod object for a given Customer.