How to get Payment info in another app?

Hello, I’m trying to develop an external app that can get info of the payment that was made in the Register app, such as card type and number, purchase amount, if the payment was authorized or not, authorization code, etc.

I tried with this intent and with many others:

In onCreate:

Intent save = new Intent(Intents.INTENT_EXTRAS_PAYMENT);
startActivityForResult(save, 20);

And in onActivityResult:

public void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == 20) {
if (data != null)
Log.d(TAG, "Data: " + data.getDataString());
}
}

But this is not working, Intent data always comes null. How can I obtain this data? Thank you

Consider listening to https://github.com/poynt/PoyntSamples/blob/master/codesamples/src/main/java/co/poynt/samples/codesamples/receivers/MyBroadcastReceiver.java#L14. Once you get transaction id you can use IPoyntTransactionService.geTransaction to get the full object.

1 Like