 
     getInitialState : ->
         selected_button : 'month'
+
+    is_recurring : ->
+        not PROJECT_UPGRADES.membership[@props.selected_plan.split('-')[0]].cancel_at_period_end
 
     submit_create_subscription : ->
         plan = @props.selected_plan

        ###

    render_create_subscription_confirm : ->
        if not PROJECT_UPGRADES.membership[@props.selected_plan.split('-')[0]].cancel_at_period_end
            subscription = " and you will be signed up for a recurring subscription"
        <Alert>
            <h4><Icon name='check' /> Confirm your selection </h4>

                <Space/><Space/>
                {@props.source.address_zip}
            </Col>
            {@render_action_buttons()}
        </Row>

    render_action_buttons : ->
        if not @props.set_as_default? and not @props.delete_method?
            return
        <Col md=3>
            <ButtonToolbar style={float: "right"}>
                {<Button
                    onClick  = {=>@setState(confirm_default:true)}
                    disabled = {@props.default}
                    bsStyle  = {if @props.default then 'primary' else 'default'}
                >
                    Default
                </Button> if @props.set_as_default? }

                {<Button onClick={=>@setState(confirm_delete:true)}>
                    <Icon name="trash" /> Delete
                </Button> if @props.delete_method? }
            </ButtonToolbar>
        </Col>

    render : ->
        <div style={borderBottom:'1px solid #999',  paddingTop: '5px', paddingBottom: '5px'}>
