question

ismdcf avatar image
ismdcf asked Raymond Lee Deactivated commented

Skipping Customer Receipt Method Selection Screen

We have a requirement where printing the customer receipt is mandatory and therefore we invoke the print job by ourselves. But on Station 2018 after the Secure Payment is invoked, and customer makes the card payment the following screen with the receipt sending option is prompted.

On this if the Customer selects 'Print Receipt', it ends up printing the receipt twice. (Due to us invoking the printing ourselves as well, since we do not have a way of knowing whether the customer invoked printing by himself or not)

Anyway to get around this and avoid duplicate printing?
Print
1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

That's a merchant-facing screen. Are you saying your merchants are showing that screen to customers?

1 Like 1 ·

1 Answer

ismdcf avatar image
ismdcf answered Jeffrey Blattman converted comment to answer
Hi @Jeffrey Blattman
Once again thanks for the reply, I am posting this as an answer because this is to large for a comment
This solution worked,
However, we have now started seeing the receipt selection page again when the merchant has enabled Tipping for Card Payments using the clover setup app. It works as expected when tipping is disabled.

Following is the code we use to invoke ACTION_SECURE_PAY after introducing PayIntent
Intent intent = new Intent(Intents.ACTION_SECURE_PAY);
        int totalAmount = 120;
        int taxAmount = 12;
TransactionSettings transactionSettings = new TransactionSettings();
        transactionSettings.setDisableRestartTransactionOnFailure(true);
        transactionSettings.setDisableReceiptSelection(true);
        transactionSettings.setCardEntryMethods(CARD_ENTRY_METHOD_ALL);
        new PayIntent.Builder()
                .orderId("VALID_ORDER_ID")
                .amount(totalAmount)
                .taxAmount(taxAmount)
               .transactionSettings(transactionSettings).
               build().addTo(intent);
        startActivityForResult(intent, CLOVER_PAYMENT_REQUEST);

We couldn't find any sample apps that showed the usage of PayIntent, If possible can you provide us with directions on how to use them.

Regards
2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

I don't know what is "the following behavior". If you are seeing a different problem, can you ask a new question? Please consider the guidelines on how to ask a good question https://community.clover.com/page/asking-questions and provide an MCVE that illustrates the behavior.

0 Likes 0 ·
ismdcf avatar image ismdcf Jeffrey Blattman ♦♦ commented ·

Hi Jeffry,

Apologies for not following the guideline. I have update the answer.

Regards

0 Likes 0 ·

Welcome to the
Clover Developer Community