ui.configuration.summaryFeatures = // Add this line, if you want to offer captures // MPUMposUiConfigurationSummaryFeatureCaptureTransaction | // Remove this line, if you do not want to offer refunds at all MPUMposUiConfigurationSummaryFeatureRefundTransaction | MPUMposUiConfigurationSummaryFeatureSendReceiptViaEmail; UIViewController *viewController = [ui createSummaryViewControllerWithTransactionIdentifier:@"transactionIdentifier" completed:^(UIViewController *controller) { [self dismissViewControllerAnimated:YES completion:NULL]; }]; UINavigationController *modalNav = [[UINavigationController alloc] initWithRootViewController:viewController]; if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { modalNav.modalPresentationStyle = UIModalPresentationFullScreen; } else { // on iPad modalNav.modalPresentationStyle = UIModalPresentationFormSheet; } [self presentViewController:modalNav animated:YES completion:NULL];
ui.getConfiguration().setSummaryFeatures(EnumSet.of( // 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 MposUiConfiguration.SummaryFeature.REFUND_TRANSACTION, MposUiConfiguration.SummaryFeature.SEND_RECEIPT_VIA_EMAIL) ); Intent intent = ui.createTransactionSummaryIntent("transactionIdentifier"); startActivityForResult(intent, MposUi.REQUEST_CODE_SHOW_SUMMARY);