-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix: Validate PENDING in resume if showSuccessCheckoutOnPendingPayment flag is true #957
Conversation
Generated by 🚫 Danger Swift against 133300d |
Appetize link: https://appetize.io/app/7fgmcxivdlkku5mrw243plzlpu |
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!
Sources/PrimerSDK/Classes/Core/Payment Services/CreateResumePaymentService.swift
Outdated
Show resolved
Hide resolved
Quality Gate failedFailed conditions |
f609972
to
133300d
Compare
…t flag is true (#957) * Validate PENDING in resume if flag is true * Remove unused code * Added unit tests for CreateResumeService * Make new flag a bool * Added strings for fintechture * Remove redundant enum * Split out createresume into seperate protocol
* Added poc of config caching * Extend network service to bubble up headers when wanted * Dont utilise headers in klarna configs * Added Swift-friendly Cache * Refactored caching logic to dedicated class * use refactored cache * Extract ttl from headers * Process images also for actions * Upgrade config endpoints to 2.3 * Add config cache tests * Fix tests for new interface * update fallback to 0 * add tests for config module * Add responses to mocks * Formatting: Update ConfigurationCache.swift * Formatting: Update PrimerAPIConfigurationModule.swift * Formatting: Update PrimerAPIConfigurationModule.swift * Formatting: Update DefaultNetworkService.swift * Formatting: Update NetworkService.swift * Clear cache after tests * Update apiVersion in tests * Added events for loading * Clear cache on cleanup * Add checkout session active * Record load of vault manager * Record headless loading event * fix: Validate PENDING in resume if showSuccessCheckoutOnPendingPayment flag is true (#957) * Validate PENDING in resume if flag is true * Remove unused code * Added unit tests for CreateResumeService * Make new flag a bool * Added strings for fintechture * Remove redundant enum * Split out createresume into seperate protocol * Fix conflicts * Release 2.28.0 (#963) [create-pull-request] automated change Co-authored-by: NQuinn27 <3179752+NQuinn27@users.noreply.github.com> * Add clientSessionCachingEnabled flag * Add unit test to test for flag * move cache clean to cleanup * Implement LogReporter * Fix use cached config test --------- Co-authored-by: Security Integrations <security-integrations@primer.io> Co-authored-by: NQuinn27 <3179752+NQuinn27@users.noreply.github.com>
Description
This PR respects the
showSuccessCheckoutOnPendingPayment
flag when validating Payment response on the/resume
call.PENDING
andshowSuccessCheckoutOnPendingPayment
isfalse
, we will throw the payment failed error, as we would if the state wasFAILED
PENDING
andshowSuccessCheckoutOnPendingPayment
istrue
, we will continue on the success pathManual Testing
Test with Fintechture as outlined here
Screenshots
If applicable, otherwise remove this section
Contributor Checklist
Reviewer Checklist
Before Merging
Other Stuff