From 8a08eeda606330b471c906dcd311cc80d026bc1a Mon Sep 17 00:00:00 2001 From: Danilo Joksimovic Date: Fri, 7 Jun 2024 19:18:10 -0400 Subject: [PATCH] Rotate sample app value for customer-id Force re-tokenization of test cards in mobile-qa-tets --- .../com/joinforage/android/example/data/PaymentsRepository.kt | 2 +- .../flow/payment/capture/FlowCapturePaymentViewModel.kt | 2 +- .../example/ui/complete/flow/tokenize/FlowTokenizeViewModel.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sample-app/src/main/java/com/joinforage/android/example/data/PaymentsRepository.kt b/sample-app/src/main/java/com/joinforage/android/example/data/PaymentsRepository.kt index 7425bf7b..1effa55e 100644 --- a/sample-app/src/main/java/com/joinforage/android/example/data/PaymentsRepository.kt +++ b/sample-app/src/main/java/com/joinforage/android/example/data/PaymentsRepository.kt @@ -34,7 +34,7 @@ class PaymentsRepository(sessionToken: String) { metadata = metadata, deliveryAddress = deliveryAddress, isDelivery = isDelivery, - customerId = "android-test-customer-id" + customerId = "android-test-customer-id-2" ) ) } diff --git a/sample-app/src/main/java/com/joinforage/android/example/ui/complete/flow/payment/capture/FlowCapturePaymentViewModel.kt b/sample-app/src/main/java/com/joinforage/android/example/ui/complete/flow/payment/capture/FlowCapturePaymentViewModel.kt index c4e8f8ef..234c368c 100644 --- a/sample-app/src/main/java/com/joinforage/android/example/ui/complete/flow/payment/capture/FlowCapturePaymentViewModel.kt +++ b/sample-app/src/main/java/com/joinforage/android/example/ui/complete/flow/payment/capture/FlowCapturePaymentViewModel.kt @@ -60,7 +60,7 @@ class FlowCapturePaymentViewModel @Inject constructor( ) } is ForageApiResponse.Failure -> { - Log.d(TAG, "Capture Snap Payment Response: ${response.errors[0].message}") + Log.d(TAG, "Capture Snap Payment Response: ${response.errors[0].message} Payment: $snapPaymentRef") _uiState.value = _uiState.value!!.copy( isLoading = false, diff --git a/sample-app/src/main/java/com/joinforage/android/example/ui/complete/flow/tokenize/FlowTokenizeViewModel.kt b/sample-app/src/main/java/com/joinforage/android/example/ui/complete/flow/tokenize/FlowTokenizeViewModel.kt index f8a28b12..54ed4b8b 100644 --- a/sample-app/src/main/java/com/joinforage/android/example/ui/complete/flow/tokenize/FlowTokenizeViewModel.kt +++ b/sample-app/src/main/java/com/joinforage/android/example/ui/complete/flow/tokenize/FlowTokenizeViewModel.kt @@ -53,7 +53,7 @@ class FlowTokenizeViewModel @Inject constructor( val response = ForageSDK().tokenizeEBTCard( TokenizeEBTCardParams( foragePanEditText = foragePanEditText, - customerId = "android-test-customer-id" + customerId = "android-test-customer-id-2" ) )