|
@@ -371,40 +371,3 @@ function checkPriceAmount($amount, $currencyCode, $payment_method)
|
|
];
|
|
];
|
|
return $amount >= $minimums[$currencyCode][$payment_method];
|
|
return $amount >= $minimums[$currencyCode][$payment_method];
|
|
}
|
|
}
|
|
-
|
|
|
|
-function getStripeConfig()
|
|
|
|
-{
|
|
|
|
- return [
|
|
|
|
- "name" => "Stripe",
|
|
|
|
- "description" => "Stripe payment gateway",
|
|
|
|
- "mode" => [
|
|
|
|
- "type" => "select",
|
|
|
|
- "label" => "Mode",
|
|
|
|
- "value" => config("APP_ENV") == 'local' ? "sandbox" : "live",
|
|
|
|
- "options" => [
|
|
|
|
- "sandbox" => "Sandbox",
|
|
|
|
- "live" => "Live",
|
|
|
|
- ],
|
|
|
|
- ],
|
|
|
|
- "TEST_SECRET" => [
|
|
|
|
- "type" => "text",
|
|
|
|
- "label" => "Test Secret Key",
|
|
|
|
- "value" => config("SETTINGS::PAYMENTS:STRIPE:TEST_SECRET"),
|
|
|
|
- ],
|
|
|
|
- "SECRET" => [
|
|
|
|
- "type" => "text",
|
|
|
|
- "label" => "Live Secret Key",
|
|
|
|
- "value" => config("SETTINGS::PAYMENTS:STRIPE:SECRET"),
|
|
|
|
- ],
|
|
|
|
- "ENDPOINT_TEST_SECRET" => [
|
|
|
|
- "type" => "text",
|
|
|
|
- "label" => "Test Endpoint Secret",
|
|
|
|
- "value" => config("SETTINGS::PAYMENTS:STRIPE:ENDPOINT_TEST_SECRET"),
|
|
|
|
- ],
|
|
|
|
- "ENDPOINT_SECRET" => [
|
|
|
|
- "type" => "text",
|
|
|
|
- "label" => "Live Endpoint Secret",
|
|
|
|
- "value" => config("SETTINGS::PAYMENTS:STRIPE:ENDPOINT_SECRET"),
|
|
|
|
- ],
|
|
|
|
- ];
|
|
|
|
-}
|
|
|