Payment Methods in the API v3 Payments Endpoint
We've updated the API v3 reference to document all payment method values returned by the order payments endpoint (GET /orders/{id}/payments).
Until now, the reference listed only ThirdParty, Cash and MobileApp as values of payment_method. Those are the methods you can post via the API, but the endpoint returns every payment on an order. That includes payments made through bookingkit's checkout, which come back with codes such as StripePayment, StripeBankWire, PaypalViaStripePayment or Voucher. The reference now lists the known codes. Please handle values that aren't on the list, since new codes may be added over time.
For payments processed via Stripe (payment_method: StripePayment), the name field tells you which method the customer actually used. It contains the Stripe payment method type, for example card, sepa_debit, klarna, apple_pay or google_pay. This also covers the payment methods we recently added to the checkout: alipay, wechat_pay, bizum, blik, swish, vipps and billie.
The reference also clarifies how the deprecated code field behaves. For payments it matches payment_method. For refunds of Stripe payments it holds the Stripe payment method type, the same value as name.
This is a documentation update only. The API response hasn't changed.
