Skip to content

Commit

Permalink
Merge branch 'feature/sca-method-request-empty-href-string' into 'fea…
Browse files Browse the repository at this point in the history
…ture/native-payments'

Don't attempt loading empty SCA Method Request href strings

See merge request swedbank-pay/swedbank-pay-sdk-ios!9
  • Loading branch information
alleus committed Oct 21, 2024
2 parents 3172ef8 + 36ee745 commit 8ff6663
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SwedbankPaySDK/Classes/SwedbankPayPaymentSession.swift
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,8 @@ public extension SwedbankPaySDK {
self.launchClientApp(task: launchClientApp.firstTask(with: .launchClientApp)!)
} else if let scaMethodRequest = operations.first(where: { $0.firstTask(with: .scaMethodRequest) != nil }),
let task = scaMethodRequest.firstTask(with: .scaMethodRequest),
task.href != nil,
let href = task.href,
!href.isEmpty,
!scaMethodRequestDataPerformed.contains(where: { $0.name == task.expects?.first(where: { $0.name == "threeDSMethodData" })?.value ?? "null" }) {
DispatchQueue.main.async {
self.webViewService.load(task: task) { result in
Expand Down

0 comments on commit 8ff6663

Please sign in to comment.