Mollie.Customers.Payments (mollie v0.7.2)

Linking customers to payments enables a number of Mollie Checkout features, including:

  • Keeping track of payment preferences for your customers.
  • Enabling your customers to charge a previously used credit card with a single click.
  • Improved payment insights in your dashboard.
  • Recurring payments.

Link to this section Summary

Functions

Creates a payment for the customer. This endpoint is a shortcut for creating a payment with a customerId parameter.

Retrieve all payments linked to the customer.

Link to this section Functions

Link to this function

create(client, customer_id, body)

Specs

create(Mollie.Client.t(), binary(), map()) :: Mollie.response()

Creates a payment for the customer. This endpoint is a shortcut for creating a payment with a customerId parameter.

For an example request body see Mollie.Payments.create2.

example

Example

Mollie.Customers.Payments client, "cst_8wmqcHMN4U", payment_body

More info at: https://docs.mollie.com/reference/v2/customers-api/create-customer-payment

Link to this function

list(client, customer_id)

Specs

Retrieve all payments linked to the customer.

example

Example

Mollie.Customers.Payments.list client, "cst_8wmqcHMN4U"

More info at: https://docs.mollie.com/reference/v2/customers-api/list-customer-payments