question

hardikadroja510 avatar image
hardikadroja510 asked David Marginian Deactivated commented

Clover Mini 2nd generation is not submitting the form properly

           String connstr = "OUR LINK"; 
           URL url = new URL(connstr);
            HttpURLConnection http = (HttpURLConnection) url.openConnection();
            http.setRequestMethod("POST");
            http.setDoInput(true);
            http.setDoOutput(true);

            OutputStream ops = http.getOutputStream();
            BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(ops, "UTF-8"));
            String data =URLEncoder.encode("name_1","UTF-8")+"="+URLEncoder.encode(name_1,"UTF-8")+"&"+
                         URLEncoder.encode("name_2","UTF-8")+"="+URLEncoder.encode(name_2,"UTF-8");


We are not getting in response in our url in clover mini 2nd generation.

We are getting proper response in other hardware devices. We also setup android studio with Clover Mini 2nd generation and we are getting proper response. But problem in real device and not getting any parameter in request in our link.

Can anyone help me for this issue ?

REST API
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated commented

Have you debugged your code, checked the logs, etc.? Without more information and details of the error we can't help you.

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

hardikadroja510 avatar image hardikadroja510 commented ·

Our code is mostly working with all the devices. One merchant can successfully installed in their first device but some merchants have more devices so they are not installed in second devices.


Have you any idea what is issue behind this ?

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ hardikadroja510 commented ·

Without more information and details of the error we can't help you.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community