Esempio n. 1
0
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 
}
Esempio n. 2
0
function event_espresso_display_mwarrior_settings()
{
    $mwarrior_settings = get_option('event_espresso_mwarrior_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="mwarrior_id">
								<?php 
    _e('MW Merchant UUID', 'event_espresso');
    ?>
							</label>
							<input type="text" name="mwarrior_id" size="35" value="<?php 
    echo $mwarrior_settings['mwarrior_id'];
    ?>
" />
						</li>
						<li>
							<label for="mwarrior_apikey">
								<?php 
    _e('MW API Key', 'event_espresso');
    ?>
							</label>
							<input type="text" name="mwarrior_apikey" size="35" value="<?php 
    echo $mwarrior_settings['mwarrior_apikey'];
    ?>
" />
						</li>
						<li>
							<label for="mwarrior_passphrase">
								<?php 
    _e('MW API Passphrase', 'event_espresso');
    ?>
							</label>
							<input type="text" name="mwarrior_passphrase" size="35" value="<?php 
    echo $mwarrior_settings['mwarrior_passphrase'];
    ?>
" />
						</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="AUD" <?php 
    echo $mwarrior_settings['currency_format'] == "AUD" ? "selected" : "";
    ?>
>
									<?php 
    _e('Australian Dollars (A $)', 'event_espresso');
    ?>
								</option>
								<option value="USD" <?php 
    echo $mwarrior_settings['currency_format'] == "USD" ? "selected" : "";
    ?>
>
									<?php 
    _e('U.S. Dollars ($)', 'event_espresso');
    ?>
								</option>
								<option value="GBP" <?php 
    echo $mwarrior_settings['currency_format'] == "GBP" ? "selected" : "";
    ?>
>
									<?php 
    _e('Pounds Sterling (&pound;)', 'event_espresso');
    ?>
								</option>
								<option value="CAD" <?php 
    echo $mwarrior_settings['currency_format'] == "CAD" ? "selected" : "";
    ?>
>
									<?php 
    _e('Canadian Dollars (C $)', 'event_espresso');
    ?>
								</option>
								<option value="EUR" <?php 
    echo $mwarrior_settings['currency_format'] == "EUR" ? "selected" : "";
    ?>
>
									<?php 
    _e('Euros (&#8364;)', 'event_espresso');
    ?>
								</option>
								<option value="JPY" <?php 
    echo $mwarrior_settings['currency_format'] == "JPY" ? "selected" : "";
    ?>
>
									<?php 
    _e('Yen (&yen;)', 'event_espresso');
    ?>
								</option>
								<option value="NZD" <?php 
    echo $mwarrior_settings['currency_format'] == "NZD" ? "selected" : "";
    ?>
>
									<?php 
    _e('New Zealand Dollar ($)', 'event_espresso');
    ?>
								</option>
								<option value="SGD" <?php 
    echo $mwarrior_settings['currency_format'] == "SGD" ? "selected" : "";
    ?>
>
									<?php 
    _e('Singapore Dollar ($)', 'event_espresso');
    ?>
								</option>
							</select>
							 </li>
						<li>
							<label for="image_url">
								<?php 
    _e('Image URL (logo for payment page)', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=image_url_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input class="upload_url_input" type="text" name="image_url" size="35" value="<?php 
    echo $mwarrior_settings['image_url'];
    ?>
" />
							<a class="upload_image_button" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a> <br />
							<?php 
    _e('(used for your business/personal logo on the Merchant Warrior page)', 'event_espresso');
    ?>
						</li>
					</ul></td>
				<td valign="top"><ul>
						<li>
							<label for="bypass_payment_page">
								<?php 
    _e('Bypass Payment Overview Page', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=bypass_confirmation"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<?php 
    $values = array(array('id' => 'N', 'text' => __('No', 'event_espresso')), array('id' => 'Y', 'text' => __('Yes', 'event_espresso')));
    echo select_input('bypass_payment_page', $values, $mwarrior_settings['bypass_payment_page']);
    ?>
							</li>
						<li>
							<label for="use_sandbox">
								<?php 
    _e('Use the Test Mode for Merchant Warrior', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=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 $mwarrior_settings['use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
						</li>
						<?php 
    if (espresso_check_ssl() == TRUE || isset($mwarrior_settings['force_ssl_return']) && $mwarrior_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 $mwarrior_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
							<?php 
    }
    ?>
						<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>
							<input class="upload_url_input" type="text" name="button_url" size="34" value="<?php 
    echo isset($mwarrior_settings['button_url']) ? $mwarrior_settings['button_url'] : '';
    ?>
" />
							<a class="upload_image_button" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a>  </li>
						<li>
							<label><?php 
    _e('Current Button Image', 'event_espresso');
    ?>
</label>
							<?php 
    echo '<img src="' . $mwarrior_settings['button_url'] . '" />';
    ?>
</li>
					</ul></td>
			</tr>
		</table>
		<p>
			<input type="hidden" name="update_mwarrior" value="update_mwarrior">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update Merchant Warrior Settings', 'event_espresso');
    ?>
" id="save_mwarrior_settings" />
		</p>
	</form>
	<div id="sandbox_info" style="display:none">
		<h2><?php 
    _e('Merchant Warrior 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 Merchant Warrior environment. ', 'event_espresso');
    ?>
</p>
	</div>
	<div id="image_url_info" style="display:none">
		<h2>
			<?php 
    _e('Merchant Warrior Image URL (logo for payment page)', 'event_espresso');
    ?>
		</h2>
		<p>
			<?php 
    _e('The URL of the image displayed as your logo in the header of the Merchant Warrior checkout pages.', 'event_espresso');
    ?>
		</p>
	</div>
	<div id="currency_info" style="display:none">
		<h2><?php 
    _e('Merchant Warrior Currency', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('Merchant Warrior uses 3-character ISO-4217 codes for specifying currencies in fields and variables. </p><p>The default currency code is Australian Dollars (AUD). If you want to accept payments in other currencies, select the currency you wish to use. The dropdown lists all currencies that Merchant Warrior (currently) supports.', 'event_espresso');
    ?>
 </p>
	</div>
	<?php 
}
Esempio n. 3
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 
}
Esempio n. 4
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 
}
Esempio n. 5
0
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 
}
Esempio n. 6
0
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 
}
Esempio n. 7
0
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 
}
Esempio n. 8
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 
}
Esempio n. 9
0
function event_espresso_display_2checkout_settings()
{
    $twocheckout_settings = get_option('event_espresso_2checkout_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="2checkout_id">
	<?php 
    _e('2Checkout ID', 'event_espresso');
    ?>
							</label>
							<input type="text" name="2checkout_id" size="35" value="<?php 
    echo $twocheckout_settings['2checkout_id'];
    ?>
"><br />
	<?php 
    _e('(Typically 87654321)', 'event_espresso');
    ?>
						</li>
						<li>
							<label for="2checkout_username">
	<?php 
    _e('2Checkout Username', 'event_espresso');
    ?>
							</label>
							<input type="text" name="2checkout_username" size="35" value="<?php 
    echo $twocheckout_settings['2checkout_username'];
    ?>
"><br />
	<?php 
    _e('(Typically TestAccount)', 'event_espresso');
    ?>
						</li>
						<li>
							<label for="currency_format">
	<?php 
    _e('Country Currency', '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 $twocheckout_settings['currency_format'];
    ?>
"><?php 
    echo $twocheckout_settings['currency_format'];
    ?>
								</option>
								<option value="ARS">
	<?php 
    _e('Argentina Peso', 'event_espresso');
    ?>
								</option>
								<option value="AUD">
	<?php 
    _e('Australian Dollars (A $)', 'event_espresso');
    ?>
								</option>
								<option value="BRL">
	<?php 
    _e('Brazilian Real', 'event_espresso');
    ?>
								</option>
								<option value="GBP">
	<?php 
    _e('British Pound', 'event_espresso');
    ?>
								</option>
								<option value="CAD">
	<?php 
    _e('Canadian Dollar', '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="INR">
	<?php 
    _e('Indian Rupee (Rs.)', 'event_espresso');
    ?>
								</option>
								<option value="ILS">
	<?php 
    _e('Israeli New Shekel', 'event_espresso');
    ?>
								</option>
								<option value="JPY">
	<?php 
    _e('Yen (&yen;)', 'event_espresso');
    ?>
								</option>
								<option value="LTL">
	<?php 
    _e('Lithuanian Litas', 'event_espresso');
    ?>
								</option>
								<option value="MYR">
	<?php 
    _e('Malaysian Ringgit', 'event_espresso');
    ?>
								</option>
								<option value="MXN">
	<?php 
    _e('Mexican Peso', 'event_espresso');
    ?>
								</option>
								<option value="NZD">
	<?php 
    _e('New Zealand Dollar', 'event_espresso');
    ?>
								</option>
								<option value="NOK">
	<?php 
    _e('Norwegian Krone', 'event_espresso');
    ?>
								</option>
								<option value="PHP">
	<?php 
    _e('Philippine Peso', 'event_espresso');
    ?>
								</option>
								<option value="RON">
	<?php 
    _e('Romanian New Leu', 'event_espresso');
    ?>
								</option>
								<option value="RUB">
	<?php 
    _e('Russian Ruble', 'event_espresso');
    ?>
								</option>
								<option value="SGD">
	<?php 
    _e('Singapore Dollar', 'event_espresso');
    ?>
								</option>
								<option value="ZAR">
	<?php 
    _e('South African Rand', 'event_espresso');
    ?>
								</option>
								<option value="SEK">
	<?php 
    _e('Swedish Krona', 'event_espresso');
    ?>
								</option>
								<option value="CHF">
	<?php 
    _e('Swiss Franc', 'event_espresso');
    ?>
								</option>
								<option value="TRY">
	<?php 
    _e('Turkish Lira', 'event_espresso');
    ?>
								</option>
								<option value="USD">
	<?php 
    _e('U.S. Dollar', 'event_espresso');
    ?>
								</option>
								<option value="AED">
	<?php 
    _e('United Arab Emirates Dirham ', 'event_espresso');
    ?>
								</option>
							</select>
						</li>
					</ul>
				</td>
				<td valign="top">
					<ul>
						<li>
							<label for="bypass_payment_page">
							<?php 
    _e('Bypass Payment Overview Page', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=bypass_confirmation"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<?php 
    $values = array(array('id' => 'N', 'text' => __('No', 'event_espresso')), array('id' => 'Y', 'text' => __('Yes', 'event_espresso')));
    echo select_input('bypass_payment_page', $values, $twocheckout_settings['bypass_payment_page']);
    ?>
						
						</li>
						<li>
							<label for="use_sandbox">
	<?php 
    _e('Turn on Debugging Using the', 'event_espresso');
    ?>
 <a href="https://www.2checkout.com/va/signup/create_activation" target="_blank"><?php 
    _e('2Checkout Sandbox', 'event_espresso');
    ?>
</a> <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=sandbox_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input id ="sandbox_checkbox_2co" name="use_sandbox" type="checkbox" value="1" <?php 
    echo $twocheckout_settings['use_sandbox'] == "1" ? 'checked="checked"' : '';
    ?>
 />
							
						</li>
						<?php 
    if (espresso_check_ssl() == TRUE || isset($twocheckout_settings['force_ssl_return']) && $twocheckout_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 $twocheckout_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
							<?php 
    }
    ?>
						<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>
							
							<input class="upload_url_input" type="text" name="button_url" size="34" value="<?php 
    echo $twocheckout_settings['button_url'];
    ?>
" />
							<a  class="upload_image_button" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a>  </li>
						<li>
							<label><?php 
    _e('Current Button Image', 'event_espresso');
    ?>
</label>
							
	<?php 
    echo '<img src="' . $twocheckout_settings['button_url'] . '" />';
    ?>
</li>
					</ul></td>
			</tr>
		</table>
		<p>
			<input type="hidden" name="update_2checkout" value="update_2checkout">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update 2Checkout Settings', 'event_espresso');
    ?>
" id="save_2checkout_settings" />
		</p>
	</form>
	<div id="sandbox_info" style="display:none">
		<h2><?php 
    _e('2Checkout Sandbox', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('In addition to using the 2Checkout 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 2Checkout variables.', 'event_espresso');
    ?>
</p>
		<hr />
		<p><?php 
    _e('The 2Checkout Sandbox is a testing environment that is a duplicate of the live 2Checkout site, except that no real money changes hands. The Sandbox allows you to test your entire integration before submitting transactions to the live 2Checkout 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('2Checkout Currency', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('2Checkout 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 2Checkout (currently) supports.', 'event_espresso');
    ?>
 </p>
	</div>

	
	<?php 
}
Esempio n. 10
0
function event_espresso_display_authnet_settings()
{
    global $org_options;
    $authnet_settings = get_option('event_espresso_authnet_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_login_id">
								<?php 
    _e('Authorize.net Login ID', 'event_espresso');
    ?>
							</label>
							<br />
							<input type="text" name="authnet_login_id" size="35" value="<?php 
    echo $authnet_settings['authnet_login_id'];
    ?>
">
						</li>
						<li>
							<label for="authnet_transaction_key">
								<?php 
    _e('Authorize.net Transaction Key', 'event_espresso');
    ?>
							</label>
							<br />
							<input type="text" name="authnet_transaction_key" size="35" value="<?php 
    echo $authnet_settings['authnet_transaction_key'];
    ?>
">
						</li>
						<li>
							<label for="image_url">
								<?php 
    _e('Image URL', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=authnet_image_url_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input class="upload_url_input" type="text" name="image_url" size="35" value="<?php 
    echo $authnet_settings['image_url'];
    ?>
" />
							<a class="upload_image_button" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a>
							<br />
							<?php 
    _e('(used for your business/personal logo on the Authorize.net SIM payment page)', 'event_espresso');
    ?>
						</li>
						<li>
							<label><?php 
    _e('Relay Response URL', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=relay_response"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a></label> 
							<span class="display-path" style="background-color: rgb(255, 251, 204); border:#999 solid 1px; padding:2px;"><?php 
    echo home_url() . '/?page_id=' . $org_options['return_url'];
    ?>
</span>
						</li>
					</ul>
				</td>
				<td valign="top">
					<ul>
						<li>
							<label for="use_sandbox">
								<?php 
    _e('Account Uses Authorize.net\'s Development Server', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=authnet_sandbox"><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 $authnet_settings['use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
						</li> 
						<li>
							<label for="test_transactions">
								<?php 
    _e('Submit a Test Transaction', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=authnet_sandbox"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="test_transactions" type="checkbox" value="1" <?php 
    echo $authnet_settings['test_transactions'] ? 'checked="checked"' : '';
    ?>
 />
						</li>
						<li>
							<label for="use_md5">
								<?php 
    _e('Use md5 check to secure payment response', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=authnet_md5"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="use_md5" type="checkbox" value="1" <?php 
    echo isset($authnet_settings['use_md5']) && $authnet_settings['use_md5'] ? 'checked="checked"' : '';
    ?>
 />
						</li>
						<li>
							<label for="authnet_md5_value">
								<?php 
    _e('Authorize.net MD5 Hash value', 'event_espresso');
    ?>
							</label>
							<br />
							<input type="text" name="authnet_md5_value" size="35" value="<?php 
    echo $authnet_settings['authnet_md5_value'];
    ?>
">
						</li>
						<?php 
    if (espresso_check_ssl() == TRUE || isset($authnet_settings['force_ssl_return']) && $authnet_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_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 />
						</li>
						<?php 
    }
    ?>
						<li>
							<label for="bypass_payment_page">
								<?php 
    _e('Bypass Payment Overview Page', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=bypass_confirmation"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<?php 
    $values = array(array('id' => 'Y', 'text' => __('Yes', 'event_espresso')), array('id' => 'N', 'text' => __('No', 'event_espresso')));
    echo select_input('bypass_payment_page', $values, $authnet_settings['bypass_payment_page']);
    ?>
						</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>
							<input class="upload_url_input" type="text" name="button_url" size="35" value="<?php 
    echo $authnet_settings['button_url'];
    ?>
" />
							<a  class="upload_image_button" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a>
						</li>
						<li>
							<label><?php 
    _e('Current Button Image', 'event_espresso');
    ?>
</label>
							<?php 
    echo $authnet_settings['button_url'] == '' ? '' : '<img src="' . $authnet_settings['button_url'] . '" />';
    ?>
						</li>
					</ul>
				</td>
			</tr>
		</table>
		<p>
			<input type="hidden" name="update_authnet" value="update_authnet">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update Authorize.net SIM Settings', 'event_espresso');
    ?>
" id="save_authnet_settings" />
		</p>
	</form>
	<div id="relay_response" style="display:none">
		<h2><?php 
    _e('Relay Response', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('This shows the specific the URL to which the gateway should return the relay response for a transaction. This the page should be set in your Authorize.net account. Login to Authorize.net, goto Account > Response/Receipt URLs > Add URL and enter the following URL.', 'event_espresso');
    ?>
</p>
		<p><strong><?php 
    _e('Relay Response URL:', 'event_espresso');
    ?>
</strong> <?php 
    echo home_url() . '/?page_id=' . $org_options['return_url'];
    ?>
<br />
			<span style="color:red;"><?php 
    _e('Note:', 'event_espresso');
    ?>
</span> <?php 
    _e('This URL can be changed in the "Organization Settings" page.', 'event_espresso');
    ?>
</p>
		<p><?php 
    _e('For complete information on configuring relay response, please refer to', 'event_espresso');
    ?>
 <a href="https://account.authorize.net/help/Merchant_Interface_RoboHelp_Project.htm#Miscellaneous/Reference.htm%3E%3Epan=2"><?php 
    _e('Reference &amp; User Guides', 'event_espresso');
    ?>
</a>.</p>
	</div>
	<div id="authnet_image_url_info" style="display:none">
		<h2>
			<?php 
    _e('Authorize.net SIM Image URL (logo for payment page)', 'event_espresso');
    ?>
		</h2>
		<p>
			<?php 
    _e('The URL of the image displayed as your logo in the header of the Authorize.net checkout pages.', 'event_espresso');
    ?>
		</p>
	</div>
	<div id="authnet_sandbox" style="display:none">
		<h2><?php 
    _e('Authorize.net 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>
	<div id="authnet_md5" style="display:none">
		<h2><?php 
    _e('Authorize.net MD5 Secure Response', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('Authorize.net allows you to secure the reponse from their sever to Event Espresso.', 'event_espresso');
    ?>
</p>
		
		<p><?php 
    _e('To configure an MD5 Hash value for your account:', 'event_espresso');
    ?>
		<ol>
			<li><?php 
    _e('Log on to the Merchant Interface at ', 'event_espresso');
    ?>
<a href="https://secure.authorize.net">https://secure.authorize.net</a></li>
			<li><?php 
    _e('Click Settings under Account in the main menu on the left', 'event_espresso');
    ?>
</li>
			<li><?php 
    _e('Click MD5-Hash in the Security Settings section', 'event_espresso');
    ?>
</li>
			<li><?php 
    _e('Enter any random value to use for your MD5 Hash Value. Enter the value again to confirm', 'event_espresso');
    ?>
</li>
			<li><?php 
    _e('Click Submit', 'event_espresso');
    ?>
</li>
		</ol>
		</p>
		
		<p><strong><?php 
    _e('Warning:', 'event_espresso');
    ?>
</strong><br />
<strong><?php 
    _e('MAY CAUSE LEGITAMATE PAYMENTS TO BE MARKED "INCOMPLETE"', 'event_espresso');
    ?>
</strong><br />
			<?php 
    _e('This may be a problem, such as a mismatch, between the authorize.net and Event Espresso MD5 Hash value settings.', 'event_espresso');
    ?>
</p>
	</div>
	<?php 
}
Esempio n. 11
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 
}
Esempio n. 12
0
function event_espresso_display_paypal_settings()
{
    $paypal_settings = get_option('event_espresso_paypal_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_id">
								<?php 
    _e('PayPal ID', 'event_espresso');
    ?>
							</label>
							<input type="text" name="paypal_id" size="35" value="<?php 
    echo $paypal_settings['paypal_id'];
    ?>
">
							<br />
							<?php 
    _e('(The email address you use when you log in to your account at PayPal.com)', 'event_espresso');
    ?>
						</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_settings['currency_format'];
    ?>
"><?php 
    echo $paypal_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>
						
						<li>
							<label for="image_url">
								<?php 
    _e('Image URL (logo for payment page)', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=image_url_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input type="text" name="image_url" size="35" value="<?php 
    echo $paypal_settings['image_url'];
    ?>
" />
							<a href="media-upload.php?post_id=0&amp;type=image&amp;TB_iframe=true&amp;width=640&amp;height=580&amp;rel=image_url" id="add_image" class="thickbox" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a><br />
							<?php 
    _e('(used for your business/personal logo on the PayPal page)', 'event_espresso');
    ?>
						</li>
					</ul></td>
				<td valign="top"><ul><li>
						<label for="bypass_payment_page">
							<?php 
    _e('Bypass Payment Overview Page', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=bypass_confirmation"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
						</label>
						<?php 
    $values = array(array('id' => 'N', 'text' => __('No', 'event_espresso')), array('id' => 'Y', 'text' => __('Yes', 'event_espresso')));
    echo select_input('bypass_payment_page', $values, $paypal_settings['bypass_payment_page']);
    ?>
						</li>
						<li>
							<label for="no_shipping">
								<?php 
    _e('Shipping Address Options', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=no_shipping"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<?php 
    $values = array(array('id' => '1', 'text' => __('Do not prompt for an address', 'event_espresso')), array('id' => '0', 'text' => __('Prompt for an address, but do not require one', 'event_espresso')), array('id' => '2', 'text' => __('Prompt for an address, and require one', 'event_espresso')));
    echo select_input('no_shipping', $values, $paypal_settings['no_shipping']);
    ?>
							</li>
						<li>
							<label for="use_sandbox">
								<?php 
    _e('Use the Debugging Feature and the', 'event_espresso');
    ?>
 <a href="https://developer.paypal.com/devscr?cmd=_home||https://cms.paypal.com/us/cgi-bin/?&amp;cmd=_render-content&amp;content_ID=developer/howto_testing_sandbox||https://cms.paypal.com/us/cgi-bin/?&amp;cmd=_render-content&amp;content_ID=developer/howto_testing_sandbox_get_started" title="PayPal Sandbox Login||Sandbox Tutorial||Getting Started with PayPal Sandbox" target="_blank"><?php 
    _e('PayPal Sandbox', 'event_espresso');
    ?>
</a><a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=paypal_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 $paypal_settings['use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
							<br />
						</li>
						<?php 
    if (espresso_check_ssl() == TRUE || isset($paypal_settings['force_ssl_return']) && $paypal_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_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
							<?php 
    }
    ?>
						
						<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>
							<input type="text" name="button_url" size="34" value="<?php 
    echo $paypal_settings['button_url'];
    ?>
" />
							<a href="media-upload.php?post_id=0&amp;type=image&amp;TB_iframe=true&amp;width=640&amp;height=580&amp;rel=button_url" id="add_image" class="thickbox" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a>  </li><li>
							<label><?php 
    _e('Current Button Image:', 'event_espresso');
    ?>
</label>
							<?php 
    echo '<img src="' . $paypal_settings['button_url'] . '" />';
    ?>
</li>
					</ul></td>
			</tr>
		</table>
		<p><strong style="color:#F00"><?php 
    _e('Attention!', 'event_espresso');
    ?>
</strong><br /><?php 
    _e('For PayPal IPN to work, you need a Business or Premier account.', 'event_espresso');
    ?>
		</p>
			<input type="hidden" name="update_paypal" value="update_paypal">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update PayPal Settings', 'event_espresso');
    ?>
" id="save_paypal_settings" />
		</p>
	</form>
	<div id="paypal_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="image_url_info" style="display:none">
		<h2>
			<?php 
    _e('PayPal Image URL (logo for payment page)', 'event_espresso');
    ?>
		</h2>
		<p>
			<?php 
    _e('The URL of the 150x50-pixel image displayed as your logo in the upper left corner of the PayPal checkout pages.', 'event_espresso');
    ?>
		</p>
		<p>
			<?php 
    _e('Default - Your business name, if you have a Business account, or your email address, if you have Premier or Personal account.', '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>
	<div id="no_shipping" style="display:none">
		<h2><?php 
    _e('Shipping Address', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('By default, PayPal will display shipping address information on the PayPal payment screen. If you plan on shipping items to a registrant (shirts, invoices, etc) then use this option. Otherwise it should not be used, as it will require a shipping address when someone registers for an event.', 'event_espresso');
    ?>
</p>
	</div>
	<?php 
}
Esempio n. 13
0
function event_espresso_display_google_checkout_settings()
{
    $google_checkout_settings = get_option('event_espresso_google_checkout_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>
							<a class='thickbox' href='#TB_inline?height=300&width=400&inlineId=google_wallet_settings'><?php 
    _e("IMPORTANT: Please read these instructions on configuring Google Wallet", "event_espresso");
    ?>
</a>
						</li>
						<li>
							<label for="google_checkout_id">
								<?php 
    _e('Google Merchant ID', 'event_espresso');
    ?>
							</label>
							<input type="text" name="google_checkout_id" size="35" value="<?php 
    echo $google_checkout_settings['google_checkout_id'];
    ?>
">
							<br />
						</li>
						<li>
							<label for="google_checkout_key">
								<?php 
    _e('Google Merchant Key', 'event_espresso');
    ?>
							</label>
							<input type="text" name="google_checkout_key" size="35" value="<?php 
    echo $google_checkout_settings['google_checkout_key'];
    ?>
">
							<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 $google_checkout_settings['currency_format'];
    ?>
"><?php 
    echo $google_checkout_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 for="use_sandbox">
								<?php 
    _e('Use the Debugging Feature and the', 'event_espresso');
    ?>
 <?php 
    _e('Google Wallet Sandbox', 'event_espresso');
    ?>
							</label>
							<input name="use_sandbox" type="checkbox" value="1" <?php 
    echo $google_checkout_settings['use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
							<br />
						</li>
						<?php 
    if (espresso_check_ssl() == TRUE || isset($google_checkout_settings['force_ssl_return']) && $google_checkout_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 $google_checkout_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
							<?php 
    }
    ?>
						
						<li>
							<label for="default_payment_status">
								<?php 
    _e("Default Payment Status on Receipt of 'New Order Notification'", 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=default_payment_status"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a><br/>
								<?php 
    $defaultPaymentStatuses = array(array('id' => 'Pending', 'text' => __("Pending", "event_espresso")), array('id' => 'Complete', 'text' => __("Complete", "event_espresso")));
    ?>
								
								<?php 
    echo select_input('default_payment_status', $defaultPaymentStatuses, $google_checkout_settings['default_payment_status']);
    ?>
							</label>
						<li>
						</li>
						
					</ul></td>
			</tr>
		</table>
		
		<p>
			<input type="hidden" name="update_google_checkout" value="update_google_checkout">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update Google Checkout Settings', 'event_espresso');
    ?>
" id="save_google_checkout_settings" />
		</p>
	</form>
	<div id="google_checkout_sandbox_info" style="display:none">
		<h2><?php 
    _e('Google Checkout Sandbox', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('In addition to using the Google Checkout 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 Google Checkout variables.', 'event_espresso');
    ?>
</p>
		<hr />
		<p><?php 
    _e('The Google Checkout Sandbox is a testing environment that is a duplicate of the live Google Checkout site, except that no real money changes hands. The Sandbox allows you to test your entire integration before submitting transactions to the live Google Checkout 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('Google Wallet Currency', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('Google Wallet 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 Google Wallet (currently) supports.', 'event_espresso');
    ?>
 </p>
	</div>
<div id='google_wallet_settings' style='display:none'>
	<h2><?php 
    _e("Google Wallet Settings Instructions", "event_espresso");
    ?>
</h2>
	<p>
		<?php 
    _e("Setup your Google Wallet merchant acccount <a href='http://checkout.google.com/sell'>here</a>.");
    ?>
	</p>
	<p>
		<?php 
    _e("You will find your 'Merchant ID' and 'Merchant Key' in Google Wallet's management area, \n\t\t\tby clicking \"Settings\", then \"Integration\". You must enter them into Event Espresso's 'Google Wallet (Checkout) payment settings.", "event_espresso");
    ?>
	</p>
	<p>
		<?php 
    printf(__("On the Google Wallet (Checkout) Settings Integration page, set the 'API callback URL' in Google Checkout to the following:%s (a page on your website with an added GET query parameter of 'type=google_checkout'). Leave the \"Callback Contents\" as \"Notification Serial Number\".", "event_espresso"), home_url() . "?type=google_checkout");
    ?>
		
	</p>
	<p>
		<?php 
    _e("Set the API version to 2.5, and check the box under \"Notiication Filtering\" stating \"   \tI am integrating using the Order Processing Tutorial documentation and will receive and handle only the following notifications: new-order-notification, authorization-amount-notification, order-state-change-notification.\".", "event_espresso");
    ?>
	</p>
	<p>
		<?php 
    _e("Lastly, don't forget to save your settings in both Google Wallet (Checkout) AND Event Espresso's payment settings page.", "event_espresso");
    ?>
	</p>
</div>
<div id='default_payment_status' style='display:none'>
	<h2><?php 
    _e("Default Payment Status on 'New Order Notificaiton'", "event_espresso");
    ?>
</h2>
	<p>
		<?php 
    _e(sprintf("First, some background information: When a registrant completes the payment process in Google Wallet (Checkout), we receive a 'New Order Notification.' This notification\n\t\t\tdoes not mean the payment has yet been approved. Google Wallet (Checkout) will send us another notification (a 'Authorization Amount Notification') (usually within 15 minutes), \n\t\t\tindicating the payment has been approved. See <a target='_blank' href='%s'>this google documentation</a> for more info.", "https://developers.google.com/checkout/developer/Google_Checkout_Custom_Processing_How_To#store_db"), "event_espresso");
    ?>
		
	</p>
	<p>
		<?php 
    _e("Before the receipt of that second notification (indicating we can now charge the purchase to their account), you may decide\n\t\t\tto either mark their transaction as 'pending' or 'complete' in Event Espresso. 'Pending' is more technically correct (because Google has not yet sent the \n\t\t\t'Authorization Amount Notification', and thus the payment could still be declined), but may confuse your customers into attempting to pay again. 'Complete'\n\t\t\twill probably produce more happier customers, except if their payment is rejected (in which you'll need to explain this all to them).", "event_espresso");
    ?>
	</p>
</div>
	<?php 
}
Esempio n. 14
0
function event_espresso_display_psigate_settings()
{
    $psigate_settings = get_option('event_espresso_psigate_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="psigate_id_can">
								<?php 
    _e('Canadian PSiGate Store Key (Merchant ID)', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=store_key_id"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input type="text" name="psigate_id_can" size="35" value="<?php 
    echo $psigate_settings['psigate_id_can'];
    ?>
">
							<br />
							<?php 
    _e('Eg, NEWSETUPjWbtSQMxaXr400243. NOT the same as your StoreID', 'event_espresso');
    ?>
						</li>
						<li>
							<label for="psigate_id_us">
								<?php 
    _e('US PSiGate Store Key (Merchant ID)', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=store_key_id"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input type="text" name="psigate_id_us" size="35" value="<?php 
    echo $psigate_settings['psigate_id_us'];
    ?>
">
							<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 $psigate_settings['currency_format'];
    ?>
"><?php 
    echo $psigate_settings['currency_format'];
    ?>
</option>
								<option value="USD" >
									<?php 
    _e('U.S. Dollars ($)', 'event_espresso');
    ?>
								</option>
								<option value="CAD">
									<?php 
    _e('Canadian Dollars (C $)', 'event_espresso');
    ?>
								</option>
							</select>
						</li>
						<li>
							<label for="use_sandbox">
								<?php 
    _e('Use the Development Site', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=paypal_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 $psigate_settings['use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
							<br />
						</li>
					</ul></td>
				<td valign="top"><ul><li>
						<label for="bypass_payment_page">
							<?php 
    _e('Bypass Payment Overview Page', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=bypass_confirmation"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
						</label>
						<?php 
    $values = array(array('id' => 'N', 'text' => __('No', 'event_espresso')), array('id' => 'Y', 'text' => __('Yes', 'event_espresso')));
    echo select_input('bypass_payment_page', $values, $psigate_settings['bypass_payment_page']);
    ?>
						</li>
						
						<?php 
    if (espresso_check_ssl() == TRUE || isset($psigate_settings['force_ssl_return']) && $psigate_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 $psigate_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
							<?php 
    }
    ?>
						
						<li>
							<label for="button_url">
								<?php 
    _e('Button Image URL', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=psigate_button_image"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input type="text" name="button_url" size="34" value="<?php 
    echo $psigate_settings['button_url'];
    ?>
" />
							<a href="media-upload.php?post_id=0&amp;type=image&amp;TB_iframe=true&amp;width=640&amp;height=580&amp;rel=button_url" id="add_image" class="thickbox" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a>  </li><li>
							<label><?php 
    _e('Current Button Image:', 'event_espresso');
    ?>
</label>
							<?php 
    echo '<img src="' . $psigate_settings['button_url'] . '" />';
    ?>
</li>
					</ul></td>
			</tr>
		</table>
		</p>
			<input type="hidden" name="update_psigate" value="update_psigate">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update PSiGate Settings', 'event_espresso');
    ?>
" id="save_psigate_settings" />
		</p>
	</form>
	<div id="store_key_id" style="display:none">
		<h2><?php 
    _e('PSiGate Store Key', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e("To find and setup your PsiGate Store Key,", 'event_espresso');
    ?>
</p>
		<ol>
			<li>
				<?php 
    echo sprintf(__("login to %s psigate.com %s", 'event_espresso'), "<a href='https://secure.psigate.com/'>", "</a>");
    ?>
			</li>
			<li>
				<?php 
    _e("Click on 'View Reports' for your Store", 'event_espresso');
    ?>
			</li>
			<li>
				<?php 
    _e("Click 'HTML Capture Settings'", "event_espresso");
    ?>
			</li>
			<li>
				<?php 
    _e("Set 'Enable HTML Messenger' to 'Yes' and click 'Save'", 'event_espresso');
    ?>
			</li>
			<li>
				<?php 
    _e("After enabling the HTML Messenger, and saving your settings, copy the Store Key and paste it into your Event Espresso payment settings", 'event_espresso');
    ?>
			</li>
		</ol>
		<h2><?php 
    _e("Why is there a Canadian and US PSiGate Store Key?", 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('If you will be accepting payments only in USD, you only need to enter a "US PSiGate Store Key". Conversely, 
			if you are only accepting payments in CAD, you need only enter a "Canadian PsiGate Store Key".', 'event_espresso');
    ?>
</p>
		<p><?php 
    _e('If, however, some events will be accepting US dollars and others will be accepting Canadian dollars, you will need 2
			PSiGate accounts: one accepting CAD and the other for USD. Enter the store keys for each into Event Espresso in the appropriate fields ("Canadian PSiGate Store Key" and "US PSiGate Store Key").');
    ?>
</p>
		<p><?php 
    _e("Then, select a default currency. You may then specify an event as using the other currency by adding an 'Event Meta' called 'event_currency', and give it a value of either 'USD' or 'CAD'.", 'event_espresso');
    ?>
</p>
		<p><?php 
    _e("When customers go to pay for an event, if the currency is in USD, your US Store Key will be used. If the currency for the event is CAD, the Canadian Store Key will be used.", 'event_espresso');
    ?>
		
	</div>
	<div id="currency_info" style="display:none">
		<h2><?php 
    _e('PSiGate Currency', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('PSiGate 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 PSiGate (currently) supports.', 'event_espresso');
    ?>
 </p>
	</div>
	<div id="no_shipping" style="display:none">
		<h2><?php 
    _e('Shipping Address', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('By default, PSiGate will display shipping address information on the PSiGate payment screen. If you plan on shipping items to a registrant (shirts, invoices, etc) then use this option. Otherwise it should not be used, as it will require a shipping address when someone registers for an event.', 'event_espresso');
    ?>
</p>
	</div>
	<div id="psigate_button_image" style="display:none">
		<h2><?php 
    _e('Button Image URL', 'event_espresso');
    ?>
</h2>
		<p><?php 
    echo sprintf(__('You may specify the URL of any image you want to be displayed to users when selecting their payment gateway.
			By default, the PSiGate icon is selected. We also have a merchant accounts image available at %s', 'event_espresso'), EVENT_ESPRESSO_PLUGINFULLURL . "gateways/psigate/merchant-accounts-logo.gif");
    ?>
</p>
	</div>
	<?php 
}
Esempio n. 15
0
function event_espresso_display_quickpay_settings()
{
    $quickpay_settings = get_option('event_espresso_quickpay_settings');
    $qp_settings = array('quickpay_merchantid', 'quickpay_md5secret', 'quickpay_language', 'quickpay_autocapture', 'quickpay_currency', 'use_sandbox', 'force_ssl_return', 'button_url');
    foreach ($qp_settings as $qp_setting) {
        $quickpay_settings[$qp_setting] = isset($quickpay_settings[$qp_setting]) ? $quickpay_settings[$qp_setting] : '';
    }
    ?>
	<form method="post" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
" class="espresso_form">
		<table width="99%" border="0" cellspacing="5" cellpadding="5">
			<tr>
				<td valign="top">
					<ul>
						<li>
							<label for="quickpay_merchantid">
								<?php 
    _e('QuickPay ID', 'event_espresso');
    ?>
							</label>
							<input type="text" name="quickpay_merchantid" size="35" value="<?php 
    echo $quickpay_settings['quickpay_merchantid'];
    ?>
">
						</li>
						<li>
							<label for="quickpay_md5secret">
								<?php 
    _e('QuickPay md5 Secret', 'event_espresso');
    ?>
							</label>
							<input type="text" name="quickpay_md5secret" size="35" value="<?php 
    echo $quickpay_settings['quickpay_md5secret'];
    ?>
">
						</li>
						<li>
							<label for="quickpay_language"><?php 
    _e('Payment Window Language', 'event_espresso');
    ?>
</label>
							<select name='quickpay_language'>
								<option value="<?php 
    echo $quickpay_settings['quickpay_language'];
    ?>
" selected="selected" ><?php 
    echo $quickpay_settings['quickpay_language'];
    ?>
</option>
								<option value='da'>da - Danish</option>
								<option value='de'>de - German</option>
								<option value='en'>en - English</option>
								<option value='fr'>fr - French</option>
								<option value='it'>it - Italian</option>
								<option value='no'>no - Norwegian</option>
								<option value='nl'>nl - Dutch</option>
								<option value='pl'>pl - Polish</option>
								<option value='se'>se - Swedish</option>
							</select><br />
							<?php 
    _e('(Choose which language the transaction window will use.)', 'event_espresso');
    ?>
						</li>
						<li>
							<label for="quickpay_autocapture">Automatic capture</label>
							<ul>
								<li>
									<label class="radio-btn-lbl">										
										<input name="quickpay_autocapture" value="0"<?php 
    if ($quickpay_settings['quickpay_autocapture'] == '0') {
        ?>
 checked="checked"<?php 
    }
    ?>
 type="RADIO">
										<span><?php 
    _e('Off', 'event_espresso');
    ?>
</span>										
									</label>
								</li>
								<li>
									<label class="radio-btn-lbl">
										<input name="quickpay_autocapture" value="1"<?php 
    if ($quickpay_settings['quickpay_autocapture'] == '1') {
        ?>
 checked="checked"<?php 
    }
    ?>
 type="RADIO">
										<span><?php 
    _e('On', 'event_espresso');
    ?>
</span>										
									</label>
								</li>
							</ul>

							<?php 
    _e('(Automatic Capture means you will automatically deduct the amount from the customer.)', 'event_espresso');
    ?>
						</li>
						<li>
							<label for="quickpay_currency"><?php 
    _e('Currency', 'event_espresso');
    ?>
</label>
							<ul>
								<li>
									<label class="radio-btn-lbl">
										<input name="quickpay_currency" value="EUR" <?php 
    if ($quickpay_settings['quickpay_currency'] == 'EUR') {
        ?>
checked="checked"<?php 
    }
    ?>
 type="RADIO">
										<span>EUR</span>										
									</label>
								</li>
								<li>
									<label class="radio-btn-lbl">
										<input name="quickpay_currency" value="DKK" <?php 
    if ($quickpay_settings['quickpay_currency'] == 'DKK') {
        ?>
checked="checked"<?php 
    }
    ?>
 type="RADIO">
										<span>DKK</span>										
									</label>
								</li>
								<li>
									<label class="radio-btn-lbl">
										<input name="quickpay_currency" value="USD" <?php 
    if ($quickpay_settings['quickpay_currency'] == 'USD') {
        ?>
checked="checked"<?php 
    }
    ?>
 type="RADIO">
										<span>USD</span>										
									</label>
								</li>
							</ul>
						</li>
					</ul>
				</td>
				<td valign="top">
					<ul>
						<li>
							<label for="use_sandbox">
								<?php 
    _e('Turn on Debugging Using the Sandbox', 'event_espresso');
    ?>
							</label>
							<input name="use_sandbox" type="checkbox" value="1" <?php 
    echo $quickpay_settings['use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
						</li>
						<?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 $quickpay_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
							<?php 
    }
    ?>
						<li>
							<label for="button_url">
								<?php 
    _e('Button Image URL', 'event_espresso');
    ?>
 
							</label>
							<?php 
    $quickpay_settings['button_url'] = $quickpay_settings['button_url'] == '' ? EVENT_ESPRESSO_PLUGINFULLURL . 'gateways/pay-by-credit-card.png' : $quickpay_settings['button_url'];
    ?>
							<input type="text" name="button_url" size="34" value="<?php 
    echo $quickpay_settings['button_url'];
    ?>
" />
							<a href="media-upload.php?post_id=0&amp;type=image&amp;TB_iframe=true&amp;width=640&amp;height=580&amp;rel=button_url" id="add_image" class="thickbox" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a></li>
						<li>
							<?php 
    _e('Current Button Image', 'event_espresso');
    ?>
							<br />
							<img src="<?php 
    echo $quickpay_settings['button_url'];
    ?>
" />
						</li>
					</ul>
				</td>
			</tr>
		</table>
		<p>
			<input type="hidden" name="update_quickpay" value="update_quickpay">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update QuickPay Settings', 'event_espresso');
    ?>
" id="save_quickpay_settings" />
		</p>
	</form>
	<?php 
}
Esempio n. 16
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 
}
Esempio n. 17
0
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 
}
Esempio n. 18
0
function event_espresso_display_wepay_settings($need_to_reauthorize)
{
    $wepay_settings = get_option('event_espresso_wepay_settings');
    $uri = $_SERVER['REQUEST_URI'];
    $pos = strpos($uri, '&activate_wepay=true');
    if ($pos) {
        $uri = substr("{$uri}", 0, $pos);
    }
    $pos = strpos($uri, '&code');
    if ($pos) {
        $uri = substr("{$uri}", 0, $pos);
    }
    _e('Instructions:');
    ?>
	&nbsp;<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=instructions"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
	<form method="post" action="<?php 
    echo $uri;
    ?>
#wepay">
		<table width="99%" border="0" cellspacing="5" cellpadding="5">
			<tr>
				<td valign="top"><ul>
						<li>
							<label for="wepay_client_id">
	<?php 
    _e('WePay Client ID', 'event_espresso');
    ?>
							</label>
							<input type="text" name="wepay_client_id" size="35" value="<?php 
    echo $wepay_settings['wepay_client_id'];
    ?>
" />
						</li>
						<li>
							<label for="wepay_client_secret">
	<?php 
    _e('WePay Client Secret', 'event_espresso');
    ?>
							</label>
							<input type="text" name="wepay_client_secret" size="35" value="<?php 
    echo $wepay_settings['wepay_client_secret'];
    ?>
" />
						</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>
							<input type="text" name="button_url" size="34" value="<?php 
    echo $wepay_settings['button_url'] == '' ? '' : $wepay_settings['button_url'];
    ?>
" />
							<a href="media-upload.php?post_id=0&amp;type=image&amp;TB_iframe=true&amp;width=640&amp;height=580&amp;rel=button_url" id="add_image" class="thickbox" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a> </li>
						<li>
							<label for="account_id">
							<?php 
    _e('Select the Account to Use', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=select_account"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<?php 
    echo select_input('account_id', $wepay_settings['available_accounts'], $wepay_settings['account_id']);
    ?>
							</li>
					</ul></td>
				<td valign="top">
					<ul>
						<li>
							<label for="bypass_payment_page">
							<?php 
    _e('Bypass Payment Overview Page', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=bypass_confirmation"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<?php 
    $values = array(array('id' => 'N', 'text' => __('No', 'event_espresso')), array('id' => 'Y', 'text' => __('Yes', 'event_espresso')));
    echo select_input('bypass_payment_page', $values, $wepay_settings['bypass_payment_page']);
    ?>
							</li>
						<li>
							<label for="use_sandbox">
	<?php 
    _e('Turn on Debugging Using the', 'event_espresso');
    ?>
 <a href="https://developer.wepay.com/devscr?cmd=_home||https://cms.wepay.com/us/cgi-bin/?&amp;cmd=_render-content&amp;content_ID=developer/howto_testing_sandbox||https://cms.wepay.com/us/cgi-bin/?&amp;cmd=_render-content&amp;content_ID=developer/howto_testing_sandbox_get_started" title="WePay Sandbox Login||Sandbox Tutorial||Getting Started with WePay Sandbox" target="_blank"><?php 
    _e('WePay Sandbox', 'event_espresso');
    ?>
</a> <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=wepay_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 $wepay_settings['use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
							<br />
						</li>
						<?php 
    if (espresso_check_ssl() == TRUE || isset($wepay_settings['force_ssl_return']) && $wepay_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 $wepay_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
							<?php 
    }
    ?>
						<li>
							<?php 
    _e('Current Button Image', 'event_espresso');
    ?>
							<br />
	<?php 
    echo $wepay_settings['button_url'] == '' ? '<img src="' . $button_url . '" />' : '<img src="' . $wepay_settings['button_url'] . '" />';
    ?>
</li>
					</ul>
				</td>
			</tr>
		</table>
		<p>
			<input type="hidden" name="update_wepay" value="update_wepay">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update WePay Settings', 'event_espresso');
    ?>
" id="save_wepay_settings" />
		</p>
	</form>
	<?php 
    if ($need_to_reauthorize) {
        if ($wepay_settings['use_sandbox']) {
            Espresso_Wepay::useStaging($wepay_settings['wepay_client_id'], $wepay_settings['wepay_client_secret']);
        } else {
            Espresso_Wepay::useProduction($wepay_settings['wepay_client_id'], $wepay_settings['wepay_client_secret']);
        }
        $scope = Espresso_Wepay::$all_scopes;
        $redirect_uri = "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
        set_transient('espresso_wepay_redirect_uri', $redirect_uri, 60 * 60);
        $uri = Espresso_Wepay::getAuthorizationUri($scope, $redirect_uri);
        ?>
			<a class="button-primary" href='<?php 
        echo $uri;
        ?>
'><?php 
        _e('Authorize Application', 'event_espresso');
        ?>
</a>
	<?php 
    }
    ?>
	<div id="wepay_sandbox_info" style="display:none">
		<h2><?php 
    _e('WePay Sandbox', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('In addition to using the WePay 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 WePay variables.', 'event_espresso');
    ?>
</p>
		<hr />
		<p><?php 
    _e('The WePay Sandbox is a testing environment that is a duplicate of the live WePay site, except that no real money changes hands. The Sandbox allows you to test your entire integration before submitting transactions to the live WePay environment. Create and manage test accounts, and view emails and API credentials for those test accounts.', 'event_espresso');
    ?>
</p>
	</div>
	<div id="instructions" style="display:none">
		<h2><?php 
    _e('WePay Instructions', 'event_espresso');
    ?>
</h2>
	<?php 
    _e('To use WePay, follow these steps:');
    ?>
		<ol>
			<li>
	<?php 
    _e('At WePay.com (or stage.wepay.com for sandbox) sign up as a user and add an account to your user.');
    ?>
			</li>
			<li>
	<?php 
    _e('Register your instance of Event Espresso as an application in your WePay user profile.');
    ?>
			</li>
			<li>
	<?php 
    _e('Copy your client id and client secret from your application profile and paste them here.');
    ?>
			</li>
			<li>
	<?php 
    _e('Anytime you change your id and secret on this page and update your WePay settings, you will see a button to authorize your application.');
    ?>
			</li>
			<li>
	<?php 
    _e('Once your application is authorized, you will be able to select from your available accounts, and update your WePay settings.');
    ?>
			</li>
		</ol>
	</div>
	<div id="select_account" style="display: none">
		<h2><?php 
    _e('WePay Account', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('The name of the account you want to use with Event Espresso.', 'event_espresso');
    ?>
</p>
	</div>
	<?php 
}
Esempio n. 19
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 
}
Esempio n. 20
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 
}
Esempio n. 21
0
function event_espresso_display_worldpay_settings()
{
    global $org_options;
    $worldpay_settings = get_option('event_espresso_worldpay_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="worldpay_id">
								<?php 
    _e('WorldPay Installation ID', 'event_espresso');
    ?>
							</label>
							<input class="regular-text" type="text" name="worldpay_id" size="35" value="<?php 
    echo $worldpay_settings['worldpay_id'];
    ?>
" /><br />
							<?php 
    _e('(Typically payment@yourdomain.com)', 'event_espresso');
    ?>
						</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>
							<input class="upload_url_input" type="text" name="button_url" size="34" value="<?php 
    echo $worldpay_settings['button_url'];
    ?>
" />
							<a class="upload_image_button" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a></li>

						<li>
							<label for="image_url">
								<?php 
    _e('Image URL (logo for payment page)', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=worldpay_image_url_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input class="upload_url_input" type="text" name="image_url" size="35" value="<?php 
    echo $worldpay_settings['image_url'];
    ?>
" />
							<a class="upload_image_button" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a><br />
							<?php 
    _e('(used for your business/personal logo on the WorldPay page)', 'event_espresso');
    ?>
						</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=worldpay_currency_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<select name="currency_format" data-placeholder="Choose a currency..." class="wide">
								<option value="<?php 
    echo $worldpay_settings['currency_format'];
    ?>
"><?php 
    echo $worldpay_settings['currency_format'];
    ?>
</option>
								<option value="USD">
									<?php 
    _e('U.S. Dollars ($)', 'event_espresso');
    ?>
								</option>
								<option value="AUD">
									<?php 
    _e('Australian Dollars (A $)', '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="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="CHF">
									<?php 
    _e('Swiss Franc', '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="NZD">
									<?php 
    _e('New Zealand Dollar ($)', 'event_espresso');
    ?>
								</option>
								<option value="NOK">
									<?php 
    _e('Norwegian Krone', 'event_espresso');
    ?>
								</option>
								<option value="PLN">
									<?php 
    _e('Polish Zloty', 'event_espresso');
    ?>
								</option>
								<option value="SGD">
									<?php 
    _e('Singapore Dollar ($)', 'event_espresso');
    ?>
								</option>
								<option value="SEK">
									<?php 
    _e('Swedish Krona', 'event_espresso');
    ?>
								</option>
								<option value="BRL">
									<?php 
    _e('Brazilian Real (only for Brazilian users)', 'event_espresso');
    ?>
								</option>
								<option value="MYR">
									<?php 
    _e('Malaysian Ringgits (only for Malaysian users)', 'event_espresso');
    ?>
								</option>
								<option value="PHP">
									<?php 
    _e('Philippine Pesos', 'event_espresso');
    ?>
								</option>
								<option value="TWD">
									<?php 
    _e('Taiwan New Dollars', 'event_espresso');
    ?>
								</option>
								<option value="THB">
									<?php 
    _e('Thai Baht', 'event_espresso');
    ?>
								</option>
							</select>
						</li>
					</ul>
				</td>
				<td valign="top">
					<ul>
						<li>
							<label><?php 
    _e('Relay Response URL', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=wp_relay_response"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a></label>
							<span class="display-path" style="background-color: rgb(255, 251, 204); border:#999 solid 1px; padding:2px;"><?php 
    echo get_permalink($org_options['return_url']);
    ?>
</span>  </li>
						<li>
						<li>
							<label for="bypass_payment_page">
								<?php 
    _e('Bypass Payment Overview Page', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=bypass_confirmation"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="bypass_payment_page" type="checkbox" value="1" <?php 
    echo $worldpay_settings['bypass_payment_page'] ? 'checked="checked"' : '';
    ?>
 />
						</li>

						<li>
							<label for="use_sandbox">
								<?php 
    _e('Turn on Debugging Using the WorldPay Sandbox?', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=worldpay_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 $worldpay_settings['use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />

						</li>
						<?php 
    if (espresso_check_ssl() == TRUE || isset($worldpay_settings['force_ssl_return']) && $worldpay_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 $worldpay_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
							<?php 
    }
    ?>
						<li>
							<label><?php 
    _e('Current Button Image', 'event_espresso');
    ?>
</label>
	<?php 
    echo $worldpay_settings['button_url'] == '' ? '' : '<img src="' . $worldpay_settings['button_url'] . '" />';
    ?>
</li>
					</ul>
				</td>
			</tr>
		</table>
		<p>
			<input type="hidden" name="update_worldpay" value="update_worldpay">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update WorldPay Settings', 'event_espresso');
    ?>
" id="save_worldpay_settings" />
		</p>
		<?php 
    wp_nonce_field('espresso_form_check', 'add_worldpay_settings');
    ?>
	</form>

	<div id="worldpay_sandbox_info" style="display:none">
		<h2><?php 
    _e('WorldPay Sandbox', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('In addition to using the WorldPay 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 WorldPay variables.', 'event_espresso');
    ?>
</p>
		<hr />
		<p><?php 
    _e('The WorldPay Sandbox is a testing environment that is a duplicate of the live WorldPay site, except that no real money changes hands. The Sandbox allows you to test your entire integration before submitting transactions to the live WorldPay environment. Create and manage test accounts, and view emails and API credentials for those test accounts.', 'event_espresso');
    ?>
</p>
	</div>

	<div id="wp_relay_response" style="display:none">
		<h2><?php 
    _e('Relay Response', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('This shows the specific the URL to which the gateway should return the relay response for a transaction. This the page should be set in your Worldpay account.', 'event_espresso');
    ?>
</p>
		<p><strong><?php 
    _e('Relay Response URL:', 'event_espresso');
    ?>
</strong> <?php 
    echo home_url() . '/?page_id=' . $org_options['return_url'];
    ?>
<br />
			<span style="color:red;"><?php 
    _e('Note:', 'event_espresso');
    ?>
</span> <?php 
    _e('This URL can be changed in the "Organization Settings" page.', 'event_espresso');
    ?>
</p>
		<p><strong><?php 
    _e('Enabling Payment Response', 'event_espresso');
    ?>
</strong>
			<?php 
    _e('As a default the payment response feature is set to OFF by default, to enable this
feature:', 'event_espresso');
    ?>
</p>
		<ol>
			<li><?php 
    _e('Log in to the Merchant Interface', 'event_espresso');
    ?>
</li>
			<li><?php 
    _e('Select Installations from the left hand navigation', 'event_espresso');
    ?>
</li>
			<li><?php 
    _e('Choose an installation and select the Integration Setup button for either the
TEST or PRODUCTION environment', 'event_espresso');
    ?>
</li>
			<li><?php 
    _e('Check the Enable Payment Response checkbox', 'event_espresso');
    ?>
</li>
			<li><?php 
    _e('Enter the Payment Response URL of the server-side script that is hosted on
your web server', 'event_espresso');
    ?>
</li>
			<li><?php 
    _e('Select the Save Changes button', 'event_espresso');
    ?>
</li>
		</ol>
		<p>
			<span style="color:red;"><?php 
    _e('Note:', 'event_espresso');
    ?>
</span><?php 
    _e('If your Payment Response URL starts with HTTPS:// you will need to
make sure that your server supports either SSL 3.0 or TLS 1.0.', 'event_espresso');
    ?>
		</p>
	</div>

	<div id="worldpay_image_url_info" style="display:none">
		<h2>
			<?php 
    _e('WorldPay Image URL (logo for payment page)', 'event_espresso');
    ?>
		</h2>
		<p>
			<?php 
    _e('The URL of the 150x50-pixel image displayed as your logo in the upper left corner of the WorldPay checkout pages.', 'event_espresso');
    ?>
		</p>
		<p>
			<?php 
    _e('Default - Your business name, if you have a Business account, or your email address, if you have Premier or Personal account.', 'event_espresso');
    ?>
		</p>
	</div>

	<div id="worldpay_currency_info" style="display:none">
		<h2><?php 
    _e('WorldPay Currency', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('WorldPay 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 WorldPay (currently) supports.', 'event_espresso');
    ?>
 </p>
	</div>
	<?php 
}
Esempio n. 22
0
function event_espresso_display_ideal_settings()
{
    $ideal_settings = get_option('event_espresso_ideal_mollie_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('Mollie Partner ID', 'event_espresso');
    ?>
							</label>
							<input type="text" name="ideal_mollie_partner_id" size="35" value="<?php 
    echo $ideal_settings['ideal_mollie_partner_id'];
    ?>
">
							<br />
						</li>
						<li>
							<label for="ideal_mollie_use_sandbox">
								<?php 
    _e('Use iDEAL in test mode?', 'event_espresso');
    ?>
							</label>
							<input name="ideal_mollie_use_sandbox" type="checkbox" value="1" <?php 
    echo $ideal_settings['ideal_mollie_use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
							<br />
							<?php 
    _e('(Make sure you enable test mode in your Mollie account).', 'event_espresso');
    ?>
						</li>
					<?php 
    if (espresso_check_ssl() == TRUE || isset($ideal_settings['force_ssl_return']) && $ideal_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 $ideal_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
							<?php 
    }
    ?>
					</ul></td>
			</tr>
		</table>
		<p>
			<input type="hidden" name="update_ideal" value="update_ideal">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update iDEAL Settings', 'event_espresso');
    ?>
" id="save_ideal_settings" />
		</p>
	</form>
	<?php 
}
Esempio n. 23
0
function event_espresso_display_eway_settings()
{
    $eway_settings = get_option('event_espresso_eway_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_id">
								<?php 
    _e('eWay ID', 'event_espresso');
    ?>
							</label>
							<input type="text" name="eway_id" size="35" value="<?php 
    echo $eway_settings['eway_id'];
    ?>
">
							<br />
							<?php 
    _e('(Typically 87654321)', 'event_espresso');
    ?>
						</li>
						<li>
							<label for="eway_username">
								<?php 
    _e('eWay username', 'event_espresso');
    ?>
							</label>
							<input type="text" name="eway_username" size="35" value="<?php 
    echo $eway_settings['eway_username'];
    ?>
">
							<br />
							<?php 
    _e('(Typically TestAccount)', 'event_espresso');
    ?>
						</li>
						<li>
							<label for="region">
								<?php 
    _e('Choose Your Region', 'event_espresso');
    ?>
							</label>
							<select name="region">
								<option value="<?php 
    echo $eway_settings['region'];
    ?>
"><?php 
    echo $eway_settings['region'];
    ?>
</option>
								<option value="UK">
									<?php 
    _e('United Kingdom', 'event_espresso');
    ?>
								</option>
								<option value="AU">
									<?php 
    _e('Australia', 'event_espresso');
    ?>
								</option>
								<option value="NZ">
									<?php 
    _e('New Zealand', 'event_espresso');
    ?>
								</option>
							</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_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>
						<li>
							<label for="image_url">
								<?php 
    _e('Image URL (logo for payment page)', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=image_url_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input class="upload_url_input" type="text" name="image_url" size="35" value="<?php 
    echo $eway_settings['image_url'];
    ?>
" />
							<a class="upload_image_button" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a><br />
							<?php 
    _e('(used for your business/personal logo on the eWay page)', 'event_espresso');
    ?>
						</li>
					</ul></td>
				<td valign="top">
					<ul>
						<li>
							<label for="bypass_payment_page">
								<?php 
    _e('Bypass Payment Overview Page', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=bypass_confirmation"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<?php 
    $values = array(array('id' => 'N', 'text' => __('No', 'event_espresso')), array('id' => 'Y', 'text' => __('Yes', 'event_espresso')));
    echo select_input('bypass_payment_page', $values, $eway_settings['bypass_payment_page']);
    ?>
						</li>
						<?php 
    if (espresso_check_ssl() == TRUE || isset($eway_settings['force_ssl_return']) && $eway_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_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
							<?php 
    }
    ?>
						<li>
							<label for="use_sandbox">
								<?php 
    _e('Turn on Debugging Using the', 'event_espresso');
    ?>
 <a href="http://www.eway.com.au/Developer/Testing/" title="eWay Sandbox Login" target="_blank"><?php 
    _e('eWay Sandbox', 'event_espresso');
    ?>
</a> <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=eway_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 $eway_settings['use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
						</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>
							<input class="upload_url_input" type="text" name="button_url" size="34" value="<?php 
    echo $eway_settings['button_url'] == '' ? '' : $eway_settings['button_url'];
    ?>
" />
							<a class="upload_image_button" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a>  </li>
						<li>
							<label><?php 
    _e('Current Button Image', 'event_espresso');
    ?>
</label>
							<?php 
    echo $eway_settings['button_url'] == '' ? '' : '<img src="' . $eway_settings['button_url'] . '" />';
    ?>
</li>
					</ul>
				</td>
			</tr>
		</table>
		<p>
			<input type="hidden" name="update_eway" value="update_eway">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update eWay Settings', 'event_espresso');
    ?>
" id="save_eway_settings" />
		</p>
	</form>
	<div id="eway_sandbox_info" style="display:none">
		<h2><?php 
    _e('eWay Sandbox', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('In addition to using the eWay 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 variables.', 'event_espresso');
    ?>
</p>
		<hr />
		<p><?php 
    _e('The eWay Sandbox is a testing environment that is a duplicate of the live eWay site, except that no real money changes hands. The Sandbox allows you to test your entire integration before submitting transactions to the live eWay environment. Create and manage test accounts, and view emails and API credentials for those test accounts.', 'event_espresso');
    ?>
</p>
	</div>
	<div id="image_url_info" style="display:none">
		<h2>
			<?php 
    _e('eWay Image URL (logo for payment page)', 'event_espresso');
    ?>
		</h2>
		<p>
			<?php 
    _e('The URL of the 150x50-pixel image displayed as your logo in the upper left corner of the eWay checkout pages.', 'event_espresso');
    ?>
		</p>
		<p>
			<?php 
    _e('Default - Your business name, if you have a Business account, or your email address, if you have Premier or Personal account.', 'event_espresso');
    ?>
		</p>
	</div>
	<div id="currency_info" style="display:none">
		<h2><?php 
    _e('eWay Currency', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('eWay uses 3-character ISO-4217 codes for specifying currencies in fields and variables. </p><p>The default currency code is British Pounds (GBP). The currency must match the region where you are using eway, so changing the region will automatically change the currency.', 'event_espresso');
    ?>
 </p>
	</div>
	<?php 
}
Esempio n. 24
0
function event_espresso_display_luottokunta_settings()
{
    $luottokunta_settings = get_option('event_espresso_luottokunta_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="luottokunta_id">
								<?php 
    _e('Luottokunta ID / Merchant Number', 'event_espresso');
    ?>
							</label>
							<input type="text" name="luottokunta_id" size="35" value="<?php 
    echo $luottokunta_settings['luottokunta_id'];
    ?>
">
							<br />
						</li>
						<li>
							<label for='luottokunta_uses_mac_key'>
								<?php 
    _e("Perform MAC security Check", 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=mac_security_check"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<?php 
    $use_mac_options = array(array('id' => 'Y', 'text' => __('Yes', 'event_espresso')), array('id' => 'N', 'text' => __('No', 'event_espresso')));
    echo select_input('luottokunta_uses_mac_key', $use_mac_options, $luottokunta_settings['luottokunta_uses_mac_key']);
    ?>
						</li>
						<li>
							<label for="luottokunta_mac_key">
								<?php 
    _e('Secret MAC key', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=mac_security_check"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input type="text" name="luottokunta_mac_key" size="35" value="<?php 
    echo $luottokunta_settings['luottokunta_mac_key'];
    ?>
">
							<br />
							<?php 
    _e('A secret key used to identify your client', 'event_espresso');
    ?>
						</li>
						<li>
							<label for="luottokunta_payment_page_language">
								<?php 
    _e('Luottokunta Payment Page Language', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=payment_page_language_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
								<?php 
    $languages = array(array('id' => 'EN', 'text' => __('English', 'event_espresso')), array('id' => 'FI', 'text' => __('Finnish', 'event_espresso')), array('id' => 'SE', 'text' => __('Swedish', 'event_espresso')));
    echo select_input('luottokunta_payment_page_language', $languages, $luottokunta_settings['luottokunta_payment_page_language']);
    ?>
						</li>
						<!--<li>
							<label for="use_sandbox">
								<?php 
    _e('Use the Development Site', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=paypal_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 $luottokunta_settings['use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
							<br />
						</li>-->
					</ul></td>
				<td valign="top"><ul><li>
						<label for="bypass_payment_page">
							<?php 
    _e('Bypass Payment Overview Page', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=bypass_confirmation"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
						</label>
						<?php 
    $values = array(array('id' => 'N', 'text' => __('No', 'event_espresso')), array('id' => 'Y', 'text' => __('Yes', 'event_espresso')));
    echo select_input('bypass_payment_page', $values, $luottokunta_settings['bypass_payment_page']);
    ?>
							
						</li>
						
						<?php 
    if (espresso_check_ssl() == TRUE || isset($luottokunta_settings['force_ssl_return']) && $luottokunta_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 $luottokunta_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
							<?php 
    }
    ?>
						
						<li>
							<label for="button_url">
								<?php 
    _e('Button Image URL', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=luottokunta_button_image"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input class="upload_url_input" type="text" name="button_url" size="34" value="<?php 
    echo $luottokunta_settings['button_url'];
    ?>
" />
							<a class="upload_image_button" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a>  </li><li>
							<label><?php 
    _e('Current Button Image:', 'event_espresso');
    ?>
</label>
							<?php 
    echo '<img src="' . $luottokunta_settings['button_url'] . '" />';
    ?>
</li>
					</ul></td>
			</tr>
		</table>
		<p>
			<input type="hidden" name="update_luottokunta" value="update_luottokunta">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update Luottokunta Settings', 'event_espresso');
    ?>
" id="save_luottokunta_settings" />
		</p>
	</form>
	<div id="mac_security_check" style="display:none">
		<h2><?php 
    _e('Luottokunta MAC Security Check', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e("Using MAC calculation (MAC = Message Authentication Code) improves the security of the card payments in online store. Use of the MAC calculation is mandatory and the merchant must implement the MAC calculation in two phases in the HTML form interface. If the merchant does not use MAC calculation, the merchant will be responsible for any security risks and damages experienced by Luottokunta.", 'event_espresso');
    ?>
</p>
		<p> <?php 
    _e('Luottokunta sends the merchant one secret key for the MAC calculation, enclosed in the service ID codes letter for Luottokunta ePayment Service, and this key is used for actual MAC calculation.', 'event_espresso');
    ?>
</p>
		<p> <?php 
    _e("To Activate the Mac Security Check:", 'event_espresso');
    ?>
</p>
		<ol>
			<li>
				<?php 
    _e("Log in to Transaction management section of the web interface of Luottokunta ePayment Service, using a merchant admin user or admin user ID.", 'event_espresso');
    ?>
			</li>
			<li>
				<?php 
    _e('Go to the page "Merchant settings".', 'event_espresso');
    ?>
			</li>
			<li>
				<?php 
    _e('Enable the options "Add MAC check to HTML form" and "Add MAC check to Success_Url" (by marking them as checked).', 'event_espresso');
    ?>
			</li>
			<li>
				<?php 
    _e('Save your changes by clicking the button "Update"', 'event_espresso');
    ?>
			</li>
			<li>
				<?php 
    _e('Lastly, from within Event Espresso\'s payments page, set "Perform MAC security Check" to "Yes" and click "Update Luottokunta Settings"', 'event_espresso');
    ?>
			</li>
		</ol> 
		</p>
	</div>
	<div id="payment_page_language_info" style="display:none">
		<h2><?php 
    _e('Luottokunta Payment Page Language', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('During the payment process with Luottokunta, your website clients will be taken to Luottokunta\'s secure payment page. This setting selects the language this page will be in.', 'event_espresso');
    ?>
 </p>
	</div>
	<div id="no_shipping" style="display:none">
		<h2><?php 
    _e('Shipping Address', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('By default, Luottokunta will display shipping address information on the Luottokunta payment screen. If you plan on shipping items to a registrant (shirts, invoices, etc) then use this option. Otherwise it should not be used, as it will require a shipping address when someone registers for an event.', 'event_espresso');
    ?>
</p>
	</div>
	<?php 
}
Esempio n. 25
0
function event_espresso_display_exact_settings()
{
    $exact_settings = get_option('event_espresso_exact_settings');
    $org_options = get_option('events_organization_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="exact_login_id">
								<?php 
    _e('E-xact Login ID', 'event_espresso');
    ?>
							</label>
							<input type="text" name="exact_login_id" size="35" value="<?php 
    echo $exact_settings['exact_login_id'];
    ?>
">
						</li>
						<li>
							<label for="exact_transaction_key">
								<?php 
    _e('E-xact Transaction Key', 'event_espresso');
    ?>
							</label>
							<input type="text" name="exact_transaction_key" size="35" value="<?php 
    echo $exact_settings['exact_transaction_key'];
    ?>
">
						</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>
							<input type="text" name="button_url" size="35" value="<?php 
    echo $exact_settings['button_url'] == '' ? $button_url : $exact_settings['button_url'];
    ?>
" />
							<a href="media-upload.php?post_id=0&amp;type=image&amp;TB_iframe=true&amp;width=640&amp;height=580&amp;rel=button_url" id="add_image" class="thickbox" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a>
							</li>
						<li>
							<label for="image_url">
								<?php 
    _e('Image URL', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=exact_image_url_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input type="text" name="image_url" size="35" value="<?php 
    echo $exact_settings['image_url'];
    ?>
" />
							<a href="media-upload.php?post_id=0&amp;type=image&amp;TB_iframe=true&amp;width=640&amp;height=580&amp;rel=image_url" id="add_image" class="thickbox" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a>
							<br />
							<?php 
    _e('(used for your business/personal logo on the E-xact payment page)', 'event_espresso');
    ?>
						</li>
					</ul></td>
				<td valign="top"><ul>
						<li>
							<label><?php 
    _e('Relay Response URL', 'event_espresso');
    ?>
</label>
							<span class="display-path" style="background-color: rgb(255, 251, 204); border:#999 solid 1px; padding:2px;"><?php 
    if ($exact_settings['force_ssl_return']) {
        echo str_replace("http://", "https://", home_url() . '/?type=exact&page_id=' . $org_options['return_url']);
    } else {
        echo home_url() . '/?type=exact&page_id=' . $org_options['return_url'];
    }
    ?>
</span> &nbsp;<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=relay_response"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a> </li>
						<li>
							<label for="use_sandbox">
								<?php 
    _e('Account Uses E-xact.com\'s Development Server', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=exact_sandbox"><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 $exact_settings['use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
							</li>
						<li>
							<label for="test_transactions">
								<?php 
    _e('Submit a Test Transaction', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=exact_sandbox"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="test_transactions" type="checkbox" value="1" <?php 
    echo $exact_settings['test_transactions'] ? 'checked="checked"' : '';
    ?>
 /></li>
						<li>
							<label for="bypass_payment_page">
								<?php 
    _e('Bypass Payment Overview Page', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=bypass_confirmation"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<?php 
    $values = array(array('id' => 'Y', 'text' => __('Yes', 'event_espresso')), array('id' => 'N', 'text' => __('No', 'event_espresso')));
    echo select_input('bypass_payment_page', $values, $exact_settings['bypass_payment_page']);
    ?>
							 </li>
						<?php 
    if (espresso_check_ssl() == TRUE || isset($exact_settings['force_ssl_return']) && $exact_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 $exact_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
							<?php 
    }
    ?>
						<li>
							<label><?php 
    _e('Current Button Image', 'event_espresso');
    ?>
</label>
							<?php 
    echo '<img src="' . $exact_settings['button_url'] . '" />';
    ?>
</li>
					</ul></td>
			</tr>
		</table>
		<p>
			<input type="hidden" name="update_exact" value="update_exact">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update E-xact Settings', 'event_espresso');
    ?>
" id="save_exact_settings" />
		</p>
	</form>
	<div id="relay_response" style="display:none">
		<h2><?php 
    _e('Relay Response', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('This shows the specific the URL to which the gateway should return the relay response for a transaction. This the page should be set in your E-xact account. Login to E-xact, goto Account > Response/Receipt URLs > Add URL and enter the following URL.', 'event_espresso');
    ?>
</p>
		<p><strong><?php 
    _e('Relay Response URL:', 'event_espresso');
    ?>
</strong> <?php 
    echo home_url() . '/?page_id=' . $org_options['notify_url'];
    ?>
<br />
			<span style="color:red;"><?php 
    _e('Note:', 'event_espresso');
    ?>
</span> <?php 
    _e('This URL can be changed in the "Organization Settings" page.', 'event_espresso');
    ?>
</p>
		<p><?php 
    _e('For complete information on configuring relay response, please refer to', 'event_espresso');
    ?>
 <a href="https://account.authorize.net/help/Merchant_Interface_RoboHelp_Project.htm#Miscellaneous/Reference.htm%3E%3Epan=2"><?php 
    _e('Reference &amp; User Guides', 'event_espresso');
    ?>
</a>.</p>
	</div>
	<div id="exact_image_url_info" style="display:none">
		<h2>
			<?php 
    _e('E-xact Image URL (logo for payment page)', 'event_espresso');
    ?>
		</h2>
		<p>
			<?php 
    _e('The URL of the image displayed as your logo in the header of the Authorize.net checkout pages.', 'event_espresso');
    ?>
		</p>
	</div>
	<div id="exact_sandbox" style="display:none">
		<h2><?php 
    _e('E-xact 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 
}
Esempio n. 26
0
function event_espresso_display_wepay_settings()
{
    $wepay_settings = get_option('event_espresso_wepay_settings');
    $uri = $_SERVER['REQUEST_URI'];
    $pos = strpos($uri, '&activate_wepay=true');
    if ($pos) {
        $uri = substr("{$uri}", 0, $pos);
    }
    $pos = strpos($uri, '&code');
    if ($pos) {
        $uri = substr("{$uri}", 0, $pos);
    }
    _e('Instructions:');
    ?>
	&nbsp;<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=instructions"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
	<form method="post" action="<?php 
    echo $uri;
    ?>
#wepay">
		<table width="99%" border="0" cellspacing="5" cellpadding="5">
			<tr>
				<td valign="top"><ul>
						<li>
							<label for="wepay_client_id">
								<?php 
    _e('WePay Client ID', 'event_espresso');
    ?>
							</label>
							<input type="text" name="wepay_client_id" size="35" value="<?php 
    echo $wepay_settings['wepay_client_id'];
    ?>
" />
						</li>
						<li>
							<label for="wepay_client_secret">
								<?php 
    _e('WePay Client Secret', 'event_espresso');
    ?>
							</label>
							<input type="text" name="wepay_client_secret" size="35" value="<?php 
    echo $wepay_settings['wepay_client_secret'];
    ?>
" />
						</li>
						<li>
							<label for="account_id">
								<?php 
    _e('Account ID', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=account_id"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label><br>
							<input type="text" name="account_id" size="34" value="<?php 
    echo $wepay_settings['account_id'] == '' ? '' : $wepay_settings['account_id'];
    ?>
" />
						</li>
						<li>
							<label for="access_token">
								<?php 
    _e('Access Token', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=access_token"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input type="text" name="access_token" size="100" value="<?php 
    echo $wepay_settings['access_token'] == '' ? '' : $wepay_settings['access_token'];
    ?>
" />
						</li>
					</ul></td>
				<td valign="top">
					<ul>
						<li>
							<label for="bypass_payment_page">
								<?php 
    _e('Bypass Payment Overview Page', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=bypass_confirmation"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<?php 
    $values = array(array('id' => 'N', 'text' => __('No', 'event_espresso')), array('id' => 'Y', 'text' => __('Yes', 'event_espresso')));
    echo select_input('bypass_payment_page', $values, $wepay_settings['bypass_payment_page']);
    ?>
						</li>
						<li>
							<label for="use_sandbox">
								<?php 
    _e('Turn on Debugging Using the', 'event_espresso');
    ?>
 <a href="https://developer.wepay.com/devscr?cmd=_home||https://cms.wepay.com/us/cgi-bin/?&amp;cmd=_render-content&amp;content_ID=developer/howto_testing_sandbox||https://cms.wepay.com/us/cgi-bin/?&amp;cmd=_render-content&amp;content_ID=developer/howto_testing_sandbox_get_started" title="WePay Sandbox Login||Sandbox Tutorial||Getting Started with WePay Sandbox" target="_blank"><?php 
    _e('WePay Sandbox', 'event_espresso');
    ?>
</a> <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=wepay_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 $wepay_settings['use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
							<br />
						</li>
						<?php 
    if (espresso_check_ssl() == TRUE || isset($wepay_settings['force_ssl_return']) && $wepay_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 $wepay_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
						<?php 
    }
    ?>
						<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>
							<input class="upload_url_input" type="text" name="button_url" size="34" value="<?php 
    echo $wepay_settings['button_url'] == '' ? '' : $wepay_settings['button_url'];
    ?>
" />
							<a class="upload_image_button" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a>
						</li>
						<li>
							<?php 
    _e('Current Button Image', 'event_espresso');
    ?>
							<br />
							<?php 
    echo $wepay_settings['button_url'] == '' ? '' : '<img src="' . $wepay_settings['button_url'] . '" />';
    ?>
</li>
					</ul>
				</td>
			</tr>
		</table>
		<p>
			<input type="hidden" name="update_wepay" value="update_wepay">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update WePay Settings', 'event_espresso');
    ?>
" id="save_wepay_settings" />
		</p>
	</form>
	<div id="wepay_sandbox_info" style="display:none">
		<h2><?php 
    _e('WePay Sandbox', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('In addition to using the WePay 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 WePay variables.', 'event_espresso');
    ?>
</p>
		<hr />
		<p><?php 
    _e('The WePay Sandbox is a testing environment that is a duplicate of the live WePay site, except that no real money changes hands. The Sandbox allows you to test your entire integration before submitting transactions to the live WePay environment. Create and manage test accounts, and view emails and API credentials for those test accounts.', 'event_espresso');
    ?>
</p>
	</div>
	<div id="instructions" style="display:none">
		<h2><?php 
    _e('WePay Instructions', 'event_espresso');
    ?>
</h2>
		<?php 
    _e('To use WePay, follow these steps:');
    ?>
		<ol>
			<li>
				<?php 
    _e('At WePay.com (or stage.wepay.com for sandbox) sign up as a user.', 'event_espresso');
    ?>
			</li>
			<li>
				<?php 
    _e('Add Event Espresso as an API application in your account. (If you are using a LIVE account, WePay may need to approve your application before using it.)', 'event_espresso');
    ?>
			</li>
			<li>
				<?php 
    _e('Copy your client id, client secret, account id, and access token from yourAPI application\'s API Keys page and paste them here.', 'event_espresso');
    ?>
			</li>
		</ol>
	</div>
	<div id="account_id" style="display: none">
		<h2><?php 
    _e('WePay Account', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('The id of the account you want to use with Event Espresso. Found on the Application API page in your WePay account.', 'event_espresso');
    ?>
</p>
	</div>
	<div id="access_token" style="display: none">
		<h2><?php 
    _e('WePay Access Token', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('The API access token from the account you want to use with Event Espresso. Found on the Application API page in your WePay account.', 'event_espresso');
    ?>
</p>
	</div>
	<?php 
}