CDPotion.Domain.Autofill (cdpotion v0.1.4)
Summary
Functions
Set addresses so that developers can verify their forms implementation.
Trigger autofill on a form identified by the fieldId. If the field and related form cannot be autofilled, returns an error.
Types
Link to this type
address()
@type address() :: %{fields: [address_field()]}
description not provided :(
Link to this type
address_field()
description not provided :(
Link to this type
credit_card()
@type credit_card() :: %{ cvc: String.t(), expiryMonth: String.t(), expiryYear: String.t(), name: String.t(), number: String.t() }
description not provided :(
Functions
Link to this function
set_addresses(addresses)
Set addresses so that developers can verify their forms implementation.
Parameters:
- (Required)
addresses
: description not provided :(
Link to this function
trigger(field_id, frame_id \\ nil, card)
@spec trigger( CDPotion.Domain.DOM.backend_node_id(), CDPotion.Domain.Page.frame_id(), credit_card() ) :: {String.t(), map()}
Trigger autofill on a form identified by the fieldId. If the field and related form cannot be autofilled, returns an error.
Parameters:
- (Required)
field_id
: Identifies a field that serves as an anchor for autofill. - (Optional)
frame_id
: Identifies the frame that field belongs to. - (Required)
card
: Credit card information to fill out the form. Credit card data is not saved.