How to use the tipsi-stripe.createTokenWithBankAccount function in tipsi-stripe

To help you get started, we’ve selected a few tipsi-stripe examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tipsi / tipsi-stripe / example / src / scenes / CustomBankScreen.js View on Github external
handleBankAccountPayPress = async (shouldPass = true) => {
    try {
      this.setState({ loading: true, error: null, token: null })
      const params = shouldPass ? this.state.params : this.state.errorParams
      const token = await stripe.createTokenWithBankAccount(params)
      this.setState({ loading: false, token })
    } catch (error) {
      this.setState({ loading: false, error })
    }
  }