Skip to content

Instantly share code, notes, and snippets.

@wvega
Created July 10, 2013 14:42
Show Gist options
  • Save wvega/5966880 to your computer and use it in GitHub Desktop.
Save wvega/5966880 to your computer and use it in GitHub Desktop.
Template file for AWPCP's Payment Completed page.
<form method="post" action=<?php echo esc_attr($action) ?>>
<h3><?php _ex('Transaction Details', 'payment completed page', 'AWPCP') ?></h3>
<?php echo $this->render_transaction_items($transaction) ?>
<h3><?php echo $title ?></h3>
<p><?php echo $text ?></p>
<?php echo $this->render_transaction_errors($transaction) ?>
<?php if ($success): ?>
<p class="form-submit">
<input class="button" type="submit" value="<?php _e('Continue', 'AWPCP') ?>" id="submit" name="submit">
<input type="hidden" value="<?php echo esc_attr($transaction->id) ?>" name="awpcp-txn">
<?php foreach ($hidden as $name => $value): ?>
<input type="hidden" value="<?php echo esc_attr($value) ?>" name="<?php echo esc_attr($name) ?>">
<?php endforeach ?>
</p>
<?php endif ?>
</form>
<?php if ( $transaction->was_payment_successful() ): ?>
<!-- GA code here -->
<?php endif ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment