Skip to content

Commit

Permalink
Fix wrong display of the "terminal.didRequestReaderDisplayMessage" (#762
Browse files Browse the repository at this point in the history
)

* Fix wrong display of the "terminal.didRequestReaderDisplayMessage"

* fix e2e test fail

* sort collect methods.

* revert log check string.

* sort collect methods.

---------

Co-authored-by: Ian Lin <[email protected]>
  • Loading branch information
2 people authored and nazli-stripe committed Jul 23, 2024
1 parent 85a433e commit 7b9dec2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dev-app/src/screens/CollectCardPaymentScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default function CollectCardPaymentScreen() {
name: 'Collect Payment Method',
events: [
{
name: input.join(' / '),
name: input.sort().join(' / '),
description: 'terminal.didRequestReaderInput',
onBack: cancelCollectPaymentMethod,
},
Expand Down
2 changes: 1 addition & 1 deletion dev-app/src/screens/SetupIntentScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function SetupIntentScreen() {
name: 'Collect Setup Intent',
events: [
{
name: input.join(' / '),
name: input.sort().join(' / '),
description: 'terminal.didRequestReaderInput',
onBack: cancelCollectSetupIntent,
},
Expand Down
4 changes: 2 additions & 2 deletions ios/Mappers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ class Mappers {
array.forEach { item in
switch item {
case 0: return
case 1: return mappedOptions.add("insertCard")
case 2: return mappedOptions.add("swipeCard")
case 1: return mappedOptions.add("swipeCard")
case 2: return mappedOptions.add("insertCard")
case 4: return mappedOptions.add("tapCard")
default: return
}
Expand Down

0 comments on commit 7b9dec2

Please sign in to comment.