update method

void update(
  1. CardElementOptions options
)

Updates the options the Element was initialized with. Updates are merged into the existing configuration.

If you collect certain information in a different part of your interface (e.g., ZIP or postal code), use element.update with the appropriate information.

The styles of an Element can be dynamically changed using element.update. This method can be used to simulate CSS media queries that automatically adjust the size of elements when viewed on different devices.

Implementation

void update(CardElementOptions options) {
  return js.update(jsify(options.toJson()));
}