Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Iseard
Kudos-Donations
Commits
adb5a80d
Commit
adb5a80d
authored
Oct 15, 2021
by
Michael Iseard
Browse files
Remove logging from static function to prevent error on first activation
parent
44a9061e
Changes
1
Show whitespace changes
Inline
Side-by-side
app/Service/PaymentService.php
View file @
adb5a80d
...
...
@@ -7,6 +7,7 @@ use Kudos\Entity\SubscriptionEntity;
use
Kudos\Entity\TransactionEntity
;
use
Kudos\Helpers\Settings
;
use
Kudos\Helpers\Utils
;
use
Kudos\Helpers\WpDb
;
use
Kudos\Service\Vendor\MollieVendor
;
use
Kudos\Service\Vendor\VendorInterface
;
use
Mollie\Api\Resources\Payment
;
...
...
@@ -58,12 +59,7 @@ class PaymentService {
private
static
function
get_current_vendor_class
():
string
{
switch
(
Settings
::
get_setting
(
'payment_vendor'
)
)
{
case
'mollie'
:
return
MollieVendor
::
class
;
default
:
$logger
=
new
LoggerService
();
$logger
->
warning
(
'No payment vendor specified. Using Mollie.'
);
return
MollieVendor
::
class
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment