Summary Screen

After a transaction has been done, merchants might want to refund it, capture it or send another receipt to their shoppers. The Summary Screen makes this very easy for you!

Just make sure that you store the transactionIdentifer for each transaction in your system. You can access the transactionIdentifer in the onActivityResult callback of the payment method.

Show the Summary Screen

Call createTransactionSummaryIntent with your previously stored transactionIdentifier:

		// Add this line, if you do want to offer printed receipts
		// MposUiConfiguration.SummaryFeature.PRINT_RECEIPT,
		// Add this line, if you do want to offer captures
		// MposUiConfiguration.SummaryFeature.CAPTURE_TRANSACTION,
		// Remove this line, if you do not want to offer refunds at all

Intent intent = ui.createTransactionSummaryIntent("transactionIdentifier");
startActivityForResult(intent, MposUi.REQUEST_CODE_SHOW_SUMMARY);

In the Summary Screen, your merchants can then refund or capture the transaction and email or print another receipt. If the transaction has already been refunded or captured, the Summary Screen will show this accordingly.

In the onActivityResult callback, check for a result ofRESULT_CODE_SUMMARY_CLOSED to find out whether the Summary Screen was closed, so that you can update your own UI if required.