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
1
Merge Requests
1
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
9cf0fb7a
Commit
9cf0fb7a
authored
Mar 21, 2024
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: reccurent payment : add TODOs
parent
502980aa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
PaymentStatusExtension.php
src/EventListener/PaymentStatusExtension.php
+3
-0
No files found.
src/EventListener/PaymentStatusExtension.php
View file @
9cf0fb7a
...
...
@@ -98,6 +98,7 @@ class PaymentStatusExtension implements ExtensionInterface
$current_payment_status
=
$payment
->
getStatus
();
// Payment can be captured if it hasn't been captured before
// TODO for recurrent payment: allow STATUS_CAPTURED and STATUS_AUTHORIZED for recurrent payment only. The payment was already captured.
if
(
$current_payment_status
!==
GetHumanStatus
::
STATUS_CAPTURED
&&
$current_payment_status
!=
GetHumanStatus
::
STATUS_AUTHORIZED
)
{
...
...
@@ -276,6 +277,7 @@ class PaymentStatusExtension implements ExtensionInterface
$flux
->
setOperateur
(
$op
);
$flux
->
setReconverti
(
true
);
// TODO for recurrent payment: save don only for first payment, otherwise remove don
if
(
null
!=
$flux
->
getDon
())
{
$flux
->
getDon
()
->
setType
(
Don
::
TYPE_DON_ADHERENT
);
$flux
->
getDon
()
->
setOperateur
(
$op
);
...
...
@@ -298,6 +300,7 @@ class PaymentStatusExtension implements ExtensionInterface
}
}
// TODO for recurrent payment: don't delete notify token because we'll be notified on next recurrence payments
// Invalidate (delete) notify token after payment is captured
$this
->
em
->
remove
(
$token
);
...
...
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