StripeManaged.Refund (StripeManaged v0.1.0)

Copy Markdown View Source

Issue and manage refunds for Managed Payments transactions.

When refunds are processed, customers receive the full amount including original sales tax. Stripe retains and remits tax in certain jurisdictions.

Note: Customers can also request refunds via Link support. Stripe may issue refunds at their discretion within 60 days.

Summary

Functions

Creates a refund.

Lists refunds. Filter by payment_intent, charge, etc.

Returns a lazy Stream of all refunds, auto-paginating.

Retrieves a refund by ID.

Updates a refund's metadata.

Functions

create(params, opts \\ [])

@spec create(
  map(),
  keyword()
) :: StripeManaged.Client.response()

Creates a refund.

Params:

  • payment_intent or charge - the payment to refund (one required)
  • amount - partial refund amount in cents (omit for full refund)
  • reason - "duplicate", "fraudulent", or "requested_by_customer"
  • metadata - key-value metadata

list(params \\ %{}, opts \\ [])

@spec list(
  map(),
  keyword()
) :: StripeManaged.Client.response()

Lists refunds. Filter by payment_intent, charge, etc.

list_all(params \\ %{}, opts \\ [])

@spec list_all(
  map(),
  keyword()
) :: Enumerable.t()

Returns a lazy Stream of all refunds, auto-paginating.

retrieve(id, opts \\ [])

@spec retrieve(
  String.t(),
  keyword()
) :: StripeManaged.Client.response()

Retrieves a refund by ID.

update(id, params, opts \\ [])

@spec update(String.t(), map(), keyword()) :: StripeManaged.Client.response()

Updates a refund's metadata.