@@ -336,7 +336,7 @@ struct StandaloneUrlView: View {
336336 . frame ( height: 48 )
337337 . accessibilityIdentifier ( " swishButton " )
338338 }
339- . disabled ( viewModel. swishNumber. isEmpty)
339+ . disabled ( viewModel. swishNumber. isEmpty || viewModel . isLoadingNativePayment )
340340 . foregroundColor ( !viewModel. swishNumber. isEmpty ? . white : . gray)
341341 . background ( !viewModel. swishNumber. isEmpty ? . black : . backgroundGray)
342342 . cornerRadius ( 30 )
@@ -354,6 +354,7 @@ struct StandaloneUrlView: View {
354354 . frame ( height: 48 )
355355 . accessibilityIdentifier ( " swishButton " )
356356 }
357+ . disabled ( viewModel. isLoadingNativePayment)
357358 . foregroundColor ( . white)
358359 . background ( . black)
359360 . cornerRadius ( 30 )
@@ -373,6 +374,7 @@ struct StandaloneUrlView: View {
373374 . frame ( height: 48 )
374375 . accessibilityIdentifier ( " swishPrefillButton " )
375376 }
377+ . disabled ( viewModel. isLoadingNativePayment)
376378 . foregroundColor ( . white)
377379 . background ( . black)
378380 . cornerRadius ( 30 )
@@ -398,6 +400,7 @@ struct StandaloneUrlView: View {
398400 . accessibilityIdentifier ( " creditCardPrefillButton " )
399401
400402 }
403+ . disabled ( viewModel. isLoadingNativePayment)
401404 . foregroundColor ( . white)
402405 . background ( . black)
403406 . cornerRadius ( 30 )
@@ -417,6 +420,7 @@ struct StandaloneUrlView: View {
417420 . frame ( height: 48 )
418421 . accessibilityIdentifier ( " newCreditCardButton " )
419422 }
423+ . disabled ( viewModel. isLoadingNativePayment)
420424 . foregroundColor ( . white)
421425 . background ( . black)
422426 . cornerRadius ( 30 )
@@ -447,6 +451,7 @@ struct StandaloneUrlView: View {
447451 . frame ( height: 48 )
448452 . accessibilityIdentifier ( " applePayExampleAppButton " )
449453 }
454+ . disabled ( viewModel. isLoadingNativePayment)
450455 . foregroundColor ( . white)
451456 . background ( . black)
452457 . cornerRadius ( 30 )
@@ -467,6 +472,7 @@ struct StandaloneUrlView: View {
467472 . frame ( height: 48 )
468473 . accessibilityIdentifier ( " applePayCharityButton " )
469474 }
475+ . disabled ( viewModel. isLoadingNativePayment)
470476 . foregroundColor ( . white)
471477 . background ( . black)
472478 . cornerRadius ( 30 )
@@ -488,6 +494,7 @@ struct StandaloneUrlView: View {
488494 . accessibilityIdentifier ( " webBasedButton " )
489495
490496 }
497+ . disabled ( viewModel. isLoadingNativePayment)
491498 . foregroundColor ( . white)
492499 . background ( . black)
493500 . cornerRadius ( 30 )
@@ -507,6 +514,7 @@ struct StandaloneUrlView: View {
507514 . accessibilityIdentifier ( " webBasedButton " )
508515
509516 }
517+ . disabled ( viewModel. isLoadingNativePayment)
510518 . foregroundColor ( . white)
511519 . background ( . black)
512520 . cornerRadius ( 30 )
@@ -532,6 +540,7 @@ struct StandaloneUrlView: View {
532540 . accessibilityIdentifier ( " webBasedButton " )
533541
534542 }
543+ . disabled ( viewModel. isLoadingNativePayment)
535544 . foregroundColor ( . white)
536545 . background ( . black)
537546 . cornerRadius ( 30 )
0 commit comments