question

superdave avatar image
superdave asked David Marginian Deactivated commented

Concurrent + File Not Found ERROR

I am listening to ACTION_PAYMENT_PROCESSED inside a native APP, and pass context and intent to a function like the following:

case Intents.ACTION_PAYMENT_PROCESSED:
    /*
        0 = "com.clover.intent.extra.ORDER_ID"
        1 = "com.clover.intent.extra.AMOUNT"
        2 = "com.clover.intent.extra.TENDER"
        3 = "com.clover.intent.extra.PAYMENT_ID"
    */
    try {
        payment_processed(context, intent);
    } catch (ExecutionException | InterruptedException e) {
        Toast.makeText(context,e.toString(),Toast.LENGTH_LONG).show();
    }
    break;

In the function, I am currently hardcoded a URL to test, but it gives me the following error when I test it on Clover Mini DevKit:


whatsapp-image-2022-03-20-at-114907-pm.jpeg

Is there anything wrong?


REST API
3 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.

David Marginian avatar image David Marginian ♦♦ commented ·
Is that URL valid? Regardless, in general you shouldn't be making calls to our REST API from a Clover device.
1 Like 1 ·
superdave avatar image superdave David Marginian ♦♦ commented ·
it is a valid URL, I tested it in a browser.
0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ superdave commented ·

The payment is on the device, you don't need to make an API call to the server to obtain it. You should be using the Android SDK on the device.

0 Likes 0 ·

0 Answers

·

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