Custom Tip Amounts

Hello,

I’m trying to pass custom tip amounts from my app to Tip Fragment.
I’ve tried with:

this.paymentSettings.setTipType1("P");
this.paymentSettings.setTipType2("P");
this.paymentSettings.setTipType3("P");

this.paymentSettings.setTipAmount1(400);
this.paymentSettings.setTipAmount2(500);
this.paymentSettings.setTipAmount3(600);

this.paymentSettings.setTipPercent1(20.0);
this.paymentSettings.setTipPercent2(23.0);
this.paymentSettings.setTipPercent3(25.0);

Also tried with:

Map<UUID, Long> tipAmounts = new HashMap<>();
map.put(UUID.randomUUID(), 400l);
map.put(UUID.randomUUID(), 500l);
map.put(UUID.randomUUID(), 600l);

payment.setTipAmounts(tipAmounts);

But the tip fragment doesn’t reflect those values.
I’m not creating a custom second screen for tips I just need the new values on the tip fragment.
Do I missing something ???

Thanks

Hi Pedro,
PaymentSettings cannot be modified by your app this is for use by poynt.
Use SecondScreenService to collect tip and set the tip in payment object before starting the payment fragment
payment.tipAmount()
The tip options during payment flow cannot be modified, they are only affected by the merchant preferences.

Hi @deepak,

So the solution here is ask for tips before start the Payment Fragment and it will work for P5 and P6 right ???

Thanks

Yes it works on both p5 and p61