MPTransactionProcessParameters *pp = [MPTransactionProcessParameters parametersWithSteps: ^(id _Nonnull steps) { [steps addAskForTipStepWithSuggestedAmount:nil]; }]; UIViewController *viewController = [ui createTransactionViewControllerWithTransactionParameters:tpprocessParameters:pp completed:/*...*/];
MPTransactionProcessParameters *pp = [MPTransactionProcessParameters parametersWithSteps: ^(id _Nonnull steps) { [steps addAskForTipStepWithSuggestedAmount:nil]; }]; MPTransactionProcess *process = [transactionProvider startTransactionWithParameters:transactionParameters accessoryParameters:accessoryParametersprocessParameters:pp registered:/*...*/ statusChanged:/*...*/ actionRequired:/*...*/ completed:/*...*/];
NSLog(@"Included Tip: %@",transaction.details.includedTipAmount);
TransactionProcessParameters transactionProcessParameters = new TransactionProcessParameters.Builder() .addAskForTipStep() .build(); Intent intent = MposUi.getInitializedInstance().createTransactionIntent(params,transactionProcessParameters); startActivityForResult(intent, MposUi.REQUEST_CODE_PAYMENT);
TransactionProcessParameters transactionProcessParameters = new TransactionProcessParameters.Builder() .addAskForTipStep() .build(); TransactionProcess paymentProcess = transactionProvider.startTransaction(transactionParameters, accessoryParameters,transactionProcessParameters, this);
System.out.println("Included Tip: " + transaction.getDetails().getIncludedTipAmount());