v1.10.6 - Saved payment method filters use the billing API's method types #
The saved payment method list filter in @flopay/shared now takes the method types the billing API accepts, and saved methods can carry their method type and display label.
08 Oct 2026
Improvement
Breaking Change
Saved Payment Methods
Shared SDK
Node SDK
React SDK
The @flopay/shared types for saved payment methods now match the billing API's saved payment method list (GET /v1/payment-methods). The list filter takes a method type such as apple_pay, rather than a family such as wallet, and each saved method can report its own method type. An Apple Pay method and a Google Pay method can now be told apart.
What changed
- List filter.
ListSavedPaymentMethodsQuery.typeis now aSavedPaymentMethodListType:card,paypal,apple_pay,google_pay,sepa_debitorus_bank_account.SAVED_PAYMENT_METHOD_LIST_TYPESlists every value. Leavingtypeout still lists every saved method. - Method type and display label. Both saved method display types gain optional
methodTypeanddisplayLabel, as the billing API returns them. For a card,methodTypeiscardanddisplayLabelisnull. - Family names.
SavedPaymentMethodFamilyandSAVED_PAYMENT_METHOD_FAMILIESare added for grouping saved methods (card,wallet,paypal,apm). Thetypeon each saved method is still its family. - Deprecations.
SavedPaymentMethodType,SAVED_PAYMENT_METHOD_TYPESand thelabelon non-card saved methods are deprecated. They still work, with the same values. - Documentation. The
@flopay/reactREADME Errors table now listspayment_method_setup_unavailable(retryable: false).
Integration notes
- A list filter of
{ type: 'wallet' }or{ type: 'apm' }no longer compiles. The billing API has always rejected these values, so only the type changes. Filter byapple_pay,google_pay,sepa_debitorus_bank_accountinstead. - To group saved methods by family, use
SavedPaymentMethodFamilyandSAVED_PAYMENT_METHOD_FAMILIESin place of the deprecatedSavedPaymentMethodTypeandSAVED_PAYMENT_METHOD_TYPES. - To label a wallet, PayPal or alternative method, read
displayLabeland fall back tolabel. For a card, keep building the label frombrandandlastFour. - No other change is needed. Existing code that uses the deprecated names keeps compiling.