# Deprecated Methods

These methods were available in finix.js v1 and are no longer supported in v2. Replace them with [Finix.PaymentForm()](/js/payment-form). Only set the `paymentMethods` option if you need to restrict payment methods beyond the default experience.

For a full overview of what changed between v1 and v2, see the [finix.js Migration Guide](/guides/online-payments/payment-tokenization/finix-js-migration-guide-v1-to-v2).

`Finix.TokenForm` accepted both card and bank account payments. Replace it with `Finix.PaymentForm` — no additional options are required to match the default behavior.

`Finix.CardTokenForm` accepted card payments only. Replace it with `Finix.PaymentForm` and set `paymentMethods: ["card"]`.

`Finix.BankTokenForm` accepted bank account payments only. Replace it with `Finix.PaymentForm` and set `paymentMethods: ["bank"]`.