question

tusharj avatar image
tusharj asked David Marginian Deactivated commented

how to refresh selected order items in clover Register app after payment of some items from third party app?

1- There are 4 current order in clover Register app which I have selected.

screenshot-1607685.png


2- Suppose 2 order Beer and Tissue paper I have paid through the custom third party app.

 private fun initPayment() {
        GlobalScope.launch(IO) {
            GlobalScope.launch(Main) {
                val intent = Intent()
                intent.action = Intents.ACTION_CLOVER_PAY
                intent.putExtra(Intents.TRANSACTION_TYPE_PAYMENT, Intents.TRANSACTION_TYPE_PAYMENT)
                intent.putExtra(Intents.EXTRA_ORDER_ID, mOrder?.id)
                intent.putExtra(Intents.EXTRA_AMOUNT, totalPrice)
                startActivityForResult(intent, REQUEST_CODE_FOR_PAYMENT)
//                dismissProgressDialog()
            }
        }
    }

screenshot-1607684887.png

So i want that item (Beer, Tissue paper) not show in clover Register app, which i have paid from custom third party app.
OrdersPayments
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

I am sorry but your question is not clear. You are creating an order via your app (Is your app on running on the Clover device and you are using the Android SDK, some other method? Or are you using the REST API?). Your subject says "refresh register payment order after successful payment" but your questions says you do NOT want the order to show up in Clover's register app? Which is it?

4 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.

tusharj avatar image tusharj commented ·

Question have been updated please have a look.

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

You don't have 4 orders, you have 4 items on an order. You want to hide the two items that you have paid for? I don't understand your question.

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

yes you are correct.

0 Likes 0 ·
Show more comments

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