?> <p class="payment-errors"><?php echo $StripeError; ?> </p><?php } ?> <?php $Input = new ifx_Input('input', 'numeric'); $Input->placeholder('XXXX XXXX XXXX XXXX')->label('Card Number')->name('number')->attr('data-stripe', 'number')->required()->maxLength(20)->display(); $Input = new ifx_Input('input', 'numeric'); $Input->placeholder('MM')->label('Expiry')->name('exp_month')->attr('data-stripe', 'exp-month')->required()->outerClass('half')->maxLength(2)->display(); $Input = new ifx_Input('input', 'numeric'); $Input->placeholder('YYYY')->name('exp_year')->attr('data-stripe', 'exp-year')->required()->outerClass('half')->maxLength(4)->display(); $Input = new ifx_Input('input', 'numeric'); $Input->placeholder('123')->label('CVC')->name('cvc')->attr('data-stripe', 'cvc')->required()->outerClass('half')->maxLength(3)->display(); $Input = new ifx_Input('input', 'hidden'); $Input->attr('data-stripe', 'name')->value($Customer->firstname . ' ' . $Customer->lastname)->display(); $Input = new ifx_Input('input', 'hidden'); $Input->attr('data-stripe', 'address_line1')->value($Customer->street_1)->display(); $Input = new ifx_Input('input', 'hidden'); $Input->attr('data-stripe', 'address_line2')->value($Customer->street_2)->display(); $Input = new ifx_Input('input', 'hidden'); $Input->attr('data-stripe', 'address_city')->value($Customer->town)->display(); $Input = new ifx_Input('input', 'hidden'); $Input->attr('data-stripe', 'address_zip')->value($Customer->postcode_1 . ' ' . $Customer->postcode_2)->display(); $Input = new ifx_Input('input', 'hidden'); $Input->attr('data-stripe', 'address_country')->value('United Kingdom')->display(); ?> <div class="cards-wrap">
$Input = new ifx_Input('input', 'text'); $Input->placeholder('Town')->name('ward')->bindTo('mCustomer')->display(); $Input = new ifx_Input('input', 'text'); $Input->placeholder('City')->name('town')->bindTo('mCustomer')->display(); $Input = new ifx_Input('input', 'text'); $Input->placeholder('County')->name('county')->bindTo('mCustomer')->display(); $Input = new ifx_Input('input', 'text'); $Input->placeholder('AB12')->name('postcode_1')->outerClass('half')->bindTo('mCustomer')->display(); $Input = new ifx_Input('input', 'text'); $Input->placeholder('2CD')->name('postcode_2')->outerClass('half')->bindTo('mCustomer')->display(); ?> </div> </div> <div class="col-xs-4 additional-details"> <p class="heading">Additional Information</p> <?php $Input = new ifx_Input('textarea'); $Input->placeholder('Enter any additional information, or notes to us')->name('additional_info')->bindTo('mOrder')->rows(5)->display(); $Input = new ifx_Input('input', 'checkbox'); $Input->name('accept_tandc')->label('Terms and Conditions')->note('I accept the <a href="/terms/" target="_blank">terms and conditions</a> of sale.')->value(true)->required()->bindTo('mOrder')->display(); ?> </div> <div class="col-xs-4 basket-summary"> <?php display_view('checkout/summary'); ?> </div> </div> </div> </form>