Please help how can i covert this vb code to b4a thanks in advance
B4X:
Private Async Sub Btnsubmit_OnClicked(ByVal sender As Object, ByVal e As EventArgs)
Dim ac As Subscriptiondetails = New Subscriptiondetails
Dim oldphone As String = phone.Text
If (phone.Text.StartsWith("0") = true) Then
Dim str As String = phone.Text
str = ("256" + str.Remove(0, 1))
phone.Text = str
End If
ac.username = "5"
ac.password = "ty3"
ac.api = "depositmobilemoney"
ac.msisdn = phone.Text
ac.amount = 10000
ac.narration = "Subscription"
ac.reference = "sbscr"
ac.status_notification_url = "http://108.175.14.205/SMISApi/api/smis/subscriptionresponse"
Dim json = JsonConvert.SerializeObject(ac)
Dim content = New StringContent(json, Encoding.UTF8, "application/Json")
Dim client As HttpClient = New HttpClient
Dim result As HttpResponseMessage = client.PostAsync("https://payments-dev.blink.co.ug/api/", content)
If result.IsSuccessStatusCode Then
Dim data = result.Content.ReadAsStringAsync
Dim product = JsonConvert.DeserializeObject(Of ResponseexternalApi)(data)
Dim y As String = product.status.ToString
Dim z As String = product.error.ToString
Dim w As String = product.reference_code.ToString
If ((y = "PENDING") _
AndAlso (z = "false")) Then
DisplayAlert("Hey!", "Yr subscription IS BEING WORKED UPON THANK YOU", "Alright")
End If
End If
End Sub