question

rahul43210 avatar image
rahul43210 asked sam Deactivated answered

How we can know transition done in cash or by card payment ?

In service class when transition in completed then how to know in background about transition in done in CASH or in credit or debit card.

Orders
1 comment
10 |2000

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

sam avatar image sam commented ·

Hello, Are you working with our Clover-Android-SDK? Could you specify what you mean by service class? By transition, do you mean when completing a payment of an order?

0 Likes 0 ·

1 Answer

sam avatar image
sam Deactivated answered mohitkanada commented

If I understand your question correctly,

You should implement a receiver for a broadcast for Intents.ACTION_PAYMENT_PROCESSED which will return:

{#EXTRACLOVERPAYMENTID} - the UUID of the processed Payment {#EXTRACLOVERTENDERLABELKEY} - the LabelKey of the Tender used {#EXTRACLOVERORDERID} - the UUID of the order associated with the Payment

10 |2000

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