diff --git a/README.md b/README.md index 4974870..67dc1d5 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ package manager for Java. Add in your project build.gradle file the veryfi android SDK dependency: ```ruby dependencies { - implementation 'com.veryfi:veryfi-android:1.0.1' + implementation 'com.veryfi:veryfi-android:1.0.2' } ``` diff --git a/android/src/main/java/com/veryfi/android/ClientImpl.kt b/android/src/main/java/com/veryfi/android/ClientImpl.kt index db4a3e1..efc77e9 100644 --- a/android/src/main/java/com/veryfi/android/ClientImpl.kt +++ b/android/src/main/java/com/veryfi/android/ClientImpl.kt @@ -223,8 +223,7 @@ open class ClientImpl(private val clientData: ClientData) : Client { ): HttpURLConnection { val date = Date() val timeStamp: Long = date.time - val partnerURL = "${baseUrl}v${apiVersion}/partner" - val url = URL("$partnerURL/$endPoint/") + val url = URL("${baseUrl}v${apiVersion}/${endPoint}/") val httpConnection = url.openConnection() as HttpURLConnection httpConnection.requestMethod = httpVerb httpConnection.connectTimeout = timeOut