{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-js/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["code-walkthrough","step"]},"type":"markdown"},"seo":{"title":"Deprecated Methods | Finix.js Reference","description":"API reference for deprecated Finix.js v1 methods and their v2 replacements.","siteUrl":"https://docs.finix.com/","llmstxt":{"hide":false,"sections":[{"title":"Getting Started","includeFiles":["guides/getting-started/**/*.md"],"excludeFiles":[]},{"title":"Online Payments","includeFiles":["guides/online-payments/**/*.md"],"excludeFiles":["guides/online-payments/payment-features/fsa-hsa-non-healthcare-mcc.md"]},{"title":"In-Person Payments","includeFiles":["guides/in-person-payments/**/*.md"],"excludeFiles":[]},{"title":"Subscriptions","includeFiles":["guides/subscriptions/**/*.md"],"excludeFiles":[]},{"title":"After the Payment","includeFiles":["guides/subscriptions/after-the-payment/**/*.md"],"excludeFiles":[]},{"title":"Managing Operations","includeFiles":["guides/managing-operations/**/*.md"],"excludeFiles":[]},{"title":"Platform Payments","includeFiles":["guides/platform-payments/**/*.md"],"excludeFiles":[]},{"title":"Payouts","includeFiles":["guides/payouts/**/*.md"],"excludeFiles":[]},{"title":"Developers","includeFiles":["additional-resources/developers/**/*.md"],"excludeFiles":[]},{"title":"Plugins","includeFiles":["additional-resources/plugins/**/*.md"],"excludeFiles":[]},{"title":"Industry Considerations","includeFiles":["guides/industry-considerations/**/*.md"],"excludeFiles":[]},{"title":"Regional Considerations","includeFiles":["guides/regional-considerations/**/*.md"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"CodeWalkthrough","attributes":{"__idx":1,"filters":{},"filesets":[{"files":[{"path":"js/_filesets/deprecated.js","content":[{"start":0,"condition":{"steps":["token-form"]},"children":["// Before (v1):","Finix.TokenForm(element, options);","","// After (v2):","Finix.PaymentForm(element, environment, application, options);"]},"",{"start":8,"condition":{"steps":["card-token-form"]},"children":["// Before (v1):","Finix.CardTokenForm(element, options);","","// After (v2):","Finix.PaymentForm(element, environment, application, {","  paymentMethods: [\"card\"],","  ...options,","});"]},"",{"start":19,"condition":{"steps":["bank-token-form"]},"children":["// Before (v1):","Finix.BankTokenForm(element, options);","","// After (v2):","Finix.PaymentForm(element, environment, application, {","  paymentMethods: [\"bank\"],","  ...options,","});"]},""],"metadata":{"steps":["token-form","card-token-form","bank-token-form"]},"basename":"deprecated.js","language":"javascript"}],"downloadAssociatedFiles":[]}],"steps":[{"id":"token-form","heading":"Finix.TokenForm → Finix.PaymentForm"},{"id":"card-token-form","heading":"Finix.CardTokenForm → Finix.PaymentForm"},{"id":"bank-token-form","heading":"Finix.BankTokenForm → Finix.PaymentForm"}],"inputs":{},"toggles":{}},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"deprecated-methods","__idx":0},"children":["Deprecated Methods"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["These methods were available in finix.js v1 and are no longer supported in v2. Replace them with ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/js/payment-form"},"children":["Finix.PaymentForm()"]},". Only set the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paymentMethods"]}," option if you need to restrict payment methods beyond the default experience."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For a full overview of what changed between v1 and v2, see the ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/guides/online-payments/payment-tokenization/finix-js-migration-guide-v1-to-v2"},"children":["finix.js Migration Guide"]},"."]},{"$$mdtype":"Tag","name":"CodeStep","attributes":{"id":"token-form","heading":"Finix.TokenForm → Finix.PaymentForm"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Finix.TokenForm"]}," accepted both card and bank account payments. Replace it with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Finix.PaymentForm"]}," — no additional options are required to match the default behavior."]}]},{"$$mdtype":"Tag","name":"CodeStep","attributes":{"id":"card-token-form","heading":"Finix.CardTokenForm → Finix.PaymentForm"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Finix.CardTokenForm"]}," accepted card payments only. Replace it with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Finix.PaymentForm"]}," and set ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paymentMethods: [\"card\"]"]},"."]}]},{"$$mdtype":"Tag","name":"CodeStep","attributes":{"id":"bank-token-form","heading":"Finix.BankTokenForm → Finix.PaymentForm"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Finix.BankTokenForm"]}," accepted bank account payments only. Replace it with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Finix.PaymentForm"]}," and set ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paymentMethods: [\"bank\"]"]},"."]}]}]}]},"headings":[{"value":"Deprecated Methods","id":"deprecated-methods","depth":1}],"frontmatter":{"seo":{"title":"Deprecated Methods | Finix.js Reference","description":"API reference for deprecated Finix.js v1 methods and their v2 replacements."},"markdown":{"toc":{"hide":true}},"footer":{"hide":true}},"lastModified":"2026-04-14T20:26:18.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/js/deprecated","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}