View Source Plaid.PaymentInitiation.Payments (plaid v3.3.0)
Functions for Plaid payment_initiation/payment
endpoints.
Link to this section Summary
Link to this section Types
@type error() :: {:error, Plaid.Error.t() | any()} | no_return()
@type t() :: %Plaid.PaymentInitiation.Payments{ next_cursor: String.t(), payments: [Plaid.PaymentInitiation.Payments.Payment.t()], request_id: String.t() }
Link to this section Functions
@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: ""
},
}
@spec get(params(), config()) :: {:ok, Plaid.PaymentInitiation.Payments.Payment.t()} | error()
Gets payment by payment_id.
Parameters
%{
payment_id: ""
}
Lists all payments.
Parameters
%{
options: %{
count: 1,
cursor: ""
}
}