Skip to content

Commit

Permalink
Add validate method to card field types
Browse files Browse the repository at this point in the history
  • Loading branch information
exah committed May 11, 2020
1 parent e72d9ec commit 11baa84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ export interface CardFieldOptions extends PopupOptions {
export interface RevolutCheckoutCardField extends RevolutCheckoutInstance {
/** Submit entered card details along with a customer details */
submit: (meta?: CustomerDetails) => void
/** Manually trigger validation, by default field will show errors only after user interacted with it */
validate: () => void
}

export interface RevolutCheckoutInstance {
Expand Down

0 comments on commit 11baa84

Please sign in to comment.