question

Dhanaraj avatar image
Dhanaraj asked ·

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.
RefundIntents
10 |2000 characters needed characters left characters exceeded

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 answered ·
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 Share
10 |2000 characters needed characters left characters exceeded

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

Thanks Chanel.

0 Likes 0 · ·

Welcome to the
Clover Developer Community