question

kapilk avatar image
kapilk asked David Marginian Deactivated commented

Get all payments information for an order not getting immediately after order placed

Hi @David Marginian

Our app is running on clover station and showing clover payment page by using

                 
  1. Intent intent = new Intent(Intents.ACTION_CLOVER_PAY);


We are not receiving order payment information immediately after placing an order with more line items.

orderConnector.addCustomLineItem(mOrder.getId(), myLineItem, false);
mOrder = orderConnector.updateOrder(mOrder);


I have tried two ways to get the payment information - but not getting immediately. is there any way to get information immediately after placed an order.?
using sdk apis - below code is in onActivityResult() method.
getCardTransaction() returns null value for sometimes. It is not consistent. I guess there is a delay in clover backend to update the records.

1644422227497.png


2. And tried this API - Get all payments for an order

it returns empty array - "elements": []





Clover Android SDKSandboxClover Station
1644422227497.png (117.6 KiB)
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

Are you certain the payments are not being taken offline?

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.

kapilk avatar image kapilk commented ·

Yes, the payments are not being taken offline

screen-shot-2022-02-11-at-113950-am.pngscreen-shot-2022-02-11-at-114027-am.png

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ kapilk commented ·
Not certain what these screenshots show. A payment taken offline will eventually sync to and be available on the server. If you want to send me a payment id to look at, just send it in text rather than an image.
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