             <Col xs=7>
                 <SelectorInput
                     options   = {STATES}
-                    on_change = {(state)=>@set_input_info("state", "", state)}
+                    on_change = {(state)=>@set_input_info("address_state", "", state)}
                 />
             </Col>
             <Col xs=5>

        </Row>

    render_payment_methods: ->

    render_error: ->
        if @state.error

async = require('async')
misc = require('misc')

{rclass, React, rtypes, FluxComponent, Actions, Store}  = require('flux')
{Button, ButtonToolbar, Input, Row, Col, Panel, Well} = require('react-bootstrap')
{ErrorDisplay, Icon, Loading, SelectorInput} = require('r_misc')

{salvus_client} = require('salvus_client')  # used to run the command -- could change to use an action and the store.

actions = store = undefined
init_flux = (flux) ->
    # Create the billing actions
    class BillingActions extends Actions
        setTo: (payload) ->
            return payload

        update_customer: ->
            if @_update_customer_lock then return else @_update_customer_lock=true
            salvus_client.stripe_get_customer
                cb : (err, resp) =>
                    @_update_customer_lock = false
                    if err
                        @setTo(update_customer_error:err)
                    else
                        Stripe.setPublishableKey(resp.stripe_publishable_key)
                        @setTo(customer: resp.customer)

    actions = flux.createActions('billing', BillingActions)

    # Create the billing store
    class BillingStore extends Store
        constructor: (flux) ->
            super()
            ActionIds = flux.getActionIds('billing')
            @register(ActionIds.setTo, @setTo)
            @state = {}

        setTo: (payload) ->
            @setState(payload)

    store = flux.createStore('billing', BillingStore, flux)

AddPaymentMethod = rclass
    displayName : "AddPaymentMethod"
    propTypes:
        flux     : rtypes.object.isRequired
        on_close : rtypes.func.isRequired  # called when this should be closed

    getInitialState: ->
        new_payment_info : {name : @props.flux.getStore('account').get_fullname()}
        submitting       : false
        error            : ''

    submit_credit_card: ->
        response = undefined
