Feature/additional payment providers#29
Merged
nieprzecietny merged 4 commits intomasterfrom Mar 25, 2026
Merged
Conversation
added 4 commits
March 24, 2026 16:48
Dodano Moq v4 do csproj testów. Nowy plik ProviderUnitTests.cs — 65+ testów jednostkowych: - AdyenProvider: GetChannels, RequestPayment success/error, GetStatus, TransactionStatusChange valid/invalid signature, REFUND event - PayUProvider: GetChannels PLN/EUR, RequestPayment success/fail, GetStatus Finished/Processing/Rejected, webhook COMPLETED/CANCELED/PENDING, invalid signature - Przelewy24Provider: GetChannels PLN/EUR/USD, RequestPayment success/fail, GetStatus (Processing), webhook valid/invalid/verify-fail/malformed-json - TpayProvider: GetChannels PLN/EUR, RequestPayment success/fail, GetStatus Finished, webhook paid/pending/error/invalid-sig - HotPayProvider: GetChannels, RequestPayment success/fail, GetStatus (Processing), webhook SUCCESS/FAILURE/invalid-hash - PayNowProvider: GetChannels PLN BLIK, RequestPayment success/fail, GetStatus Finished/Processing, webhook CONFIRMED/PENDING/ERROR/invalid-sig - RevolutProvider: GetChannels PLN/EUR, RequestPayment success/fail, GetStatus completed/pending/cancelled/authorised, webhook ORDER_COMPLETED/ORDER_PAYMENT_DECLINED/ORDER_AUTHORISED/invalid-sig
…onfigureOptions - IExceptionHandlingProvider — summary + method docs - IExceptionHandlingOptionsBuilder — summary + all member docs - ExceptionOccuredResult — summary + constructor docs - SmtpEmailConfigureOptions — brakujący summary na klasie
Nowy plik ServiceCallerUnitTests.cs — ~45 testów dla czystych funkcji: - PayUServiceCaller.VerifySignature: MD5, SHA256, SHA-256 alias, błędny hash, brakujący segment, pusty string - HotPayServiceCaller.VerifyNotification: poprawny hash, zły hash, zły klucz, inny status - PayNowServiceCaller.VerifySignature: poprawny HMAC, invalid, pusty, zły klucz - RevolutServiceCaller.VerifyWebhookSignature: valid, zły timestamp, invalid sig, bez v1= prefix, zły klucz - AdyenServiceCaller.VerifyNotificationHmac: valid, invalid, nieprawidłowy hex key, zły klucz, inny payload - TpayServiceCaller.VerifyNotification: valid SHA256, invalid, zły kod, pusty - Przelewy24ServiceCaller.ComputeSign + VerifyNotification: poprawny SHA384, różne inputy, valid notify, zły sign, brak sign, złe JSON
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #29 +/- ##
==========================================
+ Coverage 34.34% 41.95% +7.60%
==========================================
Files 99 99
Lines 2594 2634 +40
Branches 222 231 +9
==========================================
+ Hits 891 1105 +214
+ Misses 1655 1481 -174
Partials 48 48 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.