paypal / paypal-here-sdk-android-distribution

Add credit card (swipe & key-in) capabilities to your Android app
Other
83 stars 95 forks source link

5311061391468506 #210

Open joyheaven72 opened 9 months ago

joyheaven72 commented 9 months ago

currentTransaction.setAdditionalReceiptOptions(moreOptions, new TransactionContext.ReceiptOptionHandlerCallback() { @Override public void receiptOptionHandler(Integer integer, String s, final TransactionRecord transactionRecord) { if(s.equals("Print")) { endCurrentTransaction()? } }); IMG_20231110_192840_01 Do you have an example of how to add options? so far I can list the option but I haven't found a way to end the transaction...

` List moreOptions = new ArrayList<>(); moreOptions.add("Print");

currentTransaction.setAdditionalReceiptOptions(moreOptions, new TransactionContext.ReceiptOptionHandlerCallback()
{
  @Override
  public void receiptOptionHandler(Integer integer, String s, final TransactionRecord transactionRecord)
  {
    if(s.equals("Print"))
    {
      endCurrentTransaction()?
    }
});

`

Originally posted by @DowsingUK in https://github.com/paypal/paypal-here-sdk-android-distribution/issues/177#issuecomment-614090328