Deprecated Methods | Finix.js Reference

Deprecated Methods

These methods were available in finix.js v1 and are no longer supported in v2. Replace them with Finix.PaymentForm(). 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.

Method Replacements

Code Examples

// Before (v1):
Finix.TokenForm(element, options);

// After (v2):
Finix.PaymentForm(element, environment, application, options);

// Before (v1):
Finix.CardTokenForm(element, options);

// After (v2):
Finix.PaymentForm(element, environment, application, {
  paymentMethods: ["card"],
  ...options,
});

// Before (v1):
Finix.BankTokenForm(element, options);

// After (v2):
Finix.PaymentForm(element, environment, application, {
  paymentMethods: ["bank"],
  ...options,
});