public static interface PaymentDevice.DataListener
Example Usage: public class MainActivity extends Activity implements DataListener { '@override void onData(PaymentData data) { if(data.getResult() == SUCCESS) { if(data.getDataType() == CARD_DATA) { CardData cardData = (CardData) data; String expiryDate = cardData.getExpiryDate(); } } } }
Modifier and Type | Method and Description |
---|---|
void |
onData(PaymentData data)
This is the callback method upon data or status notification.
|
void onData(PaymentData data)
data
- Payment data Object. Based on the type of the data, this
object can type cast to corresponding data class to obtain
the data.