Plaid.PaymentInitiation.get_payment

You're seeing just the function get_payment, go back to Plaid.PaymentInitiation module for more information.
Link to this function

get_payment(payment_id, config)

View Source

Specs

get_payment(payment_id :: String.t(), Plaid.config()) ::
  {:ok, Plaid.PaymentInitiation.GetPaymentResponse.t()}
  | {:error, Plaid.Error.t()}

Get payment details.

Does a POST /payment_initiation/payment/create call to get details about a payment.

Params

  • payment_id - The payment_id returned from /payment_initiation/payment/create.

Examples

PaymentInitiation.get_payment(
  "payment-id-prod-123xxx",
  client_id: "123",
  secret: "abc"
)
{:ok, %PaymentInitiation.GetPaymentResponse{}}