<?php /* ----------------------------------------------------------------------------------------- $Id$ modified eCommerce Shopsoftware http://www.modified-shop.org Copyright (c) 2009 - 2013 [www.modified-shop.org] ----------------------------------------------------------------------------------------- Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ require 'includes/application_top.php'; // include needed classes require_once DIR_FS_EXTERNAL . 'paypal/classes/PayPalAdmin.php'; $paypal = new PayPalAdmin(); if (isset($_GET['action'])) { switch ($_GET['action']) { case 'delete': $paypal->delete_webhook($_GET['id']); xtc_redirect(xtc_href_link(basename($PHP_SELF))); break; case 'update': $paypal->update_webhook($_POST['config']); xtc_redirect(xtc_href_link(basename($PHP_SELF))); break; case 'insert': $paypal->create_webhook($_POST['config']); xtc_redirect(xtc_href_link(basename($PHP_SELF))); break; }
<?php /* ----------------------------------------------------------------------------------------- $Id: paypal_profile.php 10051 2016-07-08 13:36:47Z GTB $ modified eCommerce Shopsoftware http://www.modified-shop.org Copyright (c) 2009 - 2013 [www.modified-shop.org] ----------------------------------------------------------------------------------------- Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ require 'includes/application_top.php'; // include needed classes require_once DIR_FS_EXTERNAL . 'paypal/classes/PayPalAdmin.php'; $paypal = new PayPalAdmin(); if (isset($_GET['action'])) { switch ($_GET['action']) { case 'delete': $paypal->delete_profile($_GET['id']); xtc_redirect(xtc_href_link(basename($PHP_SELF))); break; case 'update': $paypal->update_profile($_POST['config']); xtc_redirect(xtc_href_link(basename($PHP_SELF))); break; case 'insert': $paypal->create_profile($_POST['config']); xtc_redirect(xtc_href_link(basename($PHP_SELF))); break; }
$keys_extra[$module_keys[$j]]['description'] = constant(strtoupper($key_value['configuration_key'] . '_DESC')); } $keys_extra[$module_keys[$j]]['use_function'] = $key_value['use_function']; $keys_extra[$module_keys[$j]]['set_function'] = $key_value['set_function']; } $module_info['keys'] = $keys_extra; return $module_info; } // languages $languages = xtc_get_languages(); $payment_array = array('paypalplus', 'paypalclassic', 'paypalcart', 'paypallink', 'paypalpluslink', 'paypalinstallment'); $payment_disallowed_array = array('banktransfer', 'billpay', 'billpaydebit', 'billpaypaylater', 'billpaytransactioncredit', 'billsafe_2', 'payone_installment', 'payone_otrans'); $status_array = array(array('id' => 1, 'text' => YES), array('id' => 0, 'text' => NO)); // include needed classes require_once DIR_FS_EXTERNAL . 'paypal/classes/PayPalAdmin.php'; $paypal = new PayPalAdmin(); if (isset($_GET['action'])) { switch ($_GET['action']) { case 'delete': $paypal->delete_webhook($_GET['id']); xtc_redirect(xtc_href_link(basename($PHP_SELF))); break; case 'update': if (isset($_POST['config'])) { if (isset($_POST['config']['thirdparty'])) { $thirdparty = array(); foreach ($_POST['config']['thirdparty'] as $key => $value) { if ($value == '1') { $thirdparty[] = $key; } }
<?php /* ----------------------------------------------------------------------------------------- $Id$ modified eCommerce Shopsoftware http://www.modified-shop.org Copyright (c) 2009 - 2013 [www.modified-shop.org] ----------------------------------------------------------------------------------------- Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ require 'includes/application_top.php'; // include needed classes require_once DIR_FS_EXTERNAL . 'paypal/classes/PayPalAdmin.php'; $paypal = new PayPalAdmin(); if (isset($_GET['action'])) { switch ($_GET['action']) { case 'update': $sql_data_array = array(); foreach ($_POST['config'] as $key => $value) { $sql_data_array[] = array('config_key' => $key, 'config_value' => $value); } $paypal->save_config($sql_data_array); xtc_redirect(xtc_href_link(basename($PHP_SELF))); break; case 'status_install': $paypal->status_install(); xtc_redirect(xtc_href_link(basename($PHP_SELF))); break; }