Updated on 2026-08-14
This commit is contained in:
parent
8c93c3b23c
commit
f4bd92ef80
1 changed files with 2 additions and 1 deletions
|
|
@ -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? {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue