Updated on 2026-08-14
This commit is contained in:
parent
370d902dad
commit
9efe573323
22 changed files with 360 additions and 39 deletions
|
|
@ -181,13 +181,14 @@ internal class DefaultOnboardingRepository @Inject constructor(
|
|||
override suspend fun createVirtualAccountOrder(
|
||||
userWalletId: UserWalletId,
|
||||
paymentAccountAddress: String,
|
||||
idempotencyKey: String,
|
||||
): Either<VisaApiError, String> = withContext(dispatcherProvider.io) {
|
||||
requestHelper.performRequest(userWalletId) { authHeader ->
|
||||
tangemPayApi.createVirtualAccountOrder(
|
||||
authHeader = authHeader,
|
||||
body = VirtualAccountOrderRequest(
|
||||
data = VirtualAccountOrderRequest.Data(depositAddress = paymentAccountAddress),
|
||||
idempotencyKey = UUID.randomUUID().toString(),
|
||||
idempotencyKey = idempotencyKey,
|
||||
),
|
||||
)
|
||||
}.map { response -> requireNotNull(response.result).id }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue