-
Notifications
You must be signed in to change notification settings - Fork 0
#10 added docs about how payment vendor side tip is handled + extend … #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -25,3 +25,22 @@ Several critical error scenarios must be managed carefully to prevent double pay | |||||
| - The response is not received within the expected time frame (HTTP timeout), which can be simulated by a device losing internet connectivity during payment execution. | ||||||
|
|
||||||
| In all of these cases, the solution is to resend the original request using the identical operation ID and request body. The backend will then return the final result of the operation. | ||||||
|
|
||||||
| ## Special case - payment vendor added TIP | ||||||
|
|
||||||
| In many payment vendor apps it is possible to add a tip to the payment amount. | ||||||
| Flow example in a restaurant: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| - Guest asks for the bill | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| - Waiter triggers to create the bill at the POS (e.g. mobile device) | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| - The POS on the mobile device pushes the amount (for example 10€) to be paid to the configured payment app (via POS System API and the fiskaltrust InStore App) | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| - The payment app opens and the waiter hands the mobile device over to the guest | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| - The guest sees a TIP entry screen and adds a tip of 2€ | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| - The guests now pays the full sum of 12€ | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| - The payment app reports a paid amount of 12€ (including 2€ of tip) | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| - The fiskaltrust InStore App / POS System API does report back the following in the payment response (see also example in the POS System API docs): | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should a hyperlink be added to: (see also an example on the POS System API docs)? |
||||||
| - 2 pay items | ||||||
| - Pay item 1: The fully paid amount with the receipt -> 12€ | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| - Pay item 2: The tip with negative amount -> -2€ | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| - sum of the 2 pay items is the original requested amount of 10€ | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| NOTE: The tip can be calculated by simply subtracting the requested amount from the paid amount (12-10 = 2€ tip) or alternatively from the 2nd pay item (-2 * -1 = 2€ tip). | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -80,7 +80,7 @@ Any payment amount will return a SUCCESS response, except for the following defi | |||||
| | 30000,10 | DECLINED | | ||||||
| | 30000,20 | TIMEOUT (returned as an error message as no other option is available yet) | | ||||||
| | 30000,40 | CANCELLED BY USER | | ||||||
| | 30000,50 | SUCCESS with added guest tip | | ||||||
| | 30000,50 | SUCCESS with added guest tip (see [HOWTO_01_Payment](HOWTO_01_Payment_csharp/README.MD) on how to handle such a tip) | | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| | 30000,60 | SUCCESS after 1-minute delay | | ||||||
| | 30000,70 | SUCCESS after 3-minute delay | | ||||||
| | 30000,80 | SUCCESS after 6-minute delay | | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.