ProcessStepParameters step = new TippingProcessStepParameters.Builder() .AskForTipAmount() .SuggestedAmount(1) //suggested amount (optional) .MaxTipAmount(2) // maximum amount (optional) .ShowAddTipConfirmationScreen(true|false) // activates/deactivates add tip confirmation screen (is optional with default on true) .ShowTotalAmountConfirmationScreen(true|false) // activates/deactivates total amount confirmation screen (is optional with default on false) .Build(); TransactionProcessParameters processParameters = new TransactionProcessParameters.Builder() .AddStep(step) .Build();
ProcessStepParameters step = new TippingProcessStepParameters.Builder() .AskForTotalAmount() .SuggestedAmount(1) // suggested amount (optional) .MaxTipAmount(2) // maximum tip amount (optional) .ShowAddTipConfirmationScreen(true|false) // activates/deactivates add tip confirmation screen (is optional with default on true) .ShowTotalAmountConfirmationScreen(true|false) // activates/deactivates total amount confirmation screen (is optional with default on false) .Build(); TransactionProcessParameters processParameters = new TransactionProcessParameters.Builder() .AddStep(step) .Build();
(transaction, transactionProcessDetails, error) => { //... if(transaction.Status == TransactionStatus.APPROVED) { Console.WriteLine("APPROVED: " + transaction.Identifier); Console.WriteLine("Tip Amount: " + transaction.Details.IncludedTipAmount); //.... } else { //.... } });
var transactionProcessParameters = new TransactionProcessParameters.Builder() .AddAskForTipStep() .Build();