Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
295
Merge Requests
39
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
5ce198c8
Commit
5ce198c8
authored
27 minutes ago
by
Mark Harding
Browse files
Options
Download
(fix): if recurring then it can't be once. Log in sentry so we can debug - closes
#1188
parent
68f2470f
master
No related merge requests found
Pipeline
#99798493
waiting for delayed job with stages
in 8 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Controllers/api/v2/wire.php
View file @
5ce198c8
...
...
@@ -61,6 +61,12 @@ class wire implements Interfaces\Api
$recurring
=
isset
(
$_POST
[
'recurring'
])
?
$_POST
[
'recurring'
]
:
false
;
$recurringInterval
=
$_POST
[
'recurring_interval'
]
??
'once'
;
if
(
$recurring
&&
$recurringInterval
===
'once'
)
{
$recurringInterval
=
'monthly'
;
// Client side bug we need to track down, so lets log in Sentry
\Sentry\captureMessage
(
"Recurring Subscription was created with 'once' interval"
);
}
if
(
!
$amount
)
{
return
Factory
::
response
([
'status'
=>
'error'
,
'message'
=>
'you must send an amount'
]);
}
...
...
This diff is collapsed.
Please
register
or
sign in
to comment