Skip to content
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

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

dorota-joanna
Copy link
Contributor

@dorota-joanna dorota-joanna commented Dec 27, 2024

time of creating the donation

Copy link

codecov bot commented Dec 27, 2024

Codecov Report

Attention: Patch coverage is 0% with 25 lines in your changes missing coverage. Please review.

Project coverage is 74.99%. Comparing base (a94f569) to head (a78a574).

Files with missing lines Patch % Lines
src/Domain/DoctrineDonationRepository.php 0.00% 15 Missing ⚠️
...pplication/Commands/TakeRegularGivingDonations.php 0.00% 8 Missing ⚠️
src/Domain/DonationService.php 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1151      +/-   ##
===========================================
- Coverage    75.31%   74.99%   -0.33%     
===========================================
  Files          124      124              
  Lines         5465     5487      +22     
===========================================
- Hits          4116     4115       -1     
- Misses        1349     1372      +23     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@NoelLH NoelLH left a 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

src/Application/Commands/TakeRegularGivingDonations.php Outdated Show resolved Hide resolved
/**
* We only set Payment Intent on the day of the payment due to stripe limitations, see
*/
public function findDonationsToSetPaymentIntent(\DateTimeImmutable $atDateTime, int $limit): array
Copy link
Contributor

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?

src/Domain/DoctrineDonationRepository.php Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants