/**
  *    get_payment_details
  *
  * @access    public
  * @param    array $payments
  * @return    string
  */
 public function get_payment_details($payments = array())
 {
     //prepare variables for displaying
     $template_args = array();
     $template_args['transaction'] = $this->_current_txn;
     $template_args['reg_url_link'] = $this->_reg_url_link;
     $template_args['payments'] = array();
     foreach ($payments as $payment) {
         $template_args['payments'][] = $this->get_payment_row_html($payment);
     }
     //create a hacky payment object, but dont save it
     $payment = EE_Payment::new_instance(array('TXN_ID' => $this->_current_txn->ID(), 'STS_ID' => EEM_Payment::status_id_pending, 'PAY_timestamp' => time(), 'PAY_amount' => $this->_current_txn->total(), 'PMD_ID' => $this->_current_txn->payment_method_ID()));
     $payment_method = $this->_current_txn->payment_method();
     if ($payment_method instanceof EE_Payment_Method && $payment_method->type_obj() instanceof EE_PMT_Base) {
         $template_args['gateway_content'] = $payment_method->type_obj()->payment_overview_content($payment);
     } else {
         $template_args['gateway_content'] = '';
     }
     // link to SPCO payment_options
     $template_args['show_try_pay_again_link'] = $this->_show_try_pay_again_link;
     $template_args['SPCO_payment_options_url'] = $this->_SPCO_payment_options_url;
     // verify template arguments
     EEH_Template_Validator::verify_instanceof($template_args['transaction'], '$transaction', 'EE_Transaction');
     EEH_Template_Validator::verify_isnt_null($template_args['payments'], '$payments');
     EEH_Template_Validator::verify_isnt_null($template_args['show_try_pay_again_link'], '$show_try_pay_again_link');
     EEH_Template_Validator::verify_isnt_null($template_args['gateway_content'], '$gateway_content');
     EEH_Template_Validator::verify_isnt_null($template_args['SPCO_payment_options_url'], '$SPCO_payment_options_url');
     return EEH_Template::locate_template(THANK_YOU_TEMPLATES_PATH . 'thank-you-page-payment-details.template.php', $template_args, TRUE, TRUE);
 }
<?php

EEH_Template_Validator::verify_instanceof($attendee, '$attendee', 'EE_Attendee');
/**
 * @var $attendee - instance of EE_Attendee
 */
?>
<div id="titlediv">
	<div id="titlewrap">
		<label class="hidden" id="attendee-first-name-text" for="ATT_fname"><?php 
_e('First Name:', 'event_espresso');
?>
</label>
		<input type="text" class="smaller-text-field" name="ATT_fname" value="<?php 
echo $attendee->get('ATT_fname');
?>
" id="ATT_fname" placeholder="<?php 
_e('First Name', 'event_espresso');
?>
" required>
		<label class="hidden" id="attendee-first-name-text" for="ATT_lname"><?php 
_e('Last Name:', 'event_espresso');
?>
</label>
		<input type="text" class="smaller-text-field" name="ATT_lname" value="<?php 
echo $attendee->get('ATT_lname');
?>
" id="ATT_lname" placeholder="<?php 
_e('Last Name', 'event_espresso');
?>
">
<?php

EEH_Template_Validator::verify_instanceof($person, '$person', 'EE_Person');
/**
 * @var $person - instance of EE_Person
 */
?>
<table class="form-table">
	<tbody>
		<tr valign="top">
			<td>
				<label for="PER_email"><?php 
_e('Email Address', 'event_espresso');
?>
<br />
				<input class="all-options" type="text" id="PER_email" name="PER_email" value="<?php 
echo $person->email();
?>
"/>
			</td>
		</tr>
		<tr valign="top">
			<td>
				<label for="PER_phone"><?php 
_e('Phone Number', 'event_espresso');
?>
</label><br>
				<input class="all-options" type="text" id="PER_phone" name="PER_phone" value="<?php 
echo $person->phone();
?>
"/>