View Source Plaid.PaymentInitiation.Payments (plaid v3.3.0)

Functions for Plaid payment_initiation/payment endpoints.

Link to this section Summary

Functions

Gets payment by payment_id.

Lists all payments.

Link to this section Types

@type config() :: %{required(atom()) => String.t() | keyword()}
@type error() :: {:error, Plaid.Error.t() | any()} | no_return()
@type params() :: %{required(atom()) => term()}
@type t() :: %Plaid.PaymentInitiation.Payments{
  next_cursor: String.t(),
  payments: [Plaid.PaymentInitiation.Payments.Payment.t()],
  request_id: String.t()
}

Link to this section Functions

Link to this function

create(params, config \\ %{})

View Source
@spec create(params(), config()) ::
  {:ok, Plaid.PaymentInitiation.Payments.Payment.t()} | error()

Creates payment.

Parameters

%{
  recipient_id: "",
  reference: "",
  amount: %{
    currency: "",
    value: 0.00
  },
  schedule: %{
    interval: "",
    interval_execution_day: 1,
    start_date: ""
  },
}
Link to this function

get(params, config \\ %{})

View Source

Gets payment by payment_id.

Parameters

%{
  payment_id: ""
}
Link to this function

list(params, config \\ %{})

View Source
@spec list(params(), config()) :: {:ok, t()} | error()

Lists all payments.

Parameters

%{
  options: %{
    count: 1,
    cursor: ""
  }
}