Skip to content

Commit

Permalink
test adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
dili91 committed Nov 19, 2024
1 parent c0c47b1 commit b6a1c45
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import com.truelayer.java.versioninfo.LibraryInfoLoader;
import java.net.URI;
import java.nio.charset.StandardCharsets;
import java.text.MessageFormat;
import java.time.LocalDate;
import java.util.*;
import java.util.concurrent.ThreadLocalRandom;
Expand Down Expand Up @@ -824,8 +825,8 @@ private static AuthorizationFlowResponse startAuthorizationFlowWithRetry(String
String requestJsonString = mapper.writeValueAsString(jsonNode);

// build url
HttpUrl url = HttpUrl.parse(String.format(
"%s/payments/%s/authorization-flow",
HttpUrl url = HttpUrl.parse(MessageFormat.format(
"{0}payments/{1}/authorization-flow",
Environment.sandbox().getPaymentsApiUri().toString(), paymentId));

RequestBody body = RequestBody.create(requestJsonString, MediaType.parse("application/json; charset=utf-8"));
Expand Down

0 comments on commit b6a1c45

Please sign in to comment.