View Source Mollie.Payments (ueberauth_mollie v1.2.0)

Convenience functions for working with Mollie Payments.

see: https://docs.mollie.com/reference/v2/payments-api/overview

Summary

Functions

Cancel Payment

Create Payment

Get Payment

Get Payments

Update Payment

Functions

Cancel Payment

Cancels a payment.

Example:

iex> Mollie.Payments.cancel("tr_7UhSN1zuXS")
{:ok, %{...}}

Create Payment

Creates a new payment.

Example:

iex> Mollie.Payments.create(%{
iex>   amount: %{
iex>     currency: "EUR",
iex>     value: "10.00"
iex>   },
iex>   description: "My first payment",
iex>   redirectUrl: "https://example.com/redirect"
iex> })
{:ok, %{...}}

Get Payment

Returns a single payment by its ID.

Example:

iex> Mollie.Payments.get("tr_7UhSN1zuXS")
{:ok, %{...}}

Get Payments

Returns a list of payments created.

Example:

iex> Mollie.Payments.list_payments()
{:ok, %{...}}
Link to this function

update_payment(id, body)

View Source

Update Payment

Updates a payment.

Example:

iex> Mollie.Payments.update("tr_7UhSN1zuXS", %{
iex>   description: "My updated payment"
iex> })
{:ok, %{...}}