Verified Commit df5d41ef authored by Sarath's avatar Sarath
Browse files

Paynym add api url fix

parent d891210b
......@@ -125,7 +125,7 @@ class PayNymApiService(private val paynymCode: String, private val context: Cont
if (payNymToken == null) {
getToken()
}
val paynymCode = BIP47Util.getInstance(context).paymentCode
val paynymCode = BIP47Util.getInstance(context).paymentCode.toString()
val paynymCodeFeat = BIP47Util.getInstance(context).featurePaymentCode
val payload = JSONObject().apply {
put("nym", paynymCode)
......@@ -134,7 +134,7 @@ class PayNymApiService(private val paynymCode: String, private val context: Cont
}
val builder = Request.Builder();
val body: RequestBody = RequestBody.create(JSON, payload.toString())
builder.url("$URL/create")
builder.url("$URL/nym/add")
return this.executeRequest(builder.post(body).build())
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment