-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DON-998: set PI just before processing the payment instead of at the #1151
Conversation
time of creating the donation DON-998 - set exception class
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1151 +/- ##
===========================================
- Coverage 74.79% 74.28% -0.52%
===========================================
Files 128 128
Lines 5531 5588 +57
===========================================
+ Hits 4137 4151 +14
- Misses 1394 1437 +43 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the main direction of the change look right; flagged a few issues inline
/** | ||
* We only set Payment Intent on the day of the payment due to stripe limitations, see | ||
*/ | ||
public function findDonationsToSetPaymentIntent(\DateTimeImmutable $atDateTime, int $limit): array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to have no test coverage – would be a good fit for an integration test?
…r time extent of retries
6557795
to
eac45cd
Compare
…ady worked around
* create test mandate and optionally pass when creating test donation * stack all em persisits right before flush * assert donations not empty and match by uuid * add return type to set payment intent method * adding var_dump made it all actually pass
* inline amounts * use charity's salesforceID from parent
* remove 'missing salesforceId' exeptions, it will never be null
563c2ed
to
913327a
Compare
95d34c4
to
06be75c
Compare
72b9593
to
ea92c8a
Compare
fad099c
to
da7ac4f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
8e6bbb1
to
410d03d
Compare
time of creating the donation