Updated on 2026-08-14

This commit is contained in:
Tangem 2026-07-08 11:23:05 +03:00
parent 8c93c3b23c
commit f4bd92ef80

View file

@ -78,12 +78,13 @@ internal class MockAwareOnboardingRepository @Inject constructor(
override suspend fun createVirtualAccountOrder(
userWalletId: UserWalletId,
paymentAccountAddress: String,
idempotencyKey: String,
): Either<VisaApiError, String> {
if (isMockMode) {
mockVaOrderIds.add(userWalletId)
return MOCK_VA_ORDER_ID.right()
}
return real.createVirtualAccountOrder(userWalletId, paymentAccountAddress)
return real.createVirtualAccountOrder(userWalletId, paymentAccountAddress, idempotencyKey)
}
override suspend fun getVirtualAccountOrderId(userWalletId: UserWalletId): String? {