Skip to main content
A payment method identifies how your customer pays, such as a card or direct debit. Lago uses the payment provider’s reference to request payment.

Add a payment method

A checkout URL sends the customer to the provider’s checkout page to register a payment method. The customer must already be connected to a provider.
  1. Open the customer.
  2. In Payment methods, click Add a payment method.
  3. Click Generate link.
  4. Copy the URL.
  5. Share it with your customer.

List a customer’s payment methods

The list is cursor-paginated and accepts created_at_from and created_at_to.

Set the default payment method

The default method is used when a payment request or a retry does not select one. No request body is required.

Choose a method for a payment

Payment requests and payment retries accept an optional payment_method object. Omit it to use the configured default.

Delete a payment method

Before deleting a payment method, select another method for payments that relied on it.
The response returns the payment method with deleted_at set.

Next steps

Payment retries

Retry an invoice payment with a chosen method.

Payment requests

Collect several overdue invoices at once.

List payment methods (API)

Response schema.

Create a checkout URL (API)

Response schema.