question

amar avatar image
amar asked Sukhbir Singh commented

How we can access order details with payment info using clover sdk in android? and what will be good to use android sdk or rest APIs for android app?

@Sam I want successfull order information with payment info as well,please suggest how can I get it?
REST APIClover Android SDKClover Station
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

sam avatar image
sam Deactivated answered Sukhbir Singh commented
You can use either SDK or API to get order information.

SDK: mOrderConnector.getOrder(orderID).getPayments().get(0)
You could also search orders manually:
Cursor c = getContentResolver().query(OrderContract.Summaries.contentUriWithAccount(CloverAccount.getAccount(mContext)), null, null, null, "_id LIMIT 100 OFFSET 10");

API: GET /v3/merchants/{mid}/orders?expand=payments

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.

amar avatar image amar commented ·

Thanks Sam,

but how can I get all information regarding payment(total amount,tax,taxRate,vat etc) using android sdk and can I also get all items in an order with details using android sdk itself?

0 Likes 0 ·
Sukhbir Singh avatar image Sukhbir Singh commented ·

Hi Amar,

You can get all the details for a payment with /v3/merchants/{mId}/payments/{payId} api except signature image.

Thnak you.

0 Likes 0 ·

Welcome to the
Clover Developer Community