question

dhanaraj avatar image
dhanaraj asked chanel Deactivated commented

Transaction showing empty screen

I am trying to refund the order payment. Using ACTION_START_TRANSACTION_DETAIL intent navigate to transaction app. I sent the payment Id, order id and price along with intent. But it shows empty screen in transaction.Please advise, what needs to be send with the intent.
Refund
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

chanel avatar image
chanel Deactivated answered dhanaraj commented
When using the ACTION_START_TRANSACTION_DETAIL, you don't send any IDs, you send the objects themselves.

So if you wanted the transaction window to open on a particular payment you would do the following:

Intent intent = new Intent(Intents.ACTION_START_TRANSACTION_DETAIL);
// Grab the first payment associated with this order
intent.putExtra(Intents.EXTRA_PAYMENT, order.getPayments().get(0));

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.

dhanaraj avatar image dhanaraj commented ·

Thanks Chanel.

0 Likes 0 ·

Welcome to the
Clover Developer Community