228 lines
7.3 KiB
Smarty
228 lines
7.3 KiB
Smarty
{include file='admin_header.tpl'}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="../include/js/semods.js"></script>
|
|
|
|
|
|
<script type="text/javascript" src="../include/js/semods.controls.dialog.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
var lang_dlg_title = "{lang_print id=100015111}";
|
|
|
|
|
|
var lang_dlg_text = "";
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
{literal}
|
|
|
|
|
|
<script>
|
|
|
|
|
|
function test_paypal_api() {
|
|
|
|
|
|
SEMods.B.hide("test_paypal_api");
|
|
|
|
|
|
SEMods.B.show("test_paypal_api_progress");
|
|
|
|
|
|
new SEMods.Ajax( on_paypal_test_success, on_paypal_test_fail ).post( "admin_paymentgw_paypal.php?task=testpaypal", '' );
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function on_paypal_test_success(a, resp) {
|
|
|
|
|
|
SEMods.B.show("test_paypal_api");
|
|
|
|
|
|
SEMods.B.hide("test_paypal_api_progress");
|
|
|
|
|
|
alert( resp );
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function on_paypal_test_fail(a) {
|
|
|
|
|
|
SEMods.B.show("test_paypal_api");
|
|
|
|
|
|
SEMods.B.hide("test_paypal_api_progress");
|
|
|
|
|
|
alert("Error");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function result_dialog( dlg_text ) {
|
|
|
|
|
|
new SEMods.Controls.Dialog( { title : lang_dlg_title, text : dlg_text, width : "300px", height : "130px" } );
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
|
|
|
|
.semods_dialog {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
z-index: 100;
|
|
|
|
|
|
background:#FFFFFF none repeat scroll 0%;
|
|
|
|
|
|
border:4px solid #525252;
|
|
|
|
|
|
color: #000;
|
|
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
|
|
|
|
padding: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.semods_dialog #semods_dlgtitle {
|
|
|
|
|
|
border-bottom:2px solid #CDCDCD;
|
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
color: #777
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.semods_dialog #semods_dlgtext {
|
|
|
|
|
|
padding-top: 10px;
|
|
|
|
|
|
padding-bottom: 30px;
|
|
|
|
|
|
border-bottom:2px solid #CDCDCD;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.semods_dialog #semods_dlgbuttons {
|
|
|
|
|
|
text-align: right;
|
|
|
|
|
|
padding-top: 10px;
|
|
|
|
|
|
padding-bottom: 10px;
|
|
|
|
|
|
padding-right: 5px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.semods_dialog #semods_dlgbtnyes {
|
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.semods_dialog #semods_dlgbtnno {
|
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|
{/literal}
|
|
|
|
|
|
|
|
|
|
|
|
<h2>{lang_print id=100015112}</h2>
|
|
|
|
|
|
{lang_print id=100015113}. <span style="color:red; font-weigh: bold; text-decoration: underline">IMPORTANT</span>: If you are using recurring subscriptions, make sure you have copied the <a href="#IPN">IPN Callback URL</a> into your paypal account.
|
|
|
|
|
|
|
|
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
|
|
|
|
{if $result != 0}
|
|
|
|
|
|
|
|
|
|
|
|
{if empty($error)}
|
|
|
|
|
|
<div class='success'><img src='../images/success.gif' class='icon' border='0'> {$success_message}</div>
|
|
|
|
|
|
{else}
|
|
|
|
|
|
<div class='error'><img src='../images/error.gif' class='icon' border='0'> {$error} </div>
|
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<form action='admin_paymentgw_paypal.php' method='POST'>
|
|
|
|
|
|
|
|
|
|
|
|
<table cellpadding='0' cellspacing='0' width='600'>
|
|
|
|
|
|
<tr><td class='header'>{lang_print id=100015114}</td></tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr><td class='setting1'>
|
|
|
|
|
|
{lang_print id=100015115}
|
|
|
|
|
|
</td></tr><tr><td class='setting2'>
|
|
|
|
|
|
<table cellpadding='0' cellspacing='0'>
|
|
|
|
|
|
<tr><td><input type='radio' name='paypal_enabled' id='paypal_enabled_1' value='1'{if $paypal_enabled == 1} CHECKED{/if}> </td><td><label for='paypal_enabled_1'>{lang_print id=100015116}</label></td></tr>
|
|
|
|
|
|
<tr><td><input type='radio' name='paypal_enabled' id='paypal_enabled_0' value='0'{if $paypal_enabled == 0} CHECKED{/if}> </td><td><label for='paypal_enabled_0'>{lang_print id=100015117}</label></td></tr>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
</td></tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr><td class='setting1'> {lang_print id=100015118} </td></tr>
|
|
|
|
|
|
<tr><td class='setting2'>
|
|
|
|
|
|
|
|
|
|
|
|
<table cellpadding='2' cellspacing='0'>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td width='150'>{lang_print id=100015119}</td>
|
|
|
|
|
|
<td><input type='text' class='text' size='50' name='paypal_business' value='{$paypal_business}'></td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr><td class='setting1'> {lang_print id=100015120} </td></tr>
|
|
|
|
|
|
<tr><td class='setting2'>
|
|
|
|
|
|
|
|
|
|
|
|
<table cellpadding='2' cellspacing='0'>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td width='150'>{lang_print id=100015121}</td>
|
|
|
|
|
|
<td><input type='text' class='text' size='50' name='paypal_api_username' value='{$paypal_api_username}'></td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td width='150'>{lang_print id=100015122}</td>
|
|
|
|
|
|
<td><input type='text' class='text' size='50' name='paypal_api_password' value='{$paypal_api_password}'></td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td width='150'>{lang_print id=100015123}</td>
|
|
|
|
|
|
<td><input type='text' class='text' size='50' name='paypal_api_signature' value='{$paypal_api_signature}'></td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr><td class='setting1'>
|
|
|
|
|
|
{lang_print id=100015124} <br>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="test_paypal_api" style="text-align: center; display:block">
|
|
|
|
|
|
<input type='button' class='button' onclick="javascript:test_paypal_api()" value='{lang_print id=100015125}'>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="test_paypal_api_progress" style="text-align: center; display:none">
|
|
|
|
|
|
<img src="../images/icons/semods_ajaxprogress1.gif">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{*
|
|
|
|
|
|
<tr><td class='setting1'> {lang_print id=100015126} </td></tr>
|
|
|
|
|
|
<tr><td class='setting2'>
|
|
|
|
|
|
|
|
|
|
|
|
<table cellpadding='2' cellspacing='0'>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td width='150'>{lang_print id=100015127}</td>
|
|
|
|
|
|
<td><input type='text' class='text' size='50' name='paypal_cert_id' value='{$paypal_cert_id}'></td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
{ *
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td width='150'>{lang_print id=100015128}</td>
|
|
|
|
|
|
<td><input type='text' class='text' size='50' name='paypal_identity_token' value='{$paypal_identity_token}'></td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
* }
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td width='150'>{lang_print id=100015129}</td>
|
|
|
|
|
|
<td><input type='text' class='text' size='50' name='paypal_myprivkey' value='{$paypal_myprivkey}'></td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td width='150'>{lang_print id=100015130}</td>
|
|
|
|
|
|
<td><input type='text' class='text' size='50' name='paypal_mypubcert' value='{$paypal_mypubcert}'></td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td width='150'>{lang_print id=100015131}</td>
|
|
|
|
|
|
<td><input type='text' class='text' size='50' name='paypal_paypalcert' value='{$paypal_paypalcert}'></td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
*}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr><td class='setting1'> <a name="IPN"></a>{lang_print id=100015132} </td></tr>
|
|
|
|
|
|
<tr><td class='setting2'>
|
|
|
|
|
|
|
|
|
|
|
|
<table cellpadding='2' cellspacing='0'>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td width='150' valign=top> {lang_print id=100015133} </td>
|
|
|
|
|
|
<td> <input onclick="javascript:this.focus();this.select();" style="width:420px; background-color: #F6F6F6; border: 1px solid #C6C6C6; padding: 2px" type="text" readonly value="{$paypal_ipn_url}">
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr><td class='setting1'>
|
|
|
|
|
|
{lang_print id=100015165} ( <a target=_blank href="https://www.paypal.com/en_US/ebook/PP_Sandbox_UserGuide/overview.html">https://www.paypal.com/en_US/ebook/PP_Sandbox_UserGuide/overview.html</a> )
|
|
|
|
|
|
</td></tr><tr><td class='setting2'>
|
|
|
|
|
|
<table cellpadding='0' cellspacing='0'>
|
|
|
|
|
|
<tr><td><input type='radio' name='paypal_sandbox' id='paypal_sandbox_1' value='1'{if $paypal_sandbox == 1} CHECKED{/if}> </td><td><label for='paypal_sandbox_1'>{lang_print id=100015166}</label></td></tr>
|
|
|
|
|
|
<tr><td><input type='radio' name='paypal_sandbox' id='paypal_sandbox_0' value='0'{if $paypal_sandbox == 0} CHECKED{/if}> </td><td><label for='paypal_sandbox_0'>{lang_print id=100015167}</label></td></tr>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
</td></tr>
|
|
|
|
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
<input type='submit' class='button' value='{lang_print id=100015134}'>
|
|
|
|
|
|
<input type='hidden' name='task' value='dosave'>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{include file='admin_footer.tpl'} |