remove address from stripe

Discussion in 'Payments processing' started by ccwjames, Nov 6, 2015.

  1. ccwjames

    ccwjames Member

    Joined:
    Sep 11, 2014
    Messages:
    430
    As i dont need addresses and only the CVV to pass the check, how can i remove the address bars from the php file?

    i see

    $fieldSet = $form->addFieldset(___('Address Info'))
    ->setLabel(___("Address Info\n" .
    '(must match your credit card statement delivery address)'));
    $street = $fieldSet->addText('cc_street')->setLabel(___('Street Address'))
    ->addRule('required', ___('Please enter Street Address'));

    $city = $fieldSet->addText('cc_city')->setLabel(___('City '))
    ->addRule('required', ___('Please enter City'));

    $zip = $fieldSet->addText('cc_zip')->setLabel(___('ZIP'))
    ->addRule('required', ___('Please enter ZIP code'));

    $country = $fieldSet->addSelect('cc_country')->setLabel(___('Country'))
    ->setId('f_cc_country')
    ->loadOptions(Am_Di::getInstance()->countryTable->getOptions(true));
    $country->addRule('required', ___('Please enter Country'));

    $group = $fieldSet->addGroup()->setLabel(___('State'));
    $group->addRule('required', ___('Please enter State'));
    /** @todo load correct states */
    $stateSelect = $group->addSelect('cc_state')
    ->setId('f_cc_state')
    ->loadOptions($stateOptions = Am_Di::getInstance()->stateTable->getOptions(@$_REQUEST['cc_country'], true));
    $stateText = $group->addText('cc_state')->setId('t_cc_state');
    $disableObj = $stateOptions ? $stateText : $stateSelect;
    $disableObj->setAttribute('disabled', 'disabled')->setAttribute('style', 'display: none');
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    You need to remove this code and also code below:
    Code:
     
    address_zip : frm.find("[name=cc_zip]").val(),
    address_line1 : frm.find("[name=cc_street]").val(),
    address_country : frm.find("[name=cc_country]").val(),
    address_city : frm.find("[name=cc_city]").val(),
    address_state : frm.find("[name=cc_state]").val()
    
  3. ccwjames

    ccwjames Member

    Joined:
    Sep 11, 2014
    Messages:
    430
    will look at this :)
    any luck on the new pop up version?
  4. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    You can submit request to helpdesk and I will send you latest version of plugin.

Share This Page