/** * update stripe api setting */ function set_api($api) { update_option('et_stripe_api', $api); if (!$this->is_enable()) { $gateways = ET_Payment::get_gateways(); if (isset($gateways['stripe']['active']) && $gateways['stripe']['active'] != -1) { ET_Payment::disable_gateway('stripe'); return __('Api setting invalid', ET_DOMAIN); } } return true; }
function et_get_enable_gateways() { $enable = ET_Payment::get_gateways(); return $enable; }