cipf v0.3.13 paypal credentials now from admin menu
This commit is contained in:
@@ -133,7 +133,7 @@ class PLGNTLS_class {
|
||||
const TOGGLE_ADMIN_MENU = ['_name'=>'toggle_admin_menu_option_cipf', 'show'=>'show', 'hide'=>'hide'];
|
||||
const ADMIN_POST_PAYPAL = 'paypal_credentials_CIPF';
|
||||
const ADMIN_MENU_NONCE_PAYPAL = ['_name'=>'nonce_admin_menu_paypal_cipf', '_action'=>'action_admin_menu_paypal_cipf'];
|
||||
const ADMIN_MENU_PAYPAL_SANDBOX_LIVE = ['_name'=>'sandbox_live', 'sandbox'=>'sandbox', 'live'=>'live'];
|
||||
const ADMIN_MENU_PAYPAL_INPUTS = ['sandbox_or_live' => 'sandbox_or_live', 'client_id' => 'client_id', 'client_secret' =>'client_secret'];
|
||||
|
||||
// FORMS
|
||||
const FORM_PROF_COMMANDE_ID = 'prof_commande';
|
||||
@@ -229,40 +229,6 @@ class PLGNTLS_class {
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* get and set paypal options
|
||||
*
|
||||
*/
|
||||
public static function set_paypal_client_id($client_id) {
|
||||
}
|
||||
public static function set_paypal_client_secret($client_secret) {
|
||||
}
|
||||
public static function set_paypal_api_base_url($api_url) {
|
||||
}
|
||||
public static function get_paypal_client_id() {
|
||||
/*
|
||||
return self::PAYPAL_HUGO_LIVE_CLIENT_ID;
|
||||
return self::PAYPAL_DIEGO_SBOX_CLIENT_ID;
|
||||
return self::PAYPAL_DIEGO_LIVE_CLIENT_ID;
|
||||
*/
|
||||
return self::PAYPAL_HUGO_SBOX_CLIENT_ID;
|
||||
}
|
||||
public static function get_paypal_client_secret() {
|
||||
/*
|
||||
return self::PAYPAL_HUGO_LIVE_CLIENT_SECRET;
|
||||
return self::PAYPAL_DIEGO_SBOX_CLIENT_SECRET;
|
||||
return self::PAYPAL_DIEGO_LIVE_CLIENT_SECRET;
|
||||
*/
|
||||
return self::PAYPAL_HUGO_SBOX_CLIENT_SECRET;
|
||||
}
|
||||
public static function get_paypal_api_base_url() {
|
||||
/*
|
||||
return self::PAYPAL_LIVE_API_BASE_URL;
|
||||
*/
|
||||
return self::PAYPAL_SBOX_API_BASE_URL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user