Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agplv3
kohinos-tav
Commits
f424b1b8
Commit
f424b1b8
authored
Mar 26, 2024
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug doneAction multievent generation in recurring case
parent
bed27879
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
PaymentController.php
src/Controller/PaymentController.php
+18
-0
No files found.
src/Controller/PaymentController.php
View file @
f424b1b8
...
@@ -211,6 +211,24 @@ class PaymentController extends AbstractController
...
@@ -211,6 +211,24 @@ class PaymentController extends AbstractController
*/
*/
public
function
doneAction
(
Request
$request
)
public
function
doneAction
(
Request
$request
)
{
{
//As I don't understand why so many events are created here, I am just trying to
//canalyze the recurring paiement creations out of here without generating any event.
if
(
$request
->
request
->
get
(
'vads_page_action'
)
===
'REGISTER_PAY_SUBSCRIBE'
)
{
if
(
$request
->
request
->
get
(
'vads_identifier_status'
)
===
'CREATED'
)
{
$this
->
addFlash
(
'success'
,
$this
->
translator
->
trans
(
'Cotisation payée et payment récurrent enregistré !'
)
);
}
else
{
$this
->
addFlash
(
'error'
,
$this
->
translator
->
trans
(
'Cotisation non payée et payement récurrent non enregistré.'
)
);
}
return
$this
->
redirectToRoute
(
'index'
);
}
try
{
try
{
$token
=
$this
->
payum
->
getHttpRequestVerifier
()
->
verify
(
$request
);
$token
=
$this
->
payum
->
getHttpRequestVerifier
()
->
verify
(
$request
);
}
catch
(
\Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
...
...
Write
Preview
Markdown
is supported
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