square / react-native-square-reader-sdk

React Native Plugin for Square Reader SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tip Screen Won't Display

Spacarar opened this issue · comments

Describe the issue

Transactions with the sdk won't display tipping options or a separate tipping screen no matter how the checkout parameters are defined.

To Reproduce

  • go through all basic installation
  • authenticate reader
  • startCheckoutAsync with the following parameters
amountMoney: {
	amount: 12,
	currencyCode: 'USD'
},
note: 'test checkout',
additionalPaymentTypes: ['cash', 'card'],
tipSettings: {
	showCustomTipField: true,
	tipPercentages: [10, 15, 25],
	showSeparateTipScreen: true
} 
  • pay with cash/card
  • the app goes straight to the receipt screen. No tipping options are ever presented

Expected behavior

tipping options to be displayed

according to the documentation setting tipSettings.showSeparateTipScreen = true should be presenting me with a second screen during the checkout process with which to enter a tip, before being taken to the receipt screen.

Environment (please complete the following information):

  • MacOS: 10.15.2
  • react: 16.9.0
  • react-native: 0.61.5
  • affecting devices: iPad devices simulator and physical (only type tested, may affect more)
  • react-native-square-reader-sdk: 1.3.0
System:
    OS: macOS 10.15.2
    CPU: (4) x64 Intel(R) Core(TM) i3-8100B CPU @ 3.60GHz
    Memory: 23.19 MB / 8.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 12.8.0 - ~/.nvm/versions/node/v12.8.0/bin/node
    Yarn: 1.21.1 - /usr/local/bin/yarn
    npm: 6.13.2 - ~/.nvm/versions/node/v12.8.0/bin/npm
  SDKs:
    iOS SDK:
      Platforms: iOS 13.1, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
    Android SDK:
      API Levels: 28
      Build Tools: 28.0.3
      System Images: android-25 | Google APIs Intel x86 Atom
  IDEs:
    Xcode: 11.1/11A1027 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.9.0 => 16.9.0 
    react-native: 0.61.5 => 0.61.5 
  npmGlobalPackages:
    react-native-cli: 2.0.1
    react-native-rename: 2.4.1

I'd like to note that manual_card_entry is not listed under additionalPaymentTypes and that it probably should be mentioned even briefly that cash transactions do not support signatures or tipping.

Everything with a manual_card_entry transaction seemed to work fine. closing issue.