-
Notifications
You must be signed in to change notification settings - Fork 51
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
USB connection type #188
USB connection type #188
Conversation
export type ConnectUsbReaderResultType = | ||
| { | ||
reader: Reader.Type; | ||
error?: undefined; |
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.
Hrm, I don't love this type, but I see it's already a pattern so we can just go with it.
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.
You'd expect the error type to be defined?
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.
So for the JS SDK we return one or the other and the user is expected to refine
Promise<ErrorResponse | {paymentIntent: ISdkManagedPaymentIntent}>
I'm not quite sure how TS handles this type of union as it looks like in the relevant code we're still checking if the reader is not null even if we don't have an error. Either way seems like we can be a bit more accurate here, I'll ticket to follow up as long as it's not a behavior we're forced into from android / ios.
@@ -488,6 +490,121 @@ class StripeTerminalReactNativeModule(reactContext: ReactApplicationContext) : | |||
) | |||
} | |||
|
|||
@OptIn(UsbConnectivity::class) |
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.
oh wow, didn't expect this much code to be needed, is this because the android SDK doesn't surface these messages properly?
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.
Ah perhaps I misunderstood when we were talking earlier. Nope, this error handling logic is required because we're going from untyped JS to typed Kotlin. If we didn't have these checks we'd end up throwing null pointer exceptions when invalid input is received.
internet reader e2e fixes fix typo fix e2e tests tests fixes and improvements setReadDisplay/clearReaderDisplay e2e test run setReaderDisplay e2e only on iOS fix setReaderDisplay test fix setReaderDisplay scenario fix test fix e2e test improve reader display screen layout prettier/eslint js files (#172) * updates * updates linting settings, adds prettier target * npm reg removed tvos target (#179) templates (#181) yarn diff check (#180) * add manual yarn.lock diff check * force fail * how about this * and this * restore lockfile Create expo plugin (#113) * chore: create expo plugin * chore: add plugin params * chore: add expo docs * fix package.json path upgrade tsc and clean up example app routing param types (#185) * upgrade tsc * clean up routing param types fix: TextInput color on Android (#84) npm release script (#87) * chore: add publish script * chore: update docs test connection token on init (#177) * chore: test connection token on init * chore: render app conditionally Handle other Android connection methods (#111) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix indentations * fix methods params * fix merge issues Revert "Handle other Android connection methods (#111)" (#186) This reverts commit 18db810. fix dependabot minimist issue (#189) usb connection type (#188) upgrade minimist in example app as well (#190) duplicated event listeners (#182) * fix: duplicated event listeners * temporary listener fix * fix typings * cleanup * fix updateing callbacks refs fix labels handle multiple secret keys, in-person refund tests updated android sdk to 2.7.1 (#200) Android validation and transformation helpers (#192) * making use of new transformation functions * validation helpers * removed some mappers Handle other Android connection methods #111 (#187) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix methods params * rebase fixes * rebase fix Co-authored-by: David Henry <dhenry@stripe.com> StripeTerminalReactNativeModule reduced scope (#202) * separated callbacks and listeners from RN module * cancelOperation added * ReactNativeConstants imports * extracting reader.serialNumber [wip] update readme with expo guidance and re-order content (#206) * update readme with expo guidance and re-order content * more * shufflin things * toc more doc fixes (#207) * more fixes * refactor * add note about links not being available adding codeowners (#208) [WIP] Android unit tests (#204) * separated callbacks and listeners from RN module * TokenProvider unit tests * run unit tests in circleci * unit test yarn command * BluetoothReaderListener unit tests * store test results * DiscoveryListener unit tests * updated test output path * test results path updated * UsbListenerTest * TerminalListener and HandoffReaderListener unit tests * one more try with the test output path Bump plist from 3.0.4 to 3.0.5 (#216) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 (#215) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump plist from 3.0.4 to 3.0.5 in /example (#214) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Reader update errors received by RN SDK (#217) * reader update errors received by RN SDK * lint * ios SDK sends update errors to RN SDK Prevent from calling methods before SDK initializing SDK (#203) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function Memoize StripeTerminalProvider values (#221) * fixing hooks deps * fix android all target * pushing looping location check * memoize context * discover * rrc * setupIntents android permissions util (#218) * android permissions util * improve location permission message add android expo steps to readme (#210) * add android steps * shuffle * update both files * toc test tokenProvider on init (#211) * test tokenProvider on init * catchable tokenProvider error Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225) This reverts commit 38972ad. added metadata property to enable Android SDK RN identification (#227) rename e2e file patch package revert API_URL handle CA server fix commands script rename fix server:ci command use canada API url from env fix server endpoint fix createPaymentIntent via server Add android expo support and permissions checker (#224) * update perms helper * it works * docs * refactor permissions utils logLevel only on StripeTerminalProvider component level (#223) * logLevel only on StripeTerminalProvider component level * fix typo createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232) * createPaymentIntent uses INTERAC_PRESENT for CAD currency * createPaymentIntent receives paymentMethodTypes from the POS application * enum mapping fix add setSimulatedCard method clean up use bluetooth reader for collecting CA payments fix e2e tests use keyboard aware scroll view fix linter set unique testID fix tests fix in-person refund e2e scroll to bottom before tap fix log name fetch latest interac charge refund - set test card number fix refund e2e fix e2e fix android ui fix e2e test, record failing tests prevent call methods being not initialized (#228) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function * improvements * remove direct functions export implement onDidReportAvailableUpdate in example app (#236) enable interac for e2e android scenario skip refunding tests on android fix e2e test add comments
internet reader e2e fixes fix typo fix e2e tests tests fixes and improvements setReadDisplay/clearReaderDisplay e2e test run setReaderDisplay e2e only on iOS fix setReaderDisplay test fix setReaderDisplay scenario fix test fix e2e test improve reader display screen layout prettier/eslint js files (#172) * updates * updates linting settings, adds prettier target * npm reg removed tvos target (#179) templates (#181) yarn diff check (#180) * add manual yarn.lock diff check * force fail * how about this * and this * restore lockfile Create expo plugin (#113) * chore: create expo plugin * chore: add plugin params * chore: add expo docs * fix package.json path upgrade tsc and clean up example app routing param types (#185) * upgrade tsc * clean up routing param types fix: TextInput color on Android (#84) npm release script (#87) * chore: add publish script * chore: update docs test connection token on init (#177) * chore: test connection token on init * chore: render app conditionally Handle other Android connection methods (#111) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix indentations * fix methods params * fix merge issues Revert "Handle other Android connection methods (#111)" (#186) This reverts commit 18db810. fix dependabot minimist issue (#189) usb connection type (#188) upgrade minimist in example app as well (#190) duplicated event listeners (#182) * fix: duplicated event listeners * temporary listener fix * fix typings * cleanup * fix updateing callbacks refs fix labels handle multiple secret keys, in-person refund tests updated android sdk to 2.7.1 (#200) Android validation and transformation helpers (#192) * making use of new transformation functions * validation helpers * removed some mappers Handle other Android connection methods #111 (#187) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix methods params * rebase fixes * rebase fix Co-authored-by: David Henry <dhenry@stripe.com> StripeTerminalReactNativeModule reduced scope (#202) * separated callbacks and listeners from RN module * cancelOperation added * ReactNativeConstants imports * extracting reader.serialNumber [wip] update readme with expo guidance and re-order content (#206) * update readme with expo guidance and re-order content * more * shufflin things * toc more doc fixes (#207) * more fixes * refactor * add note about links not being available adding codeowners (#208) [WIP] Android unit tests (#204) * separated callbacks and listeners from RN module * TokenProvider unit tests * run unit tests in circleci * unit test yarn command * BluetoothReaderListener unit tests * store test results * DiscoveryListener unit tests * updated test output path * test results path updated * UsbListenerTest * TerminalListener and HandoffReaderListener unit tests * one more try with the test output path Bump plist from 3.0.4 to 3.0.5 (#216) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 (#215) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump plist from 3.0.4 to 3.0.5 in /example (#214) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Reader update errors received by RN SDK (#217) * reader update errors received by RN SDK * lint * ios SDK sends update errors to RN SDK Prevent from calling methods before SDK initializing SDK (#203) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function Memoize StripeTerminalProvider values (#221) * fixing hooks deps * fix android all target * pushing looping location check * memoize context * discover * rrc * setupIntents android permissions util (#218) * android permissions util * improve location permission message add android expo steps to readme (#210) * add android steps * shuffle * update both files * toc test tokenProvider on init (#211) * test tokenProvider on init * catchable tokenProvider error Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225) This reverts commit 38972ad. added metadata property to enable Android SDK RN identification (#227) rename e2e file patch package revert API_URL handle CA server fix commands script rename fix server:ci command use canada API url from env fix server endpoint fix createPaymentIntent via server Add android expo support and permissions checker (#224) * update perms helper * it works * docs * refactor permissions utils logLevel only on StripeTerminalProvider component level (#223) * logLevel only on StripeTerminalProvider component level * fix typo createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232) * createPaymentIntent uses INTERAC_PRESENT for CAD currency * createPaymentIntent receives paymentMethodTypes from the POS application * enum mapping fix add setSimulatedCard method clean up use bluetooth reader for collecting CA payments fix e2e tests use keyboard aware scroll view fix linter set unique testID fix tests fix in-person refund e2e scroll to bottom before tap fix log name fetch latest interac charge refund - set test card number fix refund e2e fix e2e fix android ui fix e2e test, record failing tests prevent call methods being not initialized (#228) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function * improvements * remove direct functions export implement onDidReportAvailableUpdate in example app (#236) enable interac for e2e android scenario skip refunding tests on android fix e2e test add comments
internet reader e2e fixes fix typo fix e2e tests tests fixes and improvements setReadDisplay/clearReaderDisplay e2e test run setReaderDisplay e2e only on iOS fix setReaderDisplay test fix setReaderDisplay scenario fix test fix e2e test improve reader display screen layout prettier/eslint js files (#172) * updates * updates linting settings, adds prettier target * npm reg removed tvos target (#179) templates (#181) yarn diff check (#180) * add manual yarn.lock diff check * force fail * how about this * and this * restore lockfile Create expo plugin (#113) * chore: create expo plugin * chore: add plugin params * chore: add expo docs * fix package.json path upgrade tsc and clean up example app routing param types (#185) * upgrade tsc * clean up routing param types fix: TextInput color on Android (#84) npm release script (#87) * chore: add publish script * chore: update docs test connection token on init (#177) * chore: test connection token on init * chore: render app conditionally Handle other Android connection methods (#111) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix indentations * fix methods params * fix merge issues Revert "Handle other Android connection methods (#111)" (#186) This reverts commit 18db810. fix dependabot minimist issue (#189) usb connection type (#188) upgrade minimist in example app as well (#190) duplicated event listeners (#182) * fix: duplicated event listeners * temporary listener fix * fix typings * cleanup * fix updateing callbacks refs fix labels handle multiple secret keys, in-person refund tests updated android sdk to 2.7.1 (#200) Android validation and transformation helpers (#192) * making use of new transformation functions * validation helpers * removed some mappers Handle other Android connection methods #111 (#187) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix methods params * rebase fixes * rebase fix Co-authored-by: David Henry <dhenry@stripe.com> StripeTerminalReactNativeModule reduced scope (#202) * separated callbacks and listeners from RN module * cancelOperation added * ReactNativeConstants imports * extracting reader.serialNumber [wip] update readme with expo guidance and re-order content (#206) * update readme with expo guidance and re-order content * more * shufflin things * toc more doc fixes (#207) * more fixes * refactor * add note about links not being available adding codeowners (#208) [WIP] Android unit tests (#204) * separated callbacks and listeners from RN module * TokenProvider unit tests * run unit tests in circleci * unit test yarn command * BluetoothReaderListener unit tests * store test results * DiscoveryListener unit tests * updated test output path * test results path updated * UsbListenerTest * TerminalListener and HandoffReaderListener unit tests * one more try with the test output path Bump plist from 3.0.4 to 3.0.5 (#216) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 (#215) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump plist from 3.0.4 to 3.0.5 in /example (#214) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Reader update errors received by RN SDK (#217) * reader update errors received by RN SDK * lint * ios SDK sends update errors to RN SDK Prevent from calling methods before SDK initializing SDK (#203) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function Memoize StripeTerminalProvider values (#221) * fixing hooks deps * fix android all target * pushing looping location check * memoize context * discover * rrc * setupIntents android permissions util (#218) * android permissions util * improve location permission message add android expo steps to readme (#210) * add android steps * shuffle * update both files * toc test tokenProvider on init (#211) * test tokenProvider on init * catchable tokenProvider error Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225) This reverts commit 38972ad. added metadata property to enable Android SDK RN identification (#227) rename e2e file patch package revert API_URL handle CA server fix commands script rename fix server:ci command use canada API url from env fix server endpoint fix createPaymentIntent via server Add android expo support and permissions checker (#224) * update perms helper * it works * docs * refactor permissions utils logLevel only on StripeTerminalProvider component level (#223) * logLevel only on StripeTerminalProvider component level * fix typo createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232) * createPaymentIntent uses INTERAC_PRESENT for CAD currency * createPaymentIntent receives paymentMethodTypes from the POS application * enum mapping fix add setSimulatedCard method clean up use bluetooth reader for collecting CA payments fix e2e tests use keyboard aware scroll view fix linter set unique testID fix tests fix in-person refund e2e scroll to bottom before tap fix log name fetch latest interac charge refund - set test card number fix refund e2e fix e2e fix android ui fix e2e test, record failing tests prevent call methods being not initialized (#228) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function * improvements * remove direct functions export implement onDidReportAvailableUpdate in example app (#236) enable interac for e2e android scenario skip refunding tests on android fix e2e test add comments
internet reader e2e fixes fix typo fix e2e tests tests fixes and improvements setReadDisplay/clearReaderDisplay e2e test run setReaderDisplay e2e only on iOS fix setReaderDisplay test fix setReaderDisplay scenario fix test fix e2e test improve reader display screen layout prettier/eslint js files (#172) * updates * updates linting settings, adds prettier target * npm reg removed tvos target (#179) templates (#181) yarn diff check (#180) * add manual yarn.lock diff check * force fail * how about this * and this * restore lockfile Create expo plugin (#113) * chore: create expo plugin * chore: add plugin params * chore: add expo docs * fix package.json path upgrade tsc and clean up example app routing param types (#185) * upgrade tsc * clean up routing param types fix: TextInput color on Android (#84) npm release script (#87) * chore: add publish script * chore: update docs test connection token on init (#177) * chore: test connection token on init * chore: render app conditionally Handle other Android connection methods (#111) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix indentations * fix methods params * fix merge issues Revert "Handle other Android connection methods (#111)" (#186) This reverts commit 18db810. fix dependabot minimist issue (#189) usb connection type (#188) upgrade minimist in example app as well (#190) duplicated event listeners (#182) * fix: duplicated event listeners * temporary listener fix * fix typings * cleanup * fix updateing callbacks refs fix labels handle multiple secret keys, in-person refund tests updated android sdk to 2.7.1 (#200) Android validation and transformation helpers (#192) * making use of new transformation functions * validation helpers * removed some mappers Handle other Android connection methods #111 (#187) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix methods params * rebase fixes * rebase fix Co-authored-by: David Henry <dhenry@stripe.com> StripeTerminalReactNativeModule reduced scope (#202) * separated callbacks and listeners from RN module * cancelOperation added * ReactNativeConstants imports * extracting reader.serialNumber [wip] update readme with expo guidance and re-order content (#206) * update readme with expo guidance and re-order content * more * shufflin things * toc more doc fixes (#207) * more fixes * refactor * add note about links not being available adding codeowners (#208) [WIP] Android unit tests (#204) * separated callbacks and listeners from RN module * TokenProvider unit tests * run unit tests in circleci * unit test yarn command * BluetoothReaderListener unit tests * store test results * DiscoveryListener unit tests * updated test output path * test results path updated * UsbListenerTest * TerminalListener and HandoffReaderListener unit tests * one more try with the test output path Bump plist from 3.0.4 to 3.0.5 (#216) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 (#215) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump plist from 3.0.4 to 3.0.5 in /example (#214) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Reader update errors received by RN SDK (#217) * reader update errors received by RN SDK * lint * ios SDK sends update errors to RN SDK Prevent from calling methods before SDK initializing SDK (#203) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function Memoize StripeTerminalProvider values (#221) * fixing hooks deps * fix android all target * pushing looping location check * memoize context * discover * rrc * setupIntents android permissions util (#218) * android permissions util * improve location permission message add android expo steps to readme (#210) * add android steps * shuffle * update both files * toc test tokenProvider on init (#211) * test tokenProvider on init * catchable tokenProvider error Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225) This reverts commit 38972ad. added metadata property to enable Android SDK RN identification (#227) rename e2e file patch package revert API_URL handle CA server fix commands script rename fix server:ci command use canada API url from env fix server endpoint fix createPaymentIntent via server Add android expo support and permissions checker (#224) * update perms helper * it works * docs * refactor permissions utils logLevel only on StripeTerminalProvider component level (#223) * logLevel only on StripeTerminalProvider component level * fix typo createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232) * createPaymentIntent uses INTERAC_PRESENT for CAD currency * createPaymentIntent receives paymentMethodTypes from the POS application * enum mapping fix add setSimulatedCard method clean up use bluetooth reader for collecting CA payments fix e2e tests use keyboard aware scroll view fix linter set unique testID fix tests fix in-person refund e2e scroll to bottom before tap fix log name fetch latest interac charge refund - set test card number fix refund e2e fix e2e fix android ui fix e2e test, record failing tests prevent call methods being not initialized (#228) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function * improvements * remove direct functions export implement onDidReportAvailableUpdate in example app (#236) enable interac for e2e android scenario skip refunding tests on android fix e2e test add comments
internet reader e2e fixes fix typo fix e2e tests tests fixes and improvements setReadDisplay/clearReaderDisplay e2e test run setReaderDisplay e2e only on iOS fix setReaderDisplay test fix setReaderDisplay scenario fix test fix e2e test improve reader display screen layout prettier/eslint js files (#172) * updates * updates linting settings, adds prettier target * npm reg removed tvos target (#179) templates (#181) yarn diff check (#180) * add manual yarn.lock diff check * force fail * how about this * and this * restore lockfile Create expo plugin (#113) * chore: create expo plugin * chore: add plugin params * chore: add expo docs * fix package.json path upgrade tsc and clean up example app routing param types (#185) * upgrade tsc * clean up routing param types fix: TextInput color on Android (#84) npm release script (#87) * chore: add publish script * chore: update docs test connection token on init (#177) * chore: test connection token on init * chore: render app conditionally Handle other Android connection methods (#111) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix indentations * fix methods params * fix merge issues Revert "Handle other Android connection methods (#111)" (#186) This reverts commit 18db810. fix dependabot minimist issue (#189) usb connection type (#188) upgrade minimist in example app as well (#190) duplicated event listeners (#182) * fix: duplicated event listeners * temporary listener fix * fix typings * cleanup * fix updateing callbacks refs fix labels handle multiple secret keys, in-person refund tests updated android sdk to 2.7.1 (#200) Android validation and transformation helpers (#192) * making use of new transformation functions * validation helpers * removed some mappers Handle other Android connection methods #111 (#187) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix methods params * rebase fixes * rebase fix Co-authored-by: David Henry <dhenry@stripe.com> StripeTerminalReactNativeModule reduced scope (#202) * separated callbacks and listeners from RN module * cancelOperation added * ReactNativeConstants imports * extracting reader.serialNumber [wip] update readme with expo guidance and re-order content (#206) * update readme with expo guidance and re-order content * more * shufflin things * toc more doc fixes (#207) * more fixes * refactor * add note about links not being available adding codeowners (#208) [WIP] Android unit tests (#204) * separated callbacks and listeners from RN module * TokenProvider unit tests * run unit tests in circleci * unit test yarn command * BluetoothReaderListener unit tests * store test results * DiscoveryListener unit tests * updated test output path * test results path updated * UsbListenerTest * TerminalListener and HandoffReaderListener unit tests * one more try with the test output path Bump plist from 3.0.4 to 3.0.5 (#216) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 (#215) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump plist from 3.0.4 to 3.0.5 in /example (#214) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Reader update errors received by RN SDK (#217) * reader update errors received by RN SDK * lint * ios SDK sends update errors to RN SDK Prevent from calling methods before SDK initializing SDK (#203) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function Memoize StripeTerminalProvider values (#221) * fixing hooks deps * fix android all target * pushing looping location check * memoize context * discover * rrc * setupIntents android permissions util (#218) * android permissions util * improve location permission message add android expo steps to readme (#210) * add android steps * shuffle * update both files * toc test tokenProvider on init (#211) * test tokenProvider on init * catchable tokenProvider error Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225) This reverts commit 38972ad. added metadata property to enable Android SDK RN identification (#227) rename e2e file patch package revert API_URL handle CA server fix commands script rename fix server:ci command use canada API url from env fix server endpoint fix createPaymentIntent via server Add android expo support and permissions checker (#224) * update perms helper * it works * docs * refactor permissions utils logLevel only on StripeTerminalProvider component level (#223) * logLevel only on StripeTerminalProvider component level * fix typo createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232) * createPaymentIntent uses INTERAC_PRESENT for CAD currency * createPaymentIntent receives paymentMethodTypes from the POS application * enum mapping fix add setSimulatedCard method clean up use bluetooth reader for collecting CA payments fix e2e tests use keyboard aware scroll view fix linter set unique testID fix tests fix in-person refund e2e scroll to bottom before tap fix log name fetch latest interac charge refund - set test card number fix refund e2e fix e2e fix android ui fix e2e test, record failing tests prevent call methods being not initialized (#228) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function * improvements * remove direct functions export implement onDidReportAvailableUpdate in example app (#236) enable interac for e2e android scenario skip refunding tests on android fix e2e test add comments
internet reader e2e fixes fix typo fix e2e tests tests fixes and improvements setReadDisplay/clearReaderDisplay e2e test run setReaderDisplay e2e only on iOS fix setReaderDisplay test fix setReaderDisplay scenario fix test fix e2e test improve reader display screen layout prettier/eslint js files (#172) * updates * updates linting settings, adds prettier target * npm reg removed tvos target (#179) templates (#181) yarn diff check (#180) * add manual yarn.lock diff check * force fail * how about this * and this * restore lockfile Create expo plugin (#113) * chore: create expo plugin * chore: add plugin params * chore: add expo docs * fix package.json path upgrade tsc and clean up example app routing param types (#185) * upgrade tsc * clean up routing param types fix: TextInput color on Android (#84) npm release script (#87) * chore: add publish script * chore: update docs test connection token on init (#177) * chore: test connection token on init * chore: render app conditionally Handle other Android connection methods (#111) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix indentations * fix methods params * fix merge issues Revert "Handle other Android connection methods (#111)" (#186) This reverts commit 18db810. fix dependabot minimist issue (#189) usb connection type (#188) upgrade minimist in example app as well (#190) duplicated event listeners (#182) * fix: duplicated event listeners * temporary listener fix * fix typings * cleanup * fix updateing callbacks refs fix labels handle multiple secret keys, in-person refund tests updated android sdk to 2.7.1 (#200) Android validation and transformation helpers (#192) * making use of new transformation functions * validation helpers * removed some mappers Handle other Android connection methods #111 (#187) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix methods params * rebase fixes * rebase fix Co-authored-by: David Henry <dhenry@stripe.com> StripeTerminalReactNativeModule reduced scope (#202) * separated callbacks and listeners from RN module * cancelOperation added * ReactNativeConstants imports * extracting reader.serialNumber [wip] update readme with expo guidance and re-order content (#206) * update readme with expo guidance and re-order content * more * shufflin things * toc more doc fixes (#207) * more fixes * refactor * add note about links not being available adding codeowners (#208) [WIP] Android unit tests (#204) * separated callbacks and listeners from RN module * TokenProvider unit tests * run unit tests in circleci * unit test yarn command * BluetoothReaderListener unit tests * store test results * DiscoveryListener unit tests * updated test output path * test results path updated * UsbListenerTest * TerminalListener and HandoffReaderListener unit tests * one more try with the test output path Bump plist from 3.0.4 to 3.0.5 (#216) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 (#215) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump plist from 3.0.4 to 3.0.5 in /example (#214) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Reader update errors received by RN SDK (#217) * reader update errors received by RN SDK * lint * ios SDK sends update errors to RN SDK Prevent from calling methods before SDK initializing SDK (#203) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function Memoize StripeTerminalProvider values (#221) * fixing hooks deps * fix android all target * pushing looping location check * memoize context * discover * rrc * setupIntents android permissions util (#218) * android permissions util * improve location permission message add android expo steps to readme (#210) * add android steps * shuffle * update both files * toc test tokenProvider on init (#211) * test tokenProvider on init * catchable tokenProvider error Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225) This reverts commit 38972ad. added metadata property to enable Android SDK RN identification (#227) rename e2e file patch package revert API_URL handle CA server fix commands script rename fix server:ci command use canada API url from env fix server endpoint fix createPaymentIntent via server Add android expo support and permissions checker (#224) * update perms helper * it works * docs * refactor permissions utils logLevel only on StripeTerminalProvider component level (#223) * logLevel only on StripeTerminalProvider component level * fix typo createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232) * createPaymentIntent uses INTERAC_PRESENT for CAD currency * createPaymentIntent receives paymentMethodTypes from the POS application * enum mapping fix add setSimulatedCard method clean up use bluetooth reader for collecting CA payments fix e2e tests use keyboard aware scroll view fix linter set unique testID fix tests fix in-person refund e2e scroll to bottom before tap fix log name fetch latest interac charge refund - set test card number fix refund e2e fix e2e fix android ui fix e2e test, record failing tests prevent call methods being not initialized (#228) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function * improvements * remove direct functions export implement onDidReportAvailableUpdate in example app (#236) enable interac for e2e android scenario skip refunding tests on android fix e2e test add comments
internet reader e2e fixes fix typo fix e2e tests tests fixes and improvements setReadDisplay/clearReaderDisplay e2e test run setReaderDisplay e2e only on iOS fix setReaderDisplay test fix setReaderDisplay scenario fix test fix e2e test improve reader display screen layout prettier/eslint js files (#172) * updates * updates linting settings, adds prettier target * npm reg removed tvos target (#179) templates (#181) yarn diff check (#180) * add manual yarn.lock diff check * force fail * how about this * and this * restore lockfile Create expo plugin (#113) * chore: create expo plugin * chore: add plugin params * chore: add expo docs * fix package.json path upgrade tsc and clean up example app routing param types (#185) * upgrade tsc * clean up routing param types fix: TextInput color on Android (#84) npm release script (#87) * chore: add publish script * chore: update docs test connection token on init (#177) * chore: test connection token on init * chore: render app conditionally Handle other Android connection methods (#111) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix indentations * fix methods params * fix merge issues Revert "Handle other Android connection methods (#111)" (#186) This reverts commit 18db810. fix dependabot minimist issue (#189) usb connection type (#188) upgrade minimist in example app as well (#190) duplicated event listeners (#182) * fix: duplicated event listeners * temporary listener fix * fix typings * cleanup * fix updateing callbacks refs fix labels handle multiple secret keys, in-person refund tests updated android sdk to 2.7.1 (#200) Android validation and transformation helpers (#192) * making use of new transformation functions * validation helpers * removed some mappers Handle other Android connection methods #111 (#187) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix methods params * rebase fixes * rebase fix Co-authored-by: David Henry <dhenry@stripe.com> StripeTerminalReactNativeModule reduced scope (#202) * separated callbacks and listeners from RN module * cancelOperation added * ReactNativeConstants imports * extracting reader.serialNumber [wip] update readme with expo guidance and re-order content (#206) * update readme with expo guidance and re-order content * more * shufflin things * toc more doc fixes (#207) * more fixes * refactor * add note about links not being available adding codeowners (#208) [WIP] Android unit tests (#204) * separated callbacks and listeners from RN module * TokenProvider unit tests * run unit tests in circleci * unit test yarn command * BluetoothReaderListener unit tests * store test results * DiscoveryListener unit tests * updated test output path * test results path updated * UsbListenerTest * TerminalListener and HandoffReaderListener unit tests * one more try with the test output path Bump plist from 3.0.4 to 3.0.5 (#216) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 (#215) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump plist from 3.0.4 to 3.0.5 in /example (#214) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Reader update errors received by RN SDK (#217) * reader update errors received by RN SDK * lint * ios SDK sends update errors to RN SDK Prevent from calling methods before SDK initializing SDK (#203) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function Memoize StripeTerminalProvider values (#221) * fixing hooks deps * fix android all target * pushing looping location check * memoize context * discover * rrc * setupIntents android permissions util (#218) * android permissions util * improve location permission message add android expo steps to readme (#210) * add android steps * shuffle * update both files * toc test tokenProvider on init (#211) * test tokenProvider on init * catchable tokenProvider error Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225) This reverts commit 38972ad. added metadata property to enable Android SDK RN identification (#227) rename e2e file patch package revert API_URL handle CA server fix commands script rename fix server:ci command use canada API url from env fix server endpoint fix createPaymentIntent via server Add android expo support and permissions checker (#224) * update perms helper * it works * docs * refactor permissions utils logLevel only on StripeTerminalProvider component level (#223) * logLevel only on StripeTerminalProvider component level * fix typo createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232) * createPaymentIntent uses INTERAC_PRESENT for CAD currency * createPaymentIntent receives paymentMethodTypes from the POS application * enum mapping fix add setSimulatedCard method clean up use bluetooth reader for collecting CA payments fix e2e tests use keyboard aware scroll view fix linter set unique testID fix tests fix in-person refund e2e scroll to bottom before tap fix log name fetch latest interac charge refund - set test card number fix refund e2e fix e2e fix android ui fix e2e test, record failing tests prevent call methods being not initialized (#228) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function * improvements * remove direct functions export implement onDidReportAvailableUpdate in example app (#236) enable interac for e2e android scenario skip refunding tests on android fix e2e test add comments
internet reader e2e fixes fix typo fix e2e tests tests fixes and improvements setReadDisplay/clearReaderDisplay e2e test run setReaderDisplay e2e only on iOS fix setReaderDisplay test fix setReaderDisplay scenario fix test fix e2e test improve reader display screen layout prettier/eslint js files (#172) * updates * updates linting settings, adds prettier target * npm reg removed tvos target (#179) templates (#181) yarn diff check (#180) * add manual yarn.lock diff check * force fail * how about this * and this * restore lockfile Create expo plugin (#113) * chore: create expo plugin * chore: add plugin params * chore: add expo docs * fix package.json path upgrade tsc and clean up example app routing param types (#185) * upgrade tsc * clean up routing param types fix: TextInput color on Android (#84) npm release script (#87) * chore: add publish script * chore: update docs test connection token on init (#177) * chore: test connection token on init * chore: render app conditionally Handle other Android connection methods (#111) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix indentations * fix methods params * fix merge issues Revert "Handle other Android connection methods (#111)" (#186) This reverts commit 18db810. fix dependabot minimist issue (#189) usb connection type (#188) upgrade minimist in example app as well (#190) duplicated event listeners (#182) * fix: duplicated event listeners * temporary listener fix * fix typings * cleanup * fix updateing callbacks refs fix labels handle multiple secret keys, in-person refund tests updated android sdk to 2.7.1 (#200) Android validation and transformation helpers (#192) * making use of new transformation functions * validation helpers * removed some mappers Handle other Android connection methods #111 (#187) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix methods params * rebase fixes * rebase fix Co-authored-by: David Henry <dhenry@stripe.com> StripeTerminalReactNativeModule reduced scope (#202) * separated callbacks and listeners from RN module * cancelOperation added * ReactNativeConstants imports * extracting reader.serialNumber [wip] update readme with expo guidance and re-order content (#206) * update readme with expo guidance and re-order content * more * shufflin things * toc more doc fixes (#207) * more fixes * refactor * add note about links not being available adding codeowners (#208) [WIP] Android unit tests (#204) * separated callbacks and listeners from RN module * TokenProvider unit tests * run unit tests in circleci * unit test yarn command * BluetoothReaderListener unit tests * store test results * DiscoveryListener unit tests * updated test output path * test results path updated * UsbListenerTest * TerminalListener and HandoffReaderListener unit tests * one more try with the test output path Bump plist from 3.0.4 to 3.0.5 (#216) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 (#215) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump plist from 3.0.4 to 3.0.5 in /example (#214) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Reader update errors received by RN SDK (#217) * reader update errors received by RN SDK * lint * ios SDK sends update errors to RN SDK Prevent from calling methods before SDK initializing SDK (#203) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function Memoize StripeTerminalProvider values (#221) * fixing hooks deps * fix android all target * pushing looping location check * memoize context * discover * rrc * setupIntents android permissions util (#218) * android permissions util * improve location permission message add android expo steps to readme (#210) * add android steps * shuffle * update both files * toc test tokenProvider on init (#211) * test tokenProvider on init * catchable tokenProvider error Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225) This reverts commit 38972ad. added metadata property to enable Android SDK RN identification (#227) rename e2e file patch package revert API_URL handle CA server fix commands script rename fix server:ci command use canada API url from env fix server endpoint fix createPaymentIntent via server Add android expo support and permissions checker (#224) * update perms helper * it works * docs * refactor permissions utils logLevel only on StripeTerminalProvider component level (#223) * logLevel only on StripeTerminalProvider component level * fix typo createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232) * createPaymentIntent uses INTERAC_PRESENT for CAD currency * createPaymentIntent receives paymentMethodTypes from the POS application * enum mapping fix add setSimulatedCard method clean up use bluetooth reader for collecting CA payments fix e2e tests use keyboard aware scroll view fix linter set unique testID fix tests fix in-person refund e2e scroll to bottom before tap fix log name fetch latest interac charge refund - set test card number fix refund e2e fix e2e fix android ui fix e2e test, record failing tests prevent call methods being not initialized (#228) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function * improvements * remove direct functions export implement onDidReportAvailableUpdate in example app (#236) enable interac for e2e android scenario skip refunding tests on android fix e2e test add comments
internet reader e2e fixes fix typo fix e2e tests tests fixes and improvements setReadDisplay/clearReaderDisplay e2e test run setReaderDisplay e2e only on iOS fix setReaderDisplay test fix setReaderDisplay scenario fix test fix e2e test improve reader display screen layout prettier/eslint js files (#172) * updates * updates linting settings, adds prettier target * npm reg removed tvos target (#179) templates (#181) yarn diff check (#180) * add manual yarn.lock diff check * force fail * how about this * and this * restore lockfile Create expo plugin (#113) * chore: create expo plugin * chore: add plugin params * chore: add expo docs * fix package.json path upgrade tsc and clean up example app routing param types (#185) * upgrade tsc * clean up routing param types fix: TextInput color on Android (#84) npm release script (#87) * chore: add publish script * chore: update docs test connection token on init (#177) * chore: test connection token on init * chore: render app conditionally Handle other Android connection methods (#111) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix indentations * fix methods params * fix merge issues Revert "Handle other Android connection methods (#111)" (#186) This reverts commit 18db810. fix dependabot minimist issue (#189) usb connection type (#188) upgrade minimist in example app as well (#190) duplicated event listeners (#182) * fix: duplicated event listeners * temporary listener fix * fix typings * cleanup * fix updateing callbacks refs fix labels handle multiple secret keys, in-person refund tests updated android sdk to 2.7.1 (#200) Android validation and transformation helpers (#192) * making use of new transformation functions * validation helpers * removed some mappers Handle other Android connection methods #111 (#187) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix methods params * rebase fixes * rebase fix Co-authored-by: David Henry <dhenry@stripe.com> StripeTerminalReactNativeModule reduced scope (#202) * separated callbacks and listeners from RN module * cancelOperation added * ReactNativeConstants imports * extracting reader.serialNumber [wip] update readme with expo guidance and re-order content (#206) * update readme with expo guidance and re-order content * more * shufflin things * toc more doc fixes (#207) * more fixes * refactor * add note about links not being available adding codeowners (#208) [WIP] Android unit tests (#204) * separated callbacks and listeners from RN module * TokenProvider unit tests * run unit tests in circleci * unit test yarn command * BluetoothReaderListener unit tests * store test results * DiscoveryListener unit tests * updated test output path * test results path updated * UsbListenerTest * TerminalListener and HandoffReaderListener unit tests * one more try with the test output path Bump plist from 3.0.4 to 3.0.5 (#216) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 (#215) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump plist from 3.0.4 to 3.0.5 in /example (#214) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Reader update errors received by RN SDK (#217) * reader update errors received by RN SDK * lint * ios SDK sends update errors to RN SDK Prevent from calling methods before SDK initializing SDK (#203) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function Memoize StripeTerminalProvider values (#221) * fixing hooks deps * fix android all target * pushing looping location check * memoize context * discover * rrc * setupIntents android permissions util (#218) * android permissions util * improve location permission message add android expo steps to readme (#210) * add android steps * shuffle * update both files * toc test tokenProvider on init (#211) * test tokenProvider on init * catchable tokenProvider error Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225) This reverts commit 38972ad. added metadata property to enable Android SDK RN identification (#227) rename e2e file patch package revert API_URL handle CA server fix commands script rename fix server:ci command use canada API url from env fix server endpoint fix createPaymentIntent via server Add android expo support and permissions checker (#224) * update perms helper * it works * docs * refactor permissions utils logLevel only on StripeTerminalProvider component level (#223) * logLevel only on StripeTerminalProvider component level * fix typo createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232) * createPaymentIntent uses INTERAC_PRESENT for CAD currency * createPaymentIntent receives paymentMethodTypes from the POS application * enum mapping fix add setSimulatedCard method clean up use bluetooth reader for collecting CA payments fix e2e tests use keyboard aware scroll view fix linter set unique testID fix tests fix in-person refund e2e scroll to bottom before tap fix log name fetch latest interac charge refund - set test card number fix refund e2e fix e2e fix android ui fix e2e test, record failing tests prevent call methods being not initialized (#228) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function * improvements * remove direct functions export implement onDidReportAvailableUpdate in example app (#236) enable interac for e2e android scenario skip refunding tests on android fix e2e test add comments
internet reader e2e fixes fix typo fix e2e tests tests fixes and improvements setReadDisplay/clearReaderDisplay e2e test run setReaderDisplay e2e only on iOS fix setReaderDisplay test fix setReaderDisplay scenario fix test fix e2e test improve reader display screen layout prettier/eslint js files (#172) * updates * updates linting settings, adds prettier target * npm reg removed tvos target (#179) templates (#181) yarn diff check (#180) * add manual yarn.lock diff check * force fail * how about this * and this * restore lockfile Create expo plugin (#113) * chore: create expo plugin * chore: add plugin params * chore: add expo docs * fix package.json path upgrade tsc and clean up example app routing param types (#185) * upgrade tsc * clean up routing param types fix: TextInput color on Android (#84) npm release script (#87) * chore: add publish script * chore: update docs test connection token on init (#177) * chore: test connection token on init * chore: render app conditionally Handle other Android connection methods (#111) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix indentations * fix methods params * fix merge issues Revert "Handle other Android connection methods (#111)" (#186) This reverts commit 18db810. fix dependabot minimist issue (#189) usb connection type (#188) upgrade minimist in example app as well (#190) duplicated event listeners (#182) * fix: duplicated event listeners * temporary listener fix * fix typings * cleanup * fix updateing callbacks refs fix labels handle multiple secret keys, in-person refund tests updated android sdk to 2.7.1 (#200) Android validation and transformation helpers (#192) * making use of new transformation functions * validation helpers * removed some mappers Handle other Android connection methods #111 (#187) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix methods params * rebase fixes * rebase fix Co-authored-by: David Henry <dhenry@stripe.com> StripeTerminalReactNativeModule reduced scope (#202) * separated callbacks and listeners from RN module * cancelOperation added * ReactNativeConstants imports * extracting reader.serialNumber [wip] update readme with expo guidance and re-order content (#206) * update readme with expo guidance and re-order content * more * shufflin things * toc more doc fixes (#207) * more fixes * refactor * add note about links not being available adding codeowners (#208) [WIP] Android unit tests (#204) * separated callbacks and listeners from RN module * TokenProvider unit tests * run unit tests in circleci * unit test yarn command * BluetoothReaderListener unit tests * store test results * DiscoveryListener unit tests * updated test output path * test results path updated * UsbListenerTest * TerminalListener and HandoffReaderListener unit tests * one more try with the test output path Bump plist from 3.0.4 to 3.0.5 (#216) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 (#215) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump plist from 3.0.4 to 3.0.5 in /example (#214) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Reader update errors received by RN SDK (#217) * reader update errors received by RN SDK * lint * ios SDK sends update errors to RN SDK Prevent from calling methods before SDK initializing SDK (#203) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function Memoize StripeTerminalProvider values (#221) * fixing hooks deps * fix android all target * pushing looping location check * memoize context * discover * rrc * setupIntents android permissions util (#218) * android permissions util * improve location permission message add android expo steps to readme (#210) * add android steps * shuffle * update both files * toc test tokenProvider on init (#211) * test tokenProvider on init * catchable tokenProvider error Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225) This reverts commit 38972ad. added metadata property to enable Android SDK RN identification (#227) rename e2e file patch package revert API_URL handle CA server fix commands script rename fix server:ci command use canada API url from env fix server endpoint fix createPaymentIntent via server Add android expo support and permissions checker (#224) * update perms helper * it works * docs * refactor permissions utils logLevel only on StripeTerminalProvider component level (#223) * logLevel only on StripeTerminalProvider component level * fix typo createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232) * createPaymentIntent uses INTERAC_PRESENT for CAD currency * createPaymentIntent receives paymentMethodTypes from the POS application * enum mapping fix add setSimulatedCard method clean up use bluetooth reader for collecting CA payments fix e2e tests use keyboard aware scroll view fix linter set unique testID fix tests fix in-person refund e2e scroll to bottom before tap fix log name fetch latest interac charge refund - set test card number fix refund e2e fix e2e fix android ui fix e2e test, record failing tests prevent call methods being not initialized (#228) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function * improvements * remove direct functions export implement onDidReportAvailableUpdate in example app (#236) enable interac for e2e android scenario skip refunding tests on android fix e2e test add comments
internet reader e2e fixes fix typo fix e2e tests tests fixes and improvements setReadDisplay/clearReaderDisplay e2e test run setReaderDisplay e2e only on iOS fix setReaderDisplay test fix setReaderDisplay scenario fix test fix e2e test improve reader display screen layout prettier/eslint js files (#172) * updates * updates linting settings, adds prettier target * npm reg removed tvos target (#179) templates (#181) yarn diff check (#180) * add manual yarn.lock diff check * force fail * how about this * and this * restore lockfile Create expo plugin (#113) * chore: create expo plugin * chore: add plugin params * chore: add expo docs * fix package.json path upgrade tsc and clean up example app routing param types (#185) * upgrade tsc * clean up routing param types fix: TextInput color on Android (#84) npm release script (#87) * chore: add publish script * chore: update docs test connection token on init (#177) * chore: test connection token on init * chore: render app conditionally Handle other Android connection methods (#111) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix indentations * fix methods params * fix merge issues Revert "Handle other Android connection methods (#111)" (#186) This reverts commit 18db810. fix dependabot minimist issue (#189) usb connection type (#188) upgrade minimist in example app as well (#190) duplicated event listeners (#182) * fix: duplicated event listeners * temporary listener fix * fix typings * cleanup * fix updateing callbacks refs fix labels handle multiple secret keys, in-person refund tests updated android sdk to 2.7.1 (#200) Android validation and transformation helpers (#192) * making use of new transformation functions * validation helpers * removed some mappers Handle other Android connection methods #111 (#187) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix methods params * rebase fixes * rebase fix Co-authored-by: David Henry <dhenry@stripe.com> StripeTerminalReactNativeModule reduced scope (#202) * separated callbacks and listeners from RN module * cancelOperation added * ReactNativeConstants imports * extracting reader.serialNumber [wip] update readme with expo guidance and re-order content (#206) * update readme with expo guidance and re-order content * more * shufflin things * toc more doc fixes (#207) * more fixes * refactor * add note about links not being available adding codeowners (#208) [WIP] Android unit tests (#204) * separated callbacks and listeners from RN module * TokenProvider unit tests * run unit tests in circleci * unit test yarn command * BluetoothReaderListener unit tests * store test results * DiscoveryListener unit tests * updated test output path * test results path updated * UsbListenerTest * TerminalListener and HandoffReaderListener unit tests * one more try with the test output path Bump plist from 3.0.4 to 3.0.5 (#216) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 (#215) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump plist from 3.0.4 to 3.0.5 in /example (#214) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Reader update errors received by RN SDK (#217) * reader update errors received by RN SDK * lint * ios SDK sends update errors to RN SDK Prevent from calling methods before SDK initializing SDK (#203) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function Memoize StripeTerminalProvider values (#221) * fixing hooks deps * fix android all target * pushing looping location check * memoize context * discover * rrc * setupIntents android permissions util (#218) * android permissions util * improve location permission message add android expo steps to readme (#210) * add android steps * shuffle * update both files * toc test tokenProvider on init (#211) * test tokenProvider on init * catchable tokenProvider error Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225) This reverts commit 38972ad. added metadata property to enable Android SDK RN identification (#227) rename e2e file patch package revert API_URL handle CA server fix commands script rename fix server:ci command use canada API url from env fix server endpoint fix createPaymentIntent via server Add android expo support and permissions checker (#224) * update perms helper * it works * docs * refactor permissions utils logLevel only on StripeTerminalProvider component level (#223) * logLevel only on StripeTerminalProvider component level * fix typo createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232) * createPaymentIntent uses INTERAC_PRESENT for CAD currency * createPaymentIntent receives paymentMethodTypes from the POS application * enum mapping fix add setSimulatedCard method clean up use bluetooth reader for collecting CA payments fix e2e tests use keyboard aware scroll view fix linter set unique testID fix tests fix in-person refund e2e scroll to bottom before tap fix log name fetch latest interac charge refund - set test card number fix refund e2e fix e2e fix android ui fix e2e test, record failing tests prevent call methods being not initialized (#228) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function * improvements * remove direct functions export implement onDidReportAvailableUpdate in example app (#236) enable interac for e2e android scenario skip refunding tests on android fix e2e test add comments
* internet reader e2e tests internet reader e2e fixes fix typo fix e2e tests tests fixes and improvements setReadDisplay/clearReaderDisplay e2e test run setReaderDisplay e2e only on iOS fix setReaderDisplay test fix setReaderDisplay scenario fix test fix e2e test improve reader display screen layout prettier/eslint js files (#172) * updates * updates linting settings, adds prettier target * npm reg removed tvos target (#179) templates (#181) yarn diff check (#180) * add manual yarn.lock diff check * force fail * how about this * and this * restore lockfile Create expo plugin (#113) * chore: create expo plugin * chore: add plugin params * chore: add expo docs * fix package.json path upgrade tsc and clean up example app routing param types (#185) * upgrade tsc * clean up routing param types fix: TextInput color on Android (#84) npm release script (#87) * chore: add publish script * chore: update docs test connection token on init (#177) * chore: test connection token on init * chore: render app conditionally Handle other Android connection methods (#111) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix indentations * fix methods params * fix merge issues Revert "Handle other Android connection methods (#111)" (#186) This reverts commit 18db810. fix dependabot minimist issue (#189) usb connection type (#188) upgrade minimist in example app as well (#190) duplicated event listeners (#182) * fix: duplicated event listeners * temporary listener fix * fix typings * cleanup * fix updateing callbacks refs fix labels handle multiple secret keys, in-person refund tests updated android sdk to 2.7.1 (#200) Android validation and transformation helpers (#192) * making use of new transformation functions * validation helpers * removed some mappers Handle other Android connection methods #111 (#187) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix methods params * rebase fixes * rebase fix Co-authored-by: David Henry <dhenry@stripe.com> StripeTerminalReactNativeModule reduced scope (#202) * separated callbacks and listeners from RN module * cancelOperation added * ReactNativeConstants imports * extracting reader.serialNumber [wip] update readme with expo guidance and re-order content (#206) * update readme with expo guidance and re-order content * more * shufflin things * toc more doc fixes (#207) * more fixes * refactor * add note about links not being available adding codeowners (#208) [WIP] Android unit tests (#204) * separated callbacks and listeners from RN module * TokenProvider unit tests * run unit tests in circleci * unit test yarn command * BluetoothReaderListener unit tests * store test results * DiscoveryListener unit tests * updated test output path * test results path updated * UsbListenerTest * TerminalListener and HandoffReaderListener unit tests * one more try with the test output path Bump plist from 3.0.4 to 3.0.5 (#216) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 (#215) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump plist from 3.0.4 to 3.0.5 in /example (#214) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Reader update errors received by RN SDK (#217) * reader update errors received by RN SDK * lint * ios SDK sends update errors to RN SDK Prevent from calling methods before SDK initializing SDK (#203) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function Memoize StripeTerminalProvider values (#221) * fixing hooks deps * fix android all target * pushing looping location check * memoize context * discover * rrc * setupIntents android permissions util (#218) * android permissions util * improve location permission message add android expo steps to readme (#210) * add android steps * shuffle * update both files * toc test tokenProvider on init (#211) * test tokenProvider on init * catchable tokenProvider error Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225) This reverts commit 38972ad. added metadata property to enable Android SDK RN identification (#227) rename e2e file patch package revert API_URL handle CA server fix commands script rename fix server:ci command use canada API url from env fix server endpoint fix createPaymentIntent via server Add android expo support and permissions checker (#224) * update perms helper * it works * docs * refactor permissions utils logLevel only on StripeTerminalProvider component level (#223) * logLevel only on StripeTerminalProvider component level * fix typo createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232) * createPaymentIntent uses INTERAC_PRESENT for CAD currency * createPaymentIntent receives paymentMethodTypes from the POS application * enum mapping fix add setSimulatedCard method clean up use bluetooth reader for collecting CA payments fix e2e tests use keyboard aware scroll view fix linter set unique testID fix tests fix in-person refund e2e scroll to bottom before tap fix log name fetch latest interac charge refund - set test card number fix refund e2e fix e2e fix android ui fix e2e test, record failing tests prevent call methods being not initialized (#228) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function * improvements * remove direct functions export implement onDidReportAvailableUpdate in example app (#236) enable interac for e2e android scenario skip refunding tests on android fix e2e test add comments * hide simulated and connect fields Co-authored-by: Jason Divock <jdivock@stripe.com>
* internet reader e2e tests internet reader e2e fixes fix typo fix e2e tests tests fixes and improvements setReadDisplay/clearReaderDisplay e2e test run setReaderDisplay e2e only on iOS fix setReaderDisplay test fix setReaderDisplay scenario fix test fix e2e test improve reader display screen layout prettier/eslint js files (stripe#172) * updates * updates linting settings, adds prettier target * npm reg removed tvos target (stripe#179) templates (stripe#181) yarn diff check (stripe#180) * add manual yarn.lock diff check * force fail * how about this * and this * restore lockfile Create expo plugin (stripe#113) * chore: create expo plugin * chore: add plugin params * chore: add expo docs * fix package.json path upgrade tsc and clean up example app routing param types (stripe#185) * upgrade tsc * clean up routing param types fix: TextInput color on Android (stripe#84) npm release script (stripe#87) * chore: add publish script * chore: update docs test connection token on init (stripe#177) * chore: test connection token on init * chore: render app conditionally Handle other Android connection methods (stripe#111) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix indentations * fix methods params * fix merge issues Revert "Handle other Android connection methods (stripe#111)" (stripe#186) This reverts commit 18db810. fix dependabot minimist issue (stripe#189) usb connection type (stripe#188) upgrade minimist in example app as well (stripe#190) duplicated event listeners (stripe#182) * fix: duplicated event listeners * temporary listener fix * fix typings * cleanup * fix updateing callbacks refs fix labels handle multiple secret keys, in-person refund tests updated android sdk to 2.7.1 (stripe#200) Android validation and transformation helpers (stripe#192) * making use of new transformation functions * validation helpers * removed some mappers Handle other Android connection methods stripe#111 (stripe#187) * chore: handle other connection methods * chore: add proper e2e tests * fix: e2e tests * fix: e2e test * fix methods params * rebase fixes * rebase fix Co-authored-by: David Henry <dhenry@stripe.com> StripeTerminalReactNativeModule reduced scope (stripe#202) * separated callbacks and listeners from RN module * cancelOperation added * ReactNativeConstants imports * extracting reader.serialNumber [wip] update readme with expo guidance and re-order content (stripe#206) * update readme with expo guidance and re-order content * more * shufflin things * toc more doc fixes (stripe#207) * more fixes * refactor * add note about links not being available adding codeowners (stripe#208) [WIP] Android unit tests (stripe#204) * separated callbacks and listeners from RN module * TokenProvider unit tests * run unit tests in circleci * unit test yarn command * BluetoothReaderListener unit tests * store test results * DiscoveryListener unit tests * updated test output path * test results path updated * UsbListenerTest * TerminalListener and HandoffReaderListener unit tests * one more try with the test output path Bump plist from 3.0.4 to 3.0.5 (stripe#216) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 (stripe#215) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump ansi-regex from 4.1.0 to 4.1.1 in /example (stripe#213) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump plist from 3.0.4 to 3.0.5 in /example (stripe#214) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Reader update errors received by RN SDK (stripe#217) * reader update errors received by RN SDK * lint * ios SDK sends update errors to RN SDK Prevent from calling methods before SDK initializing SDK (stripe#203) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function Memoize StripeTerminalProvider values (stripe#221) * fixing hooks deps * fix android all target * pushing looping location check * memoize context * discover * rrc * setupIntents android permissions util (stripe#218) * android permissions util * improve location permission message add android expo steps to readme (stripe#210) * add android steps * shuffle * update both files * toc test tokenProvider on init (stripe#211) * test tokenProvider on init * catchable tokenProvider error Revert "Prevent from calling methods before SDK initializing SDK (stripe#203)" (stripe#225) This reverts commit 38972ad. added metadata property to enable Android SDK RN identification (stripe#227) rename e2e file patch package revert API_URL handle CA server fix commands script rename fix server:ci command use canada API url from env fix server endpoint fix createPaymentIntent via server Add android expo support and permissions checker (stripe#224) * update perms helper * it works * docs * refactor permissions utils logLevel only on StripeTerminalProvider component level (stripe#223) * logLevel only on StripeTerminalProvider component level * fix typo createPaymentIntent uses INTERAC_PRESENT for CAD currency (stripe#232) * createPaymentIntent uses INTERAC_PRESENT for CAD currency * createPaymentIntent receives paymentMethodTypes from the POS application * enum mapping fix add setSimulatedCard method clean up use bluetooth reader for collecting CA payments fix e2e tests use keyboard aware scroll view fix linter set unique testID fix tests fix in-person refund e2e scroll to bottom before tap fix log name fetch latest interac charge refund - set test card number fix refund e2e fix e2e fix android ui fix e2e test, record failing tests prevent call methods being not initialized (stripe#228) * prevent from calling methods before SDK initializing SDK * improve error message * isInitialized as a util function * improvements * remove direct functions export implement onDidReportAvailableUpdate in example app (stripe#236) enable interac for e2e android scenario skip refunding tests on android fix e2e test add comments * hide simulated and connect fields Co-authored-by: Jason Divock <jdivock@stripe.com>
Summary
Adds USB connectivity for Android
Testing