currentTransaction.setAdditionalReceiptOptions(moreOptions, new TransactionContext.ReceiptOptionHandlerCallback()
{
@Override
public void receiptOptionHandler(Integer integer, String s, final TransactionRecord transactionRecord)
{
if(s.equals("Print"))
{
endCurrentTransaction()?
}
});
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()?
}
});
currentTransaction.setAdditionalReceiptOptions(moreOptions, new TransactionContext.ReceiptOptionHandlerCallback() { @Override public void receiptOptionHandler(Integer integer, String s, final TransactionRecord transactionRecord) { if(s.equals("Print")) { endCurrentTransaction()? } });
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");
`
Originally posted by @DowsingUK in https://github.com/paypal/paypal-here-sdk-android-distribution/issues/177#issuecomment-614090328