function event_espresso_display_firstdata_settings()
{
    $firstdata_settings = get_option('event_espresso_firstdata_settings');
    ?>
	<form method="post" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
">
		<table width="99%" border="0" cellspacing="5" cellpadding="5">
			<tr>
				<td valign="top"><ul>
						<li>
							<label>
								<?php 
    _e('First Data Store Number', 'event_espresso');
    ?>
							</label>
							<input type="text" name="firstdata_store_id" size="35" value="<?php 
    echo $firstdata_settings['firstdata_store_id'];
    ?>
">
						</li>
						<li>
							<label>
								<?php 
    _e('Accepted Credit Cards', 'event_espresso');
    ?>
							</label>
							<?php 
    $checked = 'checked="checked"';
    $firstdata_credit_cards = explode(",", $firstdata_settings['firstdata_credit_cards']);
    ?>
							<input type="checkbox" name="firstdata_credit_cards[]" size="35" value="Visa" <?php 
    echo in_array("Visa", $firstdata_credit_cards) ? $checked : '';
    ?>
 /> Visa
							<input type="checkbox" name="firstdata_credit_cards[]" size="35" value="MasterCard" <?php 
    echo in_array("MasterCard", $firstdata_credit_cards) ? $checked : '';
    ?>
 /> Master Card
							<input type="checkbox" name="firstdata_credit_cards[]" size="35" value="Amex" <?php 
    echo in_array("Amex", $firstdata_credit_cards) ? $checked : '';
    ?>
 /> Amex
							<input type="checkbox" name="firstdata_credit_cards[]" size="35" value="Discover" <?php 
    echo in_array("Discover", $firstdata_credit_cards) ? $checked : '';
    ?>
 /> Discover
						</li>
						<li>
							<label for="use_verify_peer">
								<?php 
    _e('Use Verify Peer Option in cURL', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=use_verify_peer"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="use_verify_peer" type="checkbox" value="1" <?php 
    echo $firstdata_settings['use_verify_peer'] ? 'checked="checked"' : '';
    ?>
 />
						</li>
						<li>
							<label for="use_sandbox">
								<?php 
    _e('Turn on Debugging Using the', 'event_espresso');
    ?>
 <?php 
    _e('First Data Sandbox', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=sandbox_info_firstdata"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="use_sandbox" type="checkbox" value="1" <?php 
    echo $firstdata_settings['use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
						</li>
						<?php 
    if (espresso_check_ssl() == TRUE || isset($firstdata_settings['force_ssl_return']) && $firstdata_settings['force_ssl_return'] == 1) {
        ?>
						<li>
							<label for="force_ssl_return">
								<?php 
        _e('Force HTTPS on Return URL', 'event_espresso');
        ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=force_ssl_return"><img src="<?php 
        echo EVENT_ESPRESSO_PLUGINFULLURL;
        ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="force_ssl_return" type="checkbox" value="1" <?php 
        echo $firstdata_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
							<?php 
    }
    ?>
					</ul></td>
				<td  valign="top"><ul>
					<li>
							<label for="display_header">
								<?php 
    _e('Display a Form Header', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=display_header"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="display_header" type="checkbox" value="1" <?php 
    echo $firstdata_settings['display_header'] ? 'checked="checked"' : '';
    ?>
 /></li>
							<li>
							<label for="header">
								<?php 
    _e('Header Text', 'event_espresso');
    ?>
							</label>
							<input type="text" name="header" size="35" value="<?php 
    echo $firstdata_settings['header'];
    ?>
">
						</li>
					</ul>
					</td>
			</tr>
		</table>
		<?php 
    if (espresso_check_ssl() == FALSE) {
        espresso_ssl_required_gateway_message();
    }
    ?>
		<p><span style="color:red"><strong><?php 
    _e('Attention!', 'event_espresso');
    ?>
</strong></span> <?php 
    echo __("Place the .pem file in the following folder.  Make sure the .pem file has the same name as your store number:", 'event_espresso') . "<br /> " . dirname(__FILE__);
    ?>
</p>
		<p>
			<input type="hidden" name="update_firstdata" value="update_firstdata">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update First Data Settings', 'event_espresso');
    ?>
" id="save_paypal_settings" />
		</p>
	</form>
	<div id="sandbox_info_firstdata" style="display:none">
		<h2><?php 
    _e('First Data Sandbox', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('In addition to using the First Data Sandbox feature. The debugging feature will also output the form variables to the payment page, send an email to the admin that contains the all First Data variables.', 'event_espresso');
    ?>
</p>
		<hr />
		<p><?php 
    _e('The First Data Sandbox is a testing environment that is a duplicate of the live First Data site, except that no real money changes hands. The Sandbox allows you to test your entire integration before submitting transactions to the live environment. Create and manage test accounts, and view emails and API credentials for those test accounts.', 'event_espresso');
    ?>
</p>
	</div>
	<div id="use_verify_peer" style="display:none">
		<h2><?php 
    _e('Verify Peer Option', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('In the call between your server and firstdata\'s servers, there is an option to verify the ssl certificate of the firstdata server. Normally, you would want to use this for improved security. However, if the CA file on your server is missing or out of date, then you may want to bypass this check, in order to get the First Data gateway to function.', 'event_espresso');
    ?>
</p>
	</div>
	<?php 
}
function event_espresso_display_nab_settings()
{
    $nab_settings = get_option('event_espresso_nab_settings');
    ?>
	<form method="post" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
">
		<table width="99%" border="0" cellspacing="5" cellpadding="5">
			<tr>
				<td valign="top">
					<ul>
						<li>
							<label for="nab_id">
								<?php 
    _e('NAB Merchant ID', 'event_espresso');
    ?>
							</label>
							<input type="text" name="nab_merchant_id" size="35" value="<?php 
    echo $nab_settings['nab_merchant_id'];
    ?>
" />
							<br />
						</li>
						<li>
							<label for="nab_id">
								<?php 
    _e('NAB Merchant Password', 'event_espresso');
    ?>
							</label>
							<input type="text" name="nab_merchant_password" size="35" value="<?php 
    echo $nab_settings['nab_merchant_password'];
    ?>
" />
							<br />
						</li>
					</ul>
				</td>
				<td valign="top">
					<ul>
						<li>
							<label for="nab_use_sandbox">
								<?php 
    _e('Use NAB Transact Direct Post in test mode?', 'event_espresso');
    ?>
							</label>
							<input name="nab_use_sandbox" type="checkbox" value="Test Reference" <?php 
    echo $nab_settings['nab_use_sandbox'] == "1" ? 'checked="checked"' : '';
    ?>
 />
							<br />
							<?php 
    _e('(Make sure you enter the test credentials above.)', 'event_espresso');
    ?>
						</li>
					</ul>
				</td>
			</tr>
		</table>
		<?php 
    if (espresso_check_ssl() == FALSE) {
        espresso_ssl_required_gateway_message();
    }
    ?>
		<p>
			<input type="hidden" name="update_nab" value="update_nab" />
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update NAB Settings', 'event_espresso');
    ?>
" id="save_nab_settings" />
		</p>
	</form>
	<?php 
}
Example #3
0
function event_espresso_display_beanstream_settings()
{
    $beanstream_settings = get_option('event_espresso_beanstream_settings');
    ?>
	<form method="post" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
">
		<table width="99%" border="0" cellspacing="5" cellpadding="5">
			<tr>
				<td valign="top">
					<ul>
						<li>
							<label for="merchant_id">
								<?php 
    _e('Beanstream Merchant ID', 'event_espresso');
    ?>
							</label>
							<input type="text" name="merchant_id" size="35" value="<?php 
    echo $beanstream_settings['merchant_id'];
    ?>
">
						</li>
						<li>
							<label for="beanstream_use_sandbox">
								<?php 
    _e('Use Beanstream in Sandbox Mode', 'event_espresso');
    ?>
							</label>
							<input name="beanstream_use_sandbox" type="checkbox" value="1" <?php 
    echo $beanstream_settings['beanstream_use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
							<br />
							<?php 
    _e('(Make sure you enter the sandbox credentials above.)', 'event_espresso');
    ?>
						</li>
						<?php 
    if (espresso_check_ssl() == TRUE || isset($beanstream_settings['force_ssl_return']) && $beanstream_settings['force_ssl_return'] == 1) {
        ?>
						<li>
							<label for="force_ssl_return">
								<?php 
        _e('Force HTTPS on Return URL', 'event_espresso');
        ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=force_ssl_return"><img src="<?php 
        echo EVENT_ESPRESSO_PLUGINFULLURL;
        ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="force_ssl_return" type="checkbox" value="1" <?php 
        echo $beanstream_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
							<?php 
    }
    ?>
						<li>
							<label for="display_header">
								<?php 
    _e('Display a Form Header', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=display_header"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="display_header" type="checkbox" value="1" <?php 
    echo $beanstream_settings['display_header'] ? 'checked="checked"' : '';
    ?>
 />
						</li>
						<li>
							<label for="header">
								<?php 
    _e('Header Text', 'event_espresso');
    ?>
							</label>
							<input type="text" name="header" size="35" value="<?php 
    echo $beanstream_settings['header'];
    ?>
">
						</li>
					</ul>
				</td>
			</tr>
		</table>
		<?php 
    if (espresso_check_ssl() == FALSE) {
        espresso_ssl_required_gateway_message();
    }
    ?>
		<p>
			<input type="hidden" name="update_beanstream" value="update_beanstream">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update Beanstream Settings', 'event_espresso');
    ?>
" id="save_paypal_settings" />
		</p>
	</form>
<?php 
}
function event_espresso_display_paychoice_settings()
{
    $paychoice_settings = get_option('event_espresso_paychoice_settings');
    ?>
	<form method="post" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
">
		<table width="99%" border="0" cellspacing="5" cellpadding="5">
			<tr>
				<td valign="top">
					<ul>
						<li>
							<label for="paychoice_password">
								<?php 
    _e('PayChoice Username', 'event_espresso');
    ?>
							</label>
							<input type="text" name="paychoice_username" size="35" value="<?php 
    echo $paychoice_settings['paychoice_username'];
    ?>
">
						</li>
						<li>
							<label for="paychoice_username">
								<?php 
    _e('PayChoice Password', 'event_espresso');
    ?>
							</label>
							<input type="text" name="paychoice_password" size="35" value="<?php 
    echo $paychoice_settings['paychoice_password'];
    ?>
">
						</li>
						<li>
							<label for="paychoice_currency_symbol">
								<?php 
    _e('PayChoice Currency Symbol (AUD)', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=paychoice_currency_symbol"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input type="text" name="paychoice_currency_symbol" size="35" value="<?php 
    echo $paychoice_settings['paychoice_currency_symbol'];
    ?>
">
						</li>
						<li>
							<label for="use_sandbox">
								<?php 
    _e('Use the Test Mode for PayChoice', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=paychoice_sandbox_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="use_sandbox" type="checkbox" value="1" <?php 
    echo $paychoice_settings['use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
						</li>						
					<?php 
    if (espresso_check_ssl() == TRUE || isset($paychoice_settings['force_ssl_return']) && $paychoice_settings['force_ssl_return'] == 1) {
        ?>
						<li>
							<label for="force_ssl_return">
								<?php 
        _e('Force HTTPS on Return URL', 'event_espresso');
        ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=force_ssl_return"><img src="<?php 
        echo EVENT_ESPRESSO_PLUGINFULLURL;
        ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="force_ssl_return" type="checkbox" value="1" <?php 
        echo $paychoice_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
							<?php 
    }
    ?>
							<li>
							<label for="display_header">
								<?php 
    _e('Display a Form Header', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=display_header"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="display_header" type="checkbox" value="1" <?php 
    echo $paychoice_settings['display_header'] ? 'checked="checked"' : '';
    ?>
 /></li>
							<li>
							<label for="header">
								<?php 
    _e('Header Text', 'event_espresso');
    ?>
							</label>
							<input type="text" name="header" size="35" value="<?php 
    echo $paychoice_settings['header'];
    ?>
">
						</li>
					</ul>
				</td>
			</tr>
		</table>
		<?php 
    if (espresso_check_ssl() == FALSE) {
        espresso_ssl_required_gateway_message();
    }
    ?>
		<p>
			<input type="hidden" name="update_paychoice" value="update_paychoice">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update PayChoice Settings', 'event_espresso');
    ?>
" id="save_paychoice_settings" />
		</p>
	</form>
	<div id="paychoice_currency_symbol" style="display:none">
		<h2>
			<?php 
    _e('PayChoice Currency Symbol', 'event_espresso');
    ?>
		</h2>
		<p>
			<?php 
    _e('PayChoice uses 3-character ISO-4217 codes for specifying currencies in fields and variables.  If you are taking purchases in US Dollars, enter <code>AUD</code> here.  PayChoice currently only takes payment in AUD, but can accept payments from any currency which will be converted to AUD at checkout.', 'event_espresso');
    ?>
		</p>
	</div>
	<div id="paychoice_sandbox_info" style="display:none">
		<h2><?php 
    _e('PayChoice Test Mode', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('Test Mode allows you to submit test transactions to the payment gateway. This allows you to test your entire integration before submitting transactions to the live PayChoice environment. ', 'event_espresso');
    ?>
</p>
	</div>	
	<?php 
}
Example #5
0
function event_espresso_display_stripe_settings()
{
    $stripe_settings = get_option('event_espresso_stripe_settings');
    ?>
	<form method="post" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
">
		<table width="99%" border="0" cellspacing="5" cellpadding="5">
			<tr>
				<td valign="top">
					<ul>
						<li>
							<label for="stripe_secret_key">
								<?php 
    _e('Stripe Secret Key', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=stripe_secret_key"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input type="text" name="stripe_secret_key" size="35" value="<?php 
    echo $stripe_settings['stripe_secret_key'];
    ?>
">
						</li>
						<li>
							<label for="stripe_publishable_key">
								<?php 
    _e('Stripe Publishable Key', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=stripe_publishable_key"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input type="text" name="stripe_publishable_key" size="35" value="<?php 
    echo $stripe_settings['stripe_publishable_key'];
    ?>
">
						</li>
						<li>
							<label for="stripe_currency_symbol">
								<?php 
    _e('Stripe Currency Symbol (USD)', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=stripe_currency_symbol"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input type="text" name="stripe_currency_symbol" size="35" value="<?php 
    echo $stripe_settings['stripe_currency_symbol'];
    ?>
">
						</li>
						<?php 
    /* Commenting this out, as this is not required or even used, really
    		  <li>
    		  <label for="stripe_transaction_prefix">
    		  <?php _e('Stripe Transaction Prefix (Terminal):', 'event_espresso'); ?>
    		  </label>
    		  <br />
    		  <input type="text" name="stripe_transaction_prefix" size="35" value="<?php echo $stripe_settings['stripe_transaction_prefix']; ?>">
    		  </li>
    		 */
    ?>
					</ul>
				</td>
				<td>
						<ul>
						<?php 
    if (espresso_check_ssl() == TRUE || isset($quickpay_settings['force_ssl_return']) && $quickpay_settings['force_ssl_return'] == 1) {
        ?>
							<li>
							<label for="force_ssl_return">
								<?php 
        _e('Force HTTPS on Return URL', 'event_espresso');
        ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=force_ssl_return"><img src="<?php 
        echo EVENT_ESPRESSO_PLUGINFULLURL;
        ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="force_ssl_return" type="checkbox" value="1" <?php 
        echo $stripe_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
							<?php 
    }
    ?>
							<li>
							<label for="display_header">
								<?php 
    _e('Display a Form Header', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=display_header"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="display_header" type="checkbox" value="1" <?php 
    echo $stripe_settings['display_header'] ? 'checked="checked"' : '';
    ?>
 /></li>
							<li>
							<label for="header">
								<?php 
    _e('Header Text', 'event_espresso');
    ?>
							</label>
							<input type="text" name="header" size="35" value="<?php 
    echo $stripe_settings['header'];
    ?>
">
						</li>
						</ul>
					</td>
			</tr>
		</table>
		<?php 
    if (espresso_check_ssl() == FALSE) {
        espresso_ssl_required_gateway_message();
    }
    ?>
		<p>
			<input type="hidden" name="update_stripe" value="update_stripe">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update Stripe Settings', 'event_espresso');
    ?>
" id="save_stripe_settings" />
		</p>
	</form>
	<div id="stripe_currency_symbol" style="display:none">
		<h2>
			<?php 
    _e('Stripe Currency Symbol', 'event_espresso');
    ?>
		</h2>
		<p>
			<?php 
    _e('Stripe uses 3-character ISO-4217 codes for specifying currencies in fields and variables.  If you are taking purchases in US Dollars, enter <code>usd</code> here.  Stripe currently only takes payment in USD, but can accept payments from any currency which will be converted to USD at checkout.', 'event_espresso');
    ?>
		</p>
	</div>
	<div id="stripe_secret_key" style="display:none">
		<h2>
			<?php 
    _e('Stripe Secret Key', 'event_espresso');
    ?>
		</h2>
		<p>
			<?php 
    _e('Enter your <a href="https://manage.stripe.com/#account/apikeys" target="_blank">Secret Key</a> here.  If you are testing the Stripe gateway, use your Test Secret Key, otherwise use your Live Secret Key.', 'event_espresso');
    ?>
		</p>
		<p>
			<?php 
    _e('<a href="https://stripe.com/docs/api#authentication" target="_blank">Learn more about API authentication.</a>', 'event_espresso');
    ?>
		</p>
	</div>
	<div id="stripe_publishable_key" style="display:none">
		<h2>
			<?php 
    _e('Stripe Publishable Key', 'event_espresso');
    ?>
		</h2>
		<p>
			<?php 
    _e('Enter your <a href="https://manage.stripe.com/#account/apikeys" target="_blank">Publishable Key</a> here.  If you are testing the Stripe gateway, use your Test Publishable Key, otherwise use your Live Publishable Key.', 'event_espresso');
    ?>
		</p>
		<p>
			<?php 
    _e('<a href="https://stripe.com/docs/api#authentication" target="_blank">Learn more about API authentication.</a>', 'event_espresso');
    ?>
		</p>
	</div>
	<?php 
}
function event_espresso_display_qbms_settings()
{
    $qbms_settings = get_option('event_espresso_qbms_settings');
    $default_logdir = wp_upload_dir();
    $default_logdir = $default_logdir['basedir'] . '/espresso/gateways/qbms/';
    $app_id = $qbms_settings['qbms_sandbox'] ? ESPRESSO_QBSM_DEV_APP_ID : ESPRESSO_QBMS_LIVE_APP_ID;
    $connection_ticket_url = $qbms_settings['qbms_sandbox'] ? "https://merchantaccount.ptc.quickbooks.com/j/sdkconnection?appid={$app_id}&sessionEnabled=false" : "https://merchantaccount.quickbooks.com/j/sdkconnection?appid={$app_id}&sessionEnabled=false";
    ?>
	<form method="post" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
">
		<table width="99%" border="0" cellspacing="5" cellpadding="5">
			<tr>
				<td valign="top">
					<ul>
						<li>
							<label for='qbms_conn_ticket'>
								<?php 
    _e("QuickBooks Connection Ticket", 'event_espresso');
    ?>
 
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=connection_ticket"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input class="input-text" type="text" name="qbms_conn_ticket" id="qbms_conn_ticket" style="min-width:50px;" value="<?php 
    echo $qbms_settings['qbms_conn_ticket'];
    ?>
" />
							<br/>
						</li>
					</ul>
				</td>
				<td valign="top">
					<ul>
						<li>
							<label for='qbms_sandbox'><?php 
    _e("Use PTC (Development) Server", 'event_espresso');
    ?>
<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=qbms_ipc"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a></label>
							<input type='checkbox' name='qbms_sandbox' value="1" <?php 
    if ($qbms_settings['qbms_sandbox']) {
        echo 'checked';
    }
    ?>
>
						</li>
						<li>
							<label for="display_header">
								<?php 
    _e('Display a Form Header', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=display_header"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="display_header" type="checkbox" value="1" <?php 
    echo $qbms_settings['display_header'] ? 'checked="checked"' : '';
    ?>
 /></li>
						<li>
							<label for="header">
								<?php 
    _e('Header Text', 'event_espresso');
    ?>
							</label>
							<input type="text" name="header" size="35" value="<?php 
    echo $qbms_settings['header'];
    ?>
">
						</li>
						<?php 
    /* ?><li>
    				<label for='qbms_log'><?php _e("Technical Log",'event_espresso')?></label>
    				<select name="qbms_log" id="qbms_log" style="min-width:100px;">
    					<option value="off" <?php if ($qbms_settings['qbms_log'] == 'off') echo 'selected="selected"'; ?>> <?php _e('Off', 'event_espresso'); ?></option>
    					<option value="e_only" <?php if ($qbms_settings['qbms_log'] == 'e_only') echo 'selected="selected"'; ?>><?php _e('Errors Only', 'event_espresso'); ?></option>
    					<option value="all" <?php if ($qbms_settings['qbms_log'] == 'all') echo 'selected="selected"'; ?>><?php _e('All', 'event_espresso'); ?></option>
    				</select>
    			</li>
    			<li>
    				<label for='qbms_logpath'><?php _e("Folder where to place log file",'event_espresso')?></label>
    				<input class="input-text wide-input" type="text" name="qbms_logpath" id="qbms_logpath" value="<?php echo $qbms_settings['qbms_logpath'] ?>" />
    			</li>
    			<?php */
    ?>
						 
					</ul>
				</td>
			</tr>
		</table>
		<?php 
    if (espresso_check_ssl() == FALSE) {
        espresso_ssl_required_gateway_message();
    }
    ?>
		<p>
			<input type="hidden" name="update_qbms" value="update_qbms">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update QBMS Settings', 'event_espresso');
    ?>
" id="save_qbms_settings" />
		</p>
	</form>
<div id="connection_ticket" style="display:none">
		<h2><?php 
    _e('QuickBooks Merchant Services Connection Ticket', 'event_espresso');
    ?>
</h2>
		<p><?php 
    printf(__('QuickBooks Merchant Services allows you to accept credit card payments and easily link to your other QuickBooks software. %s Click here to read more %s', 'event_espresso'), "<a target='_blank' href='http://payments.intuit.com/'>", "</a>");
    ?>
</p>
		<h2><?php 
    _e("How to Configure QuickBooks Merchant Services Payment Gateway", 'event_espresso');
    ?>
</h2>
		<ol>
			<!-- <li>
				<?php 
    __("This version of Event Espresso's QuickBooks Merchant Services Payment Method receive's users' credit card info directly into your website. For this reason, it is HIGHLY recommended that you enable your site to be handled over HTTPS/SSL.", 'event_espresso');
    ?>
			</li> -->
			<li>
				<?php 
    printf(__('First signup for a %s Merchant Services Account here %s', 'event_espresso'), "<a target='_blank' href='https://merchant.intuit.com/signup/start.wsp'>", "</a>");
    ?>
			</li>
			<li>
				<?php 
    printf(__('After creating the account, %s click here to link Event Espresso to your QuickBooks Merchant Services account%s', 'event_espresso'), "<a target='_blank' href='{$connection_ticket_url}'>", "</a>");
    ?>
			</li>
			<li>
				<?php 
    printf(__('After you click on the previous link, enter your QuickBooks Merchant Services email and password.', 'event_espresso'));
    ?>
			</li>
			<li>
				<?php 
    printf(__("You will then be given a 'Connection Ticket', which you must copy and paste into the Field 'Connection Ticket' in Event Espresso's QuickBooks Merchant Services payment settings field.", 'event_espresso'));
    ?>
				<br>
				<?php 
    _e("(Note: if you change whether you're using the PTC/Development server, you will need to re-acquire your connection ticket.)", 'event_espresso');
    ?>
			</li>
			<li>
				<?php 
    _e("All done! Now just test that payments are working, and you're done!", 'event_espresso');
    ?>
			</li>
		</ol>
	</div>
<div id="qbms_ipc" style="display:none">
		<h2><?php 
    _e('QuickBooks Merchant Services PTC (Development) Server', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e("If you wish to test this payment method, you can enable the PTC (Development) server. If this setting is enabled, payment processing messages will be sent to QuickBooks Merchant Services' IPC server, where payments are not actually processed (no money actually changes hands).", 'event_espresso');
    ?>
</p>
		<p><?php 
    _e("You will probably only want to use this setting if you are modifying this payment method's code, or if you suspect there to be a bug in it and you want to try to reproduce it.", 'event_espresso');
    ?>
</p>
		<p><?php 
    printf(__("Note: if you change this setting, you MUST get a new Connection ticket (%sby clicking here%s)", 'event_espresso'), "<a target='_blank' href='{$connection_ticket_url}'>", '</a>');
    ?>
</p>
		<p><?php 
    printf(__("While using the PTC (Development) Server, you must use test credit cards, %s listed here%s", 'event_espresso'), "<a target='_blank' href='https://ipp.developer.intuit.com/0085_QuickBooks_Windows_SDK/030_qbms/0060_Documentation/Testing#Testing_Credit_Card_Transactions'>", '</a>');
    ?>
</div>

	<?php 
}
function espresso_display_usaepay_onsite_settings()
{
    $settings = get_option('espresso_usaepay_onsite_settings');
    ?>
	<form method="post" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
">
		<table width="99%" border="0" cellspacing="5" cellpadding="5">
			<tr>
				<td valign="top">
					<ul>
						<li>
							<label for="key">
								<?php 
    _e('Key', 'event_espresso');
    ?>
							</label>
							<input type="text" name="key" size="35" value="<?php 
    echo $settings['key'];
    ?>
">
						</li>
						<li>
							<label for="usaepay_onsite_use_sandbox">
								<?php 
    _e('Use USAePay\' Development Server?', 'event_espresso');
    ?>
							</label>
							<input name="use_sandbox" type="checkbox" value="1" <?php 
    echo $settings['use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
							<br />
							<?php 
    _e('(Make sure you enter the development server credentials above.)', 'event_espresso');
    ?>
						</li>
						<li>
							<label for="usaepay_onsite_testmode">
								<?php 
    _e('Submit a test transaction?', 'event_espresso');
    ?>
							</label>
							<input name="testmode" type="checkbox" value="1" <?php 
    echo $settings['testmode'] ? 'checked="checked"' : '';
    ?>
 />
						</li>
						<?php 
    if (espresso_check_ssl() == TRUE || isset($settings['force_ssl_return']) && $settings['force_ssl_return'] == 1) {
        ?>
						<li>
							<label for="force_ssl_return">
								<?php 
        _e('Force HTTPS on Return URL', 'event_espresso');
        ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=force_ssl_return"><img src="<?php 
        echo EVENT_ESPRESSO_PLUGINFULLURL;
        ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="force_ssl_return" type="checkbox" value="1" <?php 
        echo $settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
							<?php 
    }
    ?>
						<li>
							<label for="display_header">
								<?php 
    _e('Display a Form Header', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=display_header"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="display_header" type="checkbox" value="1" <?php 
    echo $settings['display_header'] ? 'checked="checked"' : '';
    ?>
 /></li>
						<li>
							<label for="header">
								<?php 
    _e('Header Text', 'event_espresso');
    ?>
							</label>
							<input type="text" name="header" size="35" value="<?php 
    echo $settings['header'];
    ?>
">
						</li>
					</ul>
				</td>
			</tr>
		</table>
		<?php 
    if (espresso_check_ssl() == FALSE) {
        espresso_ssl_required_gateway_message();
    }
    ?>
		<p>
			<input type="hidden" name="update_usaepay_onsite" value="update_usaepay_onsite">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update USAePay Onsite Settings', 'event_espresso');
    ?>
" id="save_usaepay_onsite_settings" />
		</p>
	</form>
	<?php 
}
Example #8
0
function event_espresso_display_eway_rapid3_settings()
{
    $eway_rapid3_settings = get_option('event_espresso_eway_rapid3_settings');
    ?>
	<form method="post" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
">
		<table width="99%" border="0" cellspacing="5" cellpadding="5">
			<tr>
				<td valign="top">
					<ul>
						<li>
							<label for="eway_rapid3_api_key">
								<?php 
    _e("Eway Rapid 3.0 API Key (viewable in MyEway Business Centre under 'Manage Users')", 'event_espresso');
    ?>
							</label>
							<input type="text" name="eway_rapid3_api_key" size="35" value="<?php 
    echo $eway_rapid3_settings['eway_rapid3_api_key'];
    ?>
">
						</li>
						<li>
							<label for="eway_rapid3_api_username">
								<?php 
    _e('Eway Rapid 3.0 API Username', 'event_espresso');
    ?>
							</label>
							<input type="text" name="eway_rapid3_api_username" size="35" value="<?php 
    echo $eway_rapid3_settings['eway_rapid3_api_username'];
    ?>
">
						</li>
						<li>
							<label for="eway_rapid3_api_password">
								<?php 
    _e('Eway Rapid 3.0 API Password', 'event_espresso');
    ?>
							</label>
							<input type="password" name="eway_rapid3_api_password" size="35" value="<?php 
    echo $eway_rapid3_settings['eway_rapid3_api_password'];
    ?>
">
						</li>
						<!--<li>
							<label for="eway_rapid3_api_signature">
								<?php 
    _e('Eway Rapid 3.0 API Signature', 'event_espresso');
    ?>
							</label>
							<input type="text" name="eway_rapid3_api_signature" size="35" value="<?php 
    echo $eway_rapid3_settings['eway_rapid3_api_signature'];
    ?>
">
							<br />

						</li>-->
						<li>
							<label for="region">
								<?php 
    _e('Choose Your Region', 'event_espresso');
    ?>
							</label>
							<select name="region">
								<?php 
    $regionOptions = array('AU' => 'Australia', 'NZ' => 'New Zealand', 'UK' => 'United Kingdom');
    foreach ($regionOptions as $regionAbbreviation => $regionName) {
        ?>
								<option value='<?php 
        echo $regionAbbreviation;
        ?>
' <?php 
        if (array_key_exists('region', $eway_rapid3_settings) && $regionAbbreviation == $eway_rapid3_settings['region']) {
            echo 'selected';
        }
        ?>
>
									<?php 
        _e($regionName, 'event_espresso');
        ?>
								</option>
								<?php 
    }
    ?>
							
							</select>
						</li>
						<li>
							<label for="currency_format">
								<?php 
    _e('The currency set for your region is', 'event_espresso');
    ?>
							</label>
							<span class="display-path" style="background-color: rgb(255, 251, 204); border:#999 solid 1px; padding:2px;"><?php 
    echo $eway_rapid3_settings['currency_format'];
    ?>
</span>
							<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=currency_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a> </li>
						
					</ul>
				</td>
				<td valign="top">
					<ul>
						<li>
							<label for="eway_rapid3_use_sandbox">
								<?php 
    _e('Use Eway Rapid 3.0in Sandbox Mode', 'event_espresso');
    ?>
							</label>
							<input name="eway_rapid3_use_sandbox" type="checkbox" value="1" <?php 
    echo $eway_rapid3_settings['eway_rapid3_use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
							<br />
							<?php 
    _e('Note: Sandbox mode only works for AUD as currency. If you are using Sandbox mode, ensure you are using Sandbox credentials.', 'event_espresso');
    ?>
						</li>
						<?php 
    if (espresso_check_ssl() == TRUE || isset($eway_rapid3_settings['force_ssl_return']) && $eway_rapid3_settings['force_ssl_return'] == 1) {
        ?>
						<li>
							<label for="force_ssl_return">
								<?php 
        _e('Force HTTPS on Return URL', 'event_espresso');
        ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=force_ssl_return"><img src="<?php 
        echo EVENT_ESPRESSO_PLUGINFULLURL;
        ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="force_ssl_return" type="checkbox" value="1" <?php 
        echo $eway_rapid3_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 />
						</li>
						<?php 
    }
    ?>
						<li>
							<label for="display_header">
								<?php 
    _e('Display a Form Header', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=display_header"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="display_header" type="checkbox" value="1" <?php 
    echo $eway_rapid3_settings['display_header'] ? 'checked="checked"' : '';
    ?>
 /></li>
						<li>
							<label for="header">
								<?php 
    _e('Header Text', 'event_espresso');
    ?>
							</label>
							<input type="text" name="header" size="35" value="<?php 
    echo $eway_rapid3_settings['header'];
    ?>
">
						</li>
					</ul>
				</td>
			</tr>
		</table>
		<?php 
    if (espresso_check_ssl() == FALSE) {
        espresso_ssl_required_gateway_message();
    }
    ?>
		<p>
			<input type="hidden" name="update_eway_rapid3" value="update_eway_rapid3">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update Eway Rapid 3.0 Settings', 'event_espresso');
    ?>
" id="save_eway_rapid3_settings" />
		</p>
	</form>
	<div id="eway_rapid3_sandbox_info" style="display:none">
		<h2><?php 
    _e('Eway Rapid 3.0 Sandbox', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('In addition to using the Eway Rapid 3.0 Sandbox feature. The debugging feature will also output the form variables to the payment page, send an email to the admin that contains the all Eway Rapid 3.0 variables.', 'event_espresso');
    ?>
</p>
		<hr />
		<p><?php 
    _e('The Eway Rapid 3.0 Sandbox is a testing environment that is a duplicate of the live Eway Rapid 3.0 site, except that no real money changes hands. The Sandbox allows you to test your entire integration before submitting transactions to the live Eway Rapid 3.0 environment. Create and manage test accounts, and view emails and API credentials for those test accounts.', 'event_espresso');
    ?>
</p>
	</div>
	<div id="currency_info" style="display:none">
		<h2><?php 
    _e('Eway Rapid 3.0 Currency', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('There are currently 3 currencies accepted by Eway Rapid 3.0: GBP (United Kingdom), AUD (Australia), NZD (New Zealand). To change the corrency, change the region in your Eway Rapid 3.0 settings.', 'event_espresso');
    ?>
 </p>
	</div>
	<?php 
}
Example #9
0
function event_espresso_display_megasoft_settings()
{
    $megasoft_settings = get_option('event_espresso_megasoft_settings');
    ?>
	<form method="post" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
">
		<table width="99%" border="0" cellspacing="5" cellpadding="5">
			<tr>
				<td valign="top"><ul>
						<li>
							<label for="megasoft_login_id">
								<?php 
    _e('Affiliation ID', 'event_espresso');
    ?>
							</label>
							<input type="text" name="megasoft_login_id" size="35" value="<?php 
    echo $megasoft_settings['megasoft_login_id'];
    ?>
">
						</li>
						<li>
								<label for="button_url">
	<?php 
    _e('Button Image URL', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=button_image"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<?php 
    $buttonUrl = !array_key_exists('button_url', $megasoft_settings) || empty($megasoft_settings['button_url']) ? '' : $megasoft_settings['button_url'];
    ?>
							<input class="upload_url_input" type="text" name="button_url" id='button_url' size="34" value="<?php 
    echo $buttonUrl;
    ?>
" />
							<a class="upload_image_button" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a> </li>
						<?php 
    _e('Current Button Image', 'event_espresso');
    ?>
						<br />
						<?php 
    php;
    ?>
							<img src='<?php 
    echo $buttonUrl;
    ?>
'/>
						<?php 
    //}
    ?>
						</li>
					</ul></td>
				<td valign="top">
					<ul>
						<li>
							<label for="use_sandbox">
								<?php 
    _e('Account Uses Megasoft\'s development Server', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=megasoft_sandbox"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input id="sandbox_checkbox_aim" name="use_sandbox" type="checkbox" value="1" <?php 
    echo $megasoft_settings['use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
							 </li>
							<li>
							<label for="display_header">
								<?php 
    _e('Display a Form Header', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=display_header"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="display_header" type="checkbox" value="1" <?php 
    echo $megasoft_settings['display_header'] ? 'checked="checked"' : '';
    ?>
 /></li>
							<li>
							<label for="header">
								<?php 
    _e('Header Text', 'event_espresso');
    ?>
							</label>
							<br />
							<input type="text" name="header" size="35" value="<?php 
    echo $megasoft_settings['header'];
    ?>
">
						</li>
					</ul></td>
			</tr>
		</table>
		<?php 
    if (espresso_check_ssl() == FALSE) {
        espresso_ssl_required_gateway_message();
    }
    ?>
		<p>
			<input type="hidden" name="update_megasoft" value="update_megasoft">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update Megasoft Settings', 'event_espresso');
    ?>
" id="save_megasoft_settings" />
		</p>
	</form>
	<?php 
}
Example #10
0
function event_espresso_display_paytrace_settings()
{
    $paytrace_settings = get_option('event_espresso_paytrace_settings');
    ?>
	<form method="post" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
">
		<table width="99%" border="0" cellspacing="5" cellpadding="5">
			<tr>
				<td valign="top">
					<ul>
						<li>
							<label for="paytrace_user_id">
								<?php 
    _e('PayTrace User ID', 'event_espresso');
    ?>
							</label>
							<input type="text" name="paytrace_user_id" size="35" value="<?php 
    echo $paytrace_settings['paytrace_user_id'];
    ?>
">
						</li>
						<li>
							<label for="paytrace_user_pass">
								<?php 
    _e('PayTrace User Password', 'event_espresso');
    ?>
							</label>
							<input type="text" name="paytrace_user_pass" size="35" value="<?php 
    echo $paytrace_settings['paytrace_user_pass'];
    ?>
">
						</li>

					</ul>
				</td>
				<td>
						<ul>
						<?php 
    if (espresso_check_ssl() == TRUE || isset($paytrace_settings['force_ssl_return']) && $paytrace_settings['force_ssl_return'] == 1) {
        ?>
							<li>
							<label for="force_ssl_return">
								<?php 
        _e('Force HTTPS on Return URL', 'event_espresso');
        ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=force_ssl_return"><img src="<?php 
        echo EVENT_ESPRESSO_PLUGINFULLURL;
        ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="force_ssl_return" type="checkbox" value="1" <?php 
        echo $paytrace_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
							<?php 
    }
    ?>
							<li>
							<label for="display_header">
								<?php 
    _e('Display a Form Header', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=display_header"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="display_header" type="checkbox" value="1" <?php 
    echo $paytrace_settings['display_header'] ? 'checked="checked"' : '';
    ?>
 /></li>
							<li>
							<label for="header">
								<?php 
    _e('Header Text', 'event_espresso');
    ?>
							</label>
							<input type="text" name="header" size="35" value="<?php 
    echo $paytrace_settings['header'];
    ?>
">
						</li>
						</ul>
					</td>
			</tr>
		</table>
		<?php 
    if (espresso_check_ssl() == FALSE) {
        espresso_ssl_required_gateway_message();
    }
    ?>
		<p>
			<input type="hidden" name="update_paytrace" value="update_paytrace">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update PayTrace Settings', 'event_espresso');
    ?>
" id="save_paytrace_settings" />
		</p>
	</form>
	<?php 
}
Example #11
0
function event_espresso_display_authnet_aim_settings()
{
    $authnet_aim_settings = get_option('event_espresso_authnet_aim_settings');
    ?>
	<form method="post" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
">
		<table width="99%" border="0" cellspacing="5" cellpadding="5">
			<tr>
				<td valign="top"><ul>
						<li>
							<label for="authnet_aim_login_id">
								<?php 
    _e('Authorize.net AIM Login ID', 'event_espresso');
    ?>
							</label>
							<input type="text" name="authnet_aim_login_id" size="35" value="<?php 
    echo $authnet_aim_settings['authnet_aim_login_id'];
    ?>
">
						</li>
						<li>
							<label for="authnet_aim_transaction_key">
								<?php 
    _e('Authorize.net AIM Transaction Key', 'event_espresso');
    ?>
							</label>
							<input type="text" name="authnet_aim_transaction_key" size="35" value="<?php 
    echo $authnet_aim_settings['authnet_aim_transaction_key'];
    ?>
">
						</li>
					
					</ul></td>
				<td valign="top">
					<ul>
						<li>
							<label for="use_sandbox">
								<?php 
    _e('Account Uses Authorize.net development Server', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=authnet_aim_sandbox"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input id="sandbox_checkbox_aim" name="use_sandbox" type="checkbox" value="1" <?php 
    echo $authnet_aim_settings['use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
							 </li>
						<li>
							<label for="test_transactions">
								<?php 
    _e('Submit a Test Transaction', 'event_espresso');
    ?>
							</label>
							<input name="test_transactions" type="checkbox" value="1" <?php 
    echo $authnet_aim_settings['test_transactions'] ? 'checked="checked"' : '';
    ?>
 />
						</li>
						
						<?php 
    if (espresso_check_ssl() == TRUE || isset($authnet_aim_settings['force_ssl_return']) && $authnet_aim_settings['force_ssl_return'] == 1) {
        ?>
							<li>
							<label for="force_ssl_return">
								<?php 
        _e('Force HTTPS on Return URL', 'event_espresso');
        ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=force_ssl_return"><img src="<?php 
        echo EVENT_ESPRESSO_PLUGINFULLURL;
        ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="force_ssl_return" type="checkbox" value="1" <?php 
        echo $authnet_aim_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
							<?php 
    }
    ?>
							<li>
							<label for="display_header">
								<?php 
    _e('Display a Form Header', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=display_header"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="display_header" type="checkbox" value="1" <?php 
    echo $authnet_aim_settings['display_header'] ? 'checked="checked"' : '';
    ?>
 /></li>
							<li>
							<label for="header">
								<?php 
    _e('Header Text', 'event_espresso');
    ?>
							</label>
							<br />
							<input type="text" name="header" size="35" value="<?php 
    echo $authnet_aim_settings['header'];
    ?>
">
						</li>
					</ul></td>
			</tr>
		</table>
		<?php 
    if (espresso_check_ssl() == FALSE) {
        espresso_ssl_required_gateway_message();
    }
    ?>
		<p>
			<input type="hidden" name="update_authnet_aim" value="update_authnet_aim">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update Authorize.net AIM Settings', 'event_espresso');
    ?>
" id="save_authnet_aim_settings" />
		</p>
	</form>

	<div id="authnet_aim_sandbox" style="display:none">
		<h2><?php 
    _e('Authorize.net AIM Test Mode', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('Test Mode allows you to submit test transactions to the payment gateway. Transactions that are submitted while Test Mode is ON are NOT actually processed. The result of a transaction depends on the card number submitted, and the invoice amount. If you want a transaction to be approved, use one of the following card numbers.', 'event_espresso');
    ?>
</p><p>370000000000002 (<?php 
    _e('American Express', 'event_espresso');
    ?>
)<br />6011000000000012 (<?php 
    _e('Discover', 'event_espresso');
    ?>
)<br />5424000000000015 (<?php 
    _e('Master Card', 'event_espresso');
    ?>
)<br />4007000000027 (<?php 
    _e('Visa', 'event_espresso');
    ?>
)</p>
	</div>
	<?php 
}
Example #12
0
function event_espresso_display_paypal_pro_settings()
{
    $paypal_pro_settings = get_option('event_espresso_paypal_pro_settings');
    ?>
	<form method="post" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
">
		<table width="99%" border="0" cellspacing="5" cellpadding="5">
			<tr>
				<td valign="top">
					<ul>
						<li>
							<label for="paypal_pro_email">
								<?php 
    _e('PayPal Payments Pro Email', 'event_espresso');
    ?>
							</label>
							<input type="text" name="paypal_pro_email" size="35" value="<?php 
    echo $paypal_pro_settings['paypal_pro_email'];
    ?>
">
						</li>
						<li>
							<label for="paypal_api_username">
								<?php 
    _e('PayPal API Username', 'event_espresso');
    ?>
							</label>
							<input type="text" name="paypal_api_username" size="35" value="<?php 
    echo $paypal_pro_settings['paypal_api_username'];
    ?>
">
						</li>
						<li>
							<label for="paypal_api_password">
								<?php 
    _e('PayPal API Password', 'event_espresso');
    ?>
							</label>
							<input type="text" name="paypal_api_password" size="35" value="<?php 
    echo $paypal_pro_settings['paypal_api_password'];
    ?>
">
						</li>
						<li>
							<label for="paypal_api_signature">
								<?php 
    _e('PayPal API Signature', 'event_espresso');
    ?>
							</label>
							<input type="text" name="paypal_api_signature" size="35" value="<?php 
    echo $paypal_pro_settings['paypal_api_signature'];
    ?>
">
							<br />

						</li>
						<li>
							<label for="currency_format">
								<?php 
    _e('Select the Currency for Your Country', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=currency_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<select name="currency_format">
								<option value="<?php 
    echo $paypal_pro_settings['currency_format'];
    ?>
"><?php 
    echo $paypal_pro_settings['currency_format'];
    ?>
</option>
								<option value="USD">
									<?php 
    _e('U.S. Dollars ($)', 'event_espresso');
    ?>
								</option>
								<option value="GBP">
									<?php 
    _e('Pounds Sterling (&pound;)', 'event_espresso');
    ?>
								</option>
								<option value="CAD">
									<?php 
    _e('Canadian Dollars (C $)', 'event_espresso');
    ?>
								</option>
								<option value="AUD">
									<?php 
    _e('Australian Dollars (A $)', 'event_espresso');
    ?>
								</option>
								<option value="BRL">
									<?php 
    _e('Brazilian Real (only for Brazilian users)', 'event_espresso');
    ?>
								</option>
								<option value="CHF">
									<?php 
    _e('Swiss Franc', 'event_espresso');
    ?>
								</option>
								<option value="CZK">
									<?php 
    _e('Czech Koruna', 'event_espresso');
    ?>
								</option>
								<option value="DKK">
									<?php 
    _e('Danish Krone', 'event_espresso');
    ?>
								</option>
								<option value="EUR">
									<?php 
    _e('Euros (&#8364;)', 'event_espresso');
    ?>
								</option>
								<option value="HKD">
									<?php 
    _e('Hong Kong Dollar ($)', 'event_espresso');
    ?>
								</option>
								<option value="HUF">
									<?php 
    _e('Hungarian Forint', 'event_espresso');
    ?>
								</option>
								<option value="ILS">
									<?php 
    _e('Israeli Shekel', 'event_espresso');
    ?>
								</option>
								<option value="JPY">
									<?php 
    _e('Yen (&yen;)', 'event_espresso');
    ?>
								</option>
								<option value="MXN">
									<?php 
    _e('Mexican Peso', 'event_espresso');
    ?>
								</option>
								<option value="MYR">
									<?php 
    _e('Malaysian Ringgits (only for Malaysian users)', 'event_espresso');
    ?>
								</option>
								<option value="NOK">
									<?php 
    _e('Norwegian Krone', 'event_espresso');
    ?>
								</option>
								<option value="NZD">
									<?php 
    _e('New Zealand Dollar ($)', 'event_espresso');
    ?>
								</option>
								<option value="PHP">
									<?php 
    _e('Philippine Pesos', 'event_espresso');
    ?>
								</option>
								<option value="PLN">
									<?php 
    _e('Polish Zloty', 'event_espresso');
    ?>
								</option>
								<option value="SEK">
									<?php 
    _e('Swedish Krona', 'event_espresso');
    ?>
								</option>
								<option value="SGD">
									<?php 
    _e('Singapore Dollar ($)', 'event_espresso');
    ?>
								</option>
								<option value="THB">
									<?php 
    _e('Thai Baht', 'event_espresso');
    ?>
								</option>
								<option value="TRY">
									<?php 
    _e('Turkish Lira (only for Turkish users)', 'event_espresso');
    ?>
								</option>
								<option value="TWD">
									<?php 
    _e('Taiwan New Dollars', 'event_espresso');
    ?>
								</option>
							</select>
							 </li>
					</ul>
				</td>
				<td valign="top">
					<ul>
						<li>
							<label>
								<?php 
    _e('Accepted Credit Cards', 'event_espresso');
    ?>
							</label>
							<?php 
    $checked = 'checked="checked"';
    $paypal_api_credit_cards = explode(",", $paypal_pro_settings['paypal_api_credit_cards']);
    ?>
							<input type="checkbox" name="paypal_api_credit_cards[]" size="35" value="Visa" <?php 
    echo in_array("Visa", $paypal_api_credit_cards) ? $checked : '';
    ?>
 /> Visa
							<input type="checkbox" name="paypal_api_credit_cards[]" size="35" value="MasterCard" <?php 
    echo in_array("MasterCard", $paypal_api_credit_cards) ? $checked : '';
    ?>
 /> Master Card
							<input type="checkbox" name="paypal_api_credit_cards[]" size="35" value="Amex" <?php 
    echo in_array("Amex", $paypal_api_credit_cards) ? $checked : '';
    ?>
 /> Amex
							<input type="checkbox" name="paypal_api_credit_cards[]" size="35" value="Discover" <?php 
    echo in_array("Discover", $paypal_api_credit_cards) ? $checked : '';
    ?>
 /> Discover
						</li>
						<li>
							<label for="paypal_pro_use_sandbox">
								<?php 
    _e('Use PayPal Payments Pro in Sandbox Mode', 'event_espresso');
    ?>
							</label>
							<input name="paypal_pro_use_sandbox" type="checkbox" value="1" <?php 
    echo $paypal_pro_settings['paypal_pro_use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
							<br />
							<?php 
    _e('(Make sure you enter the sandbox credentials above.)', 'event_espresso');
    ?>
						</li>
						<?php 
    if (espresso_check_ssl() == TRUE || isset($paypal_pro_settings['force_ssl_return']) && $paypal_pro_settings['force_ssl_return'] == 1) {
        ?>
						<li>
							<label for="force_ssl_return">
								<?php 
        _e('Force HTTPS on Return URL', 'event_espresso');
        ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=force_ssl_return"><img src="<?php 
        echo EVENT_ESPRESSO_PLUGINFULLURL;
        ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="force_ssl_return" type="checkbox" value="1" <?php 
        echo $paypal_pro_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
							<?php 
    }
    ?>
						<li>
							<label for="display_header">
								<?php 
    _e('Display a Form Header', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=display_header"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="display_header" type="checkbox" value="1" <?php 
    echo $paypal_pro_settings['display_header'] ? 'checked="checked"' : '';
    ?>
 /></li>
						<li>
							<label for="header">
								<?php 
    _e('Header Text', 'event_espresso');
    ?>
							</label>
							<input type="text" name="header" size="35" value="<?php 
    echo $paypal_pro_settings['header'];
    ?>
">
						</li>
					</ul>
				</td>
			</tr>
		</table>
		<?php 
    if (espresso_check_ssl() == FALSE) {
        espresso_ssl_required_gateway_message();
    }
    ?>
		<p>
			<input type="hidden" name="update_paypal_pro" value="update_paypal_pro">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update PayPal Payments Pro Settings', 'event_espresso');
    ?>
" id="save_paypal_settings" />
		</p>
	</form>
	<div id="paypal_pro_sandbox_info" style="display:none">
		<h2><?php 
    _e('PayPal Sandbox', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('In addition to using the PayPal Sandbox feature. The debugging feature will also output the form variables to the payment page, send an email to the admin that contains the all PayPal variables.', 'event_espresso');
    ?>
</p>
		<hr />
		<p><?php 
    _e('The PayPal Sandbox is a testing environment that is a duplicate of the live PayPal site, except that no real money changes hands. The Sandbox allows you to test your entire integration before submitting transactions to the live PayPal environment. Create and manage test accounts, and view emails and API credentials for those test accounts.', 'event_espresso');
    ?>
</p>
	</div>
	<div id="currency_info" style="display:none">
		<h2><?php 
    _e('PayPal Currency', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('PayPal uses 3-character ISO-4217 codes for specifying currencies in fields and variables. </p><p>The default currency code is US Dollars (USD). If you want to require or accept payments in other currencies, select the currency you wish to use. The dropdown lists all currencies that PayPal (currently) supports.', 'event_espresso');
    ?>
 </p>
	</div>
	<?php 
}