plugin_path . 'templates/admin/settings.php' );
}
public function adminSupport()
{
return require_once( $this->plugin_path . 'templates/admin/support.php' );
}
// callbacks for options
public function ourAdminOptionsGroup( $input )
{
return $input;
}
public function textValidator( $input )
{
return $input;
}
public function checkboxValidator( $input )
{
return $input;
}
public function urlValidator( $input )
{
return $input;
}
public function currencyValidator( $input )
{
return $input;
}
public function formatValidator( $input )
{
return $input;
}
public function settingsSection()
{
return;
}
public function testMode()
{
$value = get_option( 'test_mode' );
if ($value == "1") {
$value = true;
} else {
$value = false;
}
echo '';
}
public function merchantID()
{
$value = esc_attr( get_option( 'merchant_id' ) );
$strlen = strlen($value) + 5;
if ($strlen < 20) {
$strlen = 20;
}
echo '
';
}
public function publicKey()
{
$value = esc_attr( get_option( 'public_key' ) );
$strlen = strlen($value) + 5;
if ($strlen < 20) {
$strlen = 20;
}
echo '
';
}
public function privateKey()
{
$value = esc_attr( get_option( 'private_key' ) );
$strlen = strlen($value) + 5;
if ($strlen < 20) {
$strlen = 20;
}
echo '
';
}
public function tokenizationKey()
{
$value = esc_attr( get_option( 'tokenization_key' ) );
$strlen = strlen($value) + 5;
if ($strlen < 20) {
$strlen = 20;
}
echo '
';
}
public function acwpCurrency()
{
$value = esc_attr( get_option( 'acwp_currency' ) );
if ($value == "EUR"){
echo '
';
echo '
';
} elseif ($value == "USD") {
echo '
';
echo '
';
} else {
echo '
';
echo '
';
}
echo '
Mark what currency you want to be displayed on your payment forms. We recommend to select the same currency as your Braintree Account is set in.
'; } public function acwpFormat() { $value = esc_attr( get_option( 'acwp_format' ) ); if ($value == ","){ echo 'Choose whether you would like your customers to see . or , when separating whole amount against the cents amount.
'; } public function successPage() { $value = esc_attr( get_option( 'success_page' ) ); $strlen = strlen($value) + 5; if ($strlen < 20) { $strlen = 20; } echo 'This is the page to which your customers are redirected when they have successfuly paid. This can be overwritten in each payment form settings.
'; } public function failurePage() { $value = esc_attr( get_option( 'failure_page' ) ); $strlen = strlen($value) + 5; if ($strlen < 20) { $strlen = 20; } echo 'This is the page to which your customers are redirected when the payment is not succesful. This can be overwritten in each payment form settings.
'; } }