From da673d4c6b730beb11e3cd2bbaada4d2c981a2ac Mon Sep 17 00:00:00 2001 From: Tony Mike Auxen Date: Tue, 17 Mar 2026 13:45:42 +0530 Subject: [PATCH] fix: add missing /v1/ prefix in getEmbedUrl URL path getEmbedUrl() builds the Embedded Card UI iframe URL via manual string concatenation and was producing /embed/card?... instead of /v1/embed/card?.... This is the same class of bug that was fixed for getEmbedHtml() in commit 6659ab9, but getEmbedUrl() was missed because it uses buildString rather than HttpRequest.builder() with addPathSegments. --- .../com/lithic/api/services/async/CardServiceAsyncImpl.kt | 2 +- .../kotlin/com/lithic/api/services/blocking/CardServiceImpl.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/services/async/CardServiceAsyncImpl.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/services/async/CardServiceAsyncImpl.kt index c0f754b8..dd8e6417 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/services/async/CardServiceAsyncImpl.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/services/async/CardServiceAsyncImpl.kt @@ -621,7 +621,7 @@ class CardServiceAsyncImpl internal constructor(private val clientOptions: Clien return buildString { append(clientOptions.baseUrl()) if (!endsWith("/")) append("/") - append("embed/card") + append("v1/embed/card") append("?embed_request=") append(URLEncoder.encode(embed_request, "UTF-8")) append("&hmac=") diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/CardServiceImpl.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/CardServiceImpl.kt index 9a1991ad..f290bdeb 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/CardServiceImpl.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/CardServiceImpl.kt @@ -556,7 +556,7 @@ class CardServiceImpl internal constructor(private val clientOptions: ClientOpti return buildString { append(clientOptions.baseUrl()) if (!endsWith("/")) append("/") - append("embed/card") + append("v1/embed/card") append("?embed_request=") append(URLEncoder.encode(embed_request, "UTF-8")) append("&hmac=")