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
3
Merge Requests
3
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
a year ago
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: reccurent payment : add TODOs
parent
502980aa
master
…
6232-6227-sprint5-core
6342-territory-filter-in-flux-menus
6366-authorized-vs-authorised-and-another-detail
6367-cancel-recurring-payment
7376-reconversion-frquency-entity-text
7377-presta-reconv-frequency-default
7516-add-operateur-to-presta-exports
7694-adherent-admin-field-not-required
7892-dont-automaticaly-enable-user-at-pswd-creation
7900-cotisation-reminder-default
7915-quartier-as-list
7916-add-params-to-household-allowance-calculation
7920-alternate-comptoir-payment-types
7977-cotis-minimum-by-share
7978-hide-profils-de-cotisation-menus-in-household
develop
payment-hotfix
sprint-2-montpellier
ssa-gironde
ssagironde_prod
ssamontpellier_prod
tavTOKohinos
tavTOKohinos-initial-merge
1 merge request
!77
payzen preccurent payment
Hide 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
);
...
...
This diff is collapsed.
Click to expand it.
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