## Submit Use `elements.submit()` when creating the [Elements object without an Intent](#stripe_elements_no_intent). Before confirming a payment, call `elements.submit()` to validate the form fields and collect any data required for [wallets](#payment_element_create-options-wallets). You must wait for this function's promise to resolve (using `async` or `.then`) before performing any other operations. This method returns a `Promise` which resolves with a result object. If this method succeeds, the result object contains the selected payment method type in the `selectedPaymentMethod` field. If this method fails, the result object contains a localized error message in the `error.message` field. **Syntax:** `elements.submit(...)` ### Submit Elements ```js elements.submit() .then(function(result) { // Handle result.error or retrieve result.selectedPaymentMethod }); ``` ```es_next const {error, selectedPaymentMethod} = await elements.submit(); ```