update plugin setting
This commit is contained in:
parent
4c012d62d5
commit
290f85b4a3
|
|
@ -68,7 +68,7 @@ class SettingRepo
|
||||||
|
|
||||||
public static function getPluginStatus($pluginCode): bool
|
public static function getPluginStatus($pluginCode): bool
|
||||||
{
|
{
|
||||||
$status = setting("{$pluginCode}.status");
|
$status = plugin_setting("{$pluginCode}.status");
|
||||||
return (bool)$status;
|
return (bool)$status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ class PaymentService
|
||||||
*/
|
*/
|
||||||
public function capture($creditCardData): bool
|
public function capture($creditCardData): bool
|
||||||
{
|
{
|
||||||
$apiKey = setting('bk_stripe.secret_key');
|
$apiKey = plugin_setting('bk_stripe.secret_key');
|
||||||
Stripe::setApiKey($apiKey);
|
Stripe::setApiKey($apiKey);
|
||||||
$token = Token::create([
|
$token = Token::create([
|
||||||
'card' => [
|
'card' => [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue