PaymentMethod

Interface

One payment method the site accepts at checkout, as lynkow.paymentMethods.list() returns it: a card brand (visa, mastercard, amex, cartes_bancaires) or another method (paypal, apple_pay, klarna...), with a display name and a hosted logo.

Property

Type

Optional

Description

kind

"method" | "card_brand"

No

'card_brand' for a card network accepted through card payment, 'method' for any other payment method.

logoUrl

string

No

Absolute URL of the method's SVG logo, hosted by Lynkow. Every logo is card-shaped (a<br>256 by 165 viewBox), so a row of them lines up at one height. A type without a dedicated<br>logo gets a generic card logo.

name

string

No

Display name (e.g. 'Mastercard'), a brand name, the same in every locale. Use it as the logo's alt text.

type

string

No

The payment method type (e.g. 'paypal'), or the card brand when kind is<br>'card_brand' (e.g. 'visa'). Lower snake case. New types can appear as the site<br>enables them, so treat it as an open string.


PaymentMethodList

Interface

The response of lynkow.paymentMethods.list(): the methods the site accepts at checkout, card brands first. Not paginated.

Property

Type

Optional

Description

data

PaymentMethod[]

No

Every accepted method. Empty when the site does not take online payment.