Tip Amount | Total Amount | Percent Choice | Fixed Percent | |
---|---|---|---|---|
Card readers that support tipping strategy | Verifone P400, PAX A920, Miura M010 | Verifone P400, PAX A920, Miura M010 | Verifone P400, PAX A920 | Verifone P400, PAX A920 |
Integration types that support tipping strategy | PayButton 1.0 & 2.0, PayServer, .NET PayClient | PayButton 1.0 & 2.0, PayServer, .NET PayClient | PayButton 1.0 & 2.0, PayServer, .NET PayClient | PayButton 1.0 & 2.0, PayServer, .NET PayClient |
ProcessStepParameters step = new TippingProcessStepParameters.Builder() .AskForTipAmount() .SuggestedAmount(1) // suggested tip amount (optional, alternative to SuggestedPercentage) .SuggestedPercentage(10) // suggested tip amount as a percentage of the original amount (optional, alternative to SuggestedAmount) .MaxTipAmount(2) // maximum tip amount (optional, alternative to MaxTipPercentage) .MaxTipPercentage(20) // maximum tip amount as a percentage of the original amount (optional, alternative to MaxTipAmount) .ShowAddTipConfirmationScreen(true|false) // activates/deactivates add tip confirmation screen (optional, default is true) .ShowTotalAmountConfirmationScreen(true|false) // activates/deactivates total amount confirmation screen (optional, default is false) .FractionDigits(0) // number of fraction digits for the tip amount that the user will have to type (optional, default for most of the currencies is 2) .Build(); processParameters = new TransactionProcessParameters.Builder() .AddStep(step) .Build();
ProcessStepParameters step = new TippingProcessStepParameters.Builder() .AskForTotalAmount() .SuggestedAmount(1) // suggested tip amount (optional, alternative to SuggestedPercentage) .SuggestedPercentage(10) // suggested tip amount as a percentage of the original amount (optional, alternative to SuggestedAmount) .MaxTipAmount(2) // maximum tip amount (optional, alternative to MaxTipPercentage) .MaxTipPercentage(20) // maximum tip amount as a percentage of the original amount (optional, alternative to MaxTipAmount) .ShowAddTipConfirmationScreen(true|false) // activates/deactivates add tip confirmation screen (optional, default is true) .ShowTotalAmountConfirmationScreen(true|false) // activates/deactivates total amount confirmation screen (optional, default is false) .FractionDigits(0) // number of fraction digits for the tip amount that the user will have to type (optional, default for most of the currencies is 2) .Build(); processParameters = new TransactionProcessParameters.Builder() .AddStep(step) .Build();
ProcessStepParameters step = new TippingProcessStepParameters.Builder() .AskForPercentageTip() .Percentages(5, 10, 15) .ShowTotalAmountConfirmationScreen(true) .Custom(new AskForCustomTip.Builder() // defines configuration for custom tip amount screen (optional) .SuggestedAmount(1) // suggested tip amount (optional, alternative to SuggestedPercentage) .SuggestedPercentage(10) // suggested tip amount as a percentage of the original amount (optional, alternative to SuggestedAmount) .MaxTipAmount(2) // maximum tip amount (optional, alternative to MaxTipPercentage) .MaxTipPercentage(20) // maximum tip amount as a percentage of the original amount (optional, alternative to MaxTipAmount) .FractionDigits(0) // number of fraction digits for the tip amount that the user will have to type (optional, default for most of the currencies is 2) ) .Build(); processParameters = new TransactionProcessParameters.Builder() .AddStep(step) .Build();
ProcessStepParameters step = new TippingProcessStepParameters.Builder() .AskForFixedTip() .Percentage(10) .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();