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( override suspend fun createVirtualAccountOrder(
userWalletId: UserWalletId, userWalletId: UserWalletId,
paymentAccountAddress: String, paymentAccountAddress: String,
idempotencyKey: String,
): Either<VisaApiError, String> { ): Either<VisaApiError, String> {
if (isMockMode) { if (isMockMode) {
mockVaOrderIds.add(userWalletId) mockVaOrderIds.add(userWalletId)
return MOCK_VA_ORDER_ID.right() return MOCK_VA_ORDER_ID.right()
} }
return real.createVirtualAccountOrder(userWalletId, paymentAccountAddress) return real.createVirtualAccountOrder(userWalletId, paymentAccountAddress, idempotencyKey)
} }
override suspend fun getVirtualAccountOrderId(userWalletId: UserWalletId): String? { override suspend fun getVirtualAccountOrderId(userWalletId: UserWalletId): String? {