Skip to content

Commit fd56a40

Browse files
tonymike99stainless-app[bot]
authored andcommitted
fix: add missing /v1/ prefix in getEmbedUrl URL path (#645)
getEmbedUrl() builds the Embedded Card UI iframe URL via manual string concatenation and was producing <baseUrl>/embed/card?... instead of <baseUrl>/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.
1 parent 4b5460b commit fd56a40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lithic-java-core/src/main/kotlin/com/lithic/api/services/async/CardServiceAsyncImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ class CardServiceAsyncImpl internal constructor(private val clientOptions: Clien
621621
return buildString {
622622
append(clientOptions.baseUrl())
623623
if (!endsWith("/")) append("/")
624-
append("embed/card")
624+
append("v1/embed/card")
625625
append("?embed_request=")
626626
append(URLEncoder.encode(embed_request, "UTF-8"))
627627
append("&hmac=")

lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/CardServiceImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ class CardServiceImpl internal constructor(private val clientOptions: ClientOpti
556556
return buildString {
557557
append(clientOptions.baseUrl())
558558
if (!endsWith("/")) append("/")
559-
append("embed/card")
559+
append("v1/embed/card")
560560
append("?embed_request=")
561561
append(URLEncoder.encode(embed_request, "UTF-8"))
562562
append("&hmac=")

0 commit comments

Comments
 (0)