-
Notifications
You must be signed in to change notification settings - Fork 525
<PaymentCardTextField /> locks up iOS apps on tipsi-stripe v6 #408
Comments
@projectpublius hi, thank you for your issue. Haven't checked it now, but internally we've upgraded our apps and everything looks fine for never stripe sdk + tipsi-stripe. |
I cannot give you an estimation when we will look into this issue deeper right now. We're short on dev resources right now. |
Thanks. Reverting to version 5.6.0 works as a temporary solution. |
Same on RN0.56.1. |
Same for me on RN 0.56.1. But it does not work only on iPhone X, XR, XS and XS max. |
Failed for me on a physical iPhone 6s Plus. Interestingly, the field does work in the simulator. |
Yep, having the same issues as above. On Simulator, the field works, but tapping away from it causes the app to crash. On devices, simply tapping on the textInput causes a crash. |
I've same issue with |
I do not really understand why but it seems to be related to those lines
&
Because removing those lines seems to fix the issue. I've created a PR (#418) to try to fix this. |
Same problem when running on a real device (iPhone 5s) I see this in XCode:
|
As a temporary workaround on iPhone you can use react-native-credit-card-input, it works |
So this delegate is causing an infinite loop: https://github.com/tipsi/tipsi-stripe/blob/master/ios/TPSStripe/TPSCardField.m#L32-L36 I commented these lines out and things started working.. I'm not sure what exactly the code there is supposed to do as I don't know Objective-C. |
Editing the file like the above commit from This now lets me focus in however I cannot tap out and dismiss the keyboard. Using Devices my the fix has solved for are:
|
Editing the file like the above commit from This now lets me focus in however I cannot tap out and dismiss the keyboard. Using Devices my the fix has solved for are:
|
This bug is also present in v7 on RN 56 |
Still seeing this issue in v7.4.0 with RN 58.5 |
@otajor For temporary fix you can use my fork. |
We're seeing this on RN 0.59.2 since our upgrade from 0.57.7 (tipsi-stripe version 7.5.0). The PR #418, which fixed the issue, was closed without an explanation. Does anyone know why? Or can confirm they're using this fix in production? Thanks! |
So, is this going to get fixed? |
@ashfurrow / @rvera #418 didn't pass CI tests so we cannot merge it even if it fixes something it obviously breaks tests. Apparently, it is going to be fixed if someone submits proper PR that passes tests and add test for this case and that hasn't happened yet. |
@cybergrind Thank you for the response. I understand that you can't merge a PR that breaks tests, but the code in question is Objective-C and doesn't look like it's been touched in a few years and, without context around why the code is even there, it will be difficult for an OSS contributor to fix the bug and the tests. Obviously this is Tipsi's library, and I do sincerely thank you all for sharing it with the open source community, so we can't expect you to fix this for us. Unfortunately, it seems like we're at an impasse; the OSS users who are seeing this bug will have to fork the library and apply the fix from #418. Thanks again for the open source library. |
@ashfurrow it all is up to you =)
So we're all in the same situation. I don't have anyone who is familiar with this code right now and someone needs to dig into it and discover what is that all about. |
Yeah, I figured that might be the case :) It happens, I'll keep this on my backlog of things I'd like to fix someday when I get the time 😉 |
In React-Native 45, they removed a deprecated API that This commit: facebook/react-native@bc1ea54#diff-3e154f92c7ba4cb47e96785b9dadf3aa The documentation says we need to support React-Native 40 or later, or we need to make another API breakage (Compatibility Docs) I have a minimal fix that appears to work, but I'm not really set up to test this all the way back to React-Native 40. I've opened a PR for comment: #508 /cc @mindlapse @cybergrind |
Fixes tipsi#408 React-Native removed support for the react(Will|Did)MakeFirstResponder APIs in this commit: facebook/react-native@bc1ea54#diff-3e154f92c7ba4cb47e96785b9dadf3aa
React is at 0.60 now – way past 40, which appears to have been tagged two
and a half years ago – I wonder if the authors/maintainers are still
actually interested in maintaining support back that far?
My two cents is that this is worth a version bump and a change in
compatibility – are any maintainers around to chime in?
…On Tue, Jul 23, 2019 at 7:08 PM Frederic Barthelemy < ***@***.***> wrote:
In React-Native 45, they removed a deprecated API that <PaymentCardTextField
/> was built on.
This commit: ***@***.***
#diff-3e154f92c7ba4cb47e96785b9dadf3aa
<facebook/react-native@bc1ea54#diff-3e154f92c7ba4cb47e96785b9dadf3aa>
The documentation says we need to support React-Native 40 or later, or we
need to make another API breakage (Compatibility Docs
<https://tipsi.github.io/tipsi-stripe/docs/compatibility.html>)
I have a minimal fix that appears to work, but I'm not really set up to
test this all the way back to React-Native 40.
I'm happy to open a PR for comment, and will do so shortly.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#408?email_source=notifications&email_token=AABQFPOVHZ52MS65YXFBWSLQA6FO7A5CNFSM4GFPBMOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2UV2DA#issuecomment-514415884>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABQFPJ4WON7CNX3MKNQ4YTQA6FO7ANCNFSM4GFPBMOA>
.
|
This is broken on RN 0.59.10 and tipsi-stripe 7.5.1, what do I need to do to get around/fix it? iOS fully locks up when users try to close the modal containing the payment text field. |
Alright, this PR is old now and trying to use the fix PR breaks due to: viromedia/viro#558 |
I can try it @fbartho . But I tried using your fork locally and things were still broken so... |
I rebased his branch and opened another PR: #521 |
Fixes #408 React-Native removed support for the react(Will|Did)MakeFirstResponder APIs in this commit: facebook/react-native@bc1ea54#diff-3e154f92c7ba4cb47e96785b9dadf3aa
The issue is still there on 7.5.1 what is the final solution for this? When will you merge the PR with fixed issue. |
@moazkh60 I can confirm this is fixed in 8.0.0-beta.7. |
I'm new to tipsi-stripe but heard/read great things about it so I was a little surprised by the issues I had getting the package installed and running successfully, but I have to say I'm outright baffled after running into this problem ☝️ almost immediately and then coming across this thread. If I'm not mistaken, there is one component feature in the library. I understand there are other methods that can be used but I still can't understand how the one and only component has been broken for so long and is still unresolved, especially since it's seems like so many offered up solutions/PRs. A little discouraging. @bramski I tried 8.0.0-beta.7 and am seeing the following error, have you not seen this? Unfortunately I'm not very familiar with Objective-C. iOS: 12.3.1 |
@amie-wilt take your question to discord. |
@amie-wilt -- Unfortunately that issue is because you're not running a modern enough version of |
Confirmed PaymentCardTextField working on 8.0.0-beta.8 with RN 0.59.10 |
* Stripe AppInfo added with stripe-android, react-native & android upgrade AppInfo is needed so that Stripe can identify the transactions that are created through tipsi-stripe Along with this, the compile and target SDK versions for android have been bumped to v28, stripe-android has been upgraded to 9.3.5, the minSdkVersion has increased to v19 (required). Example app changes: - Android compile and target SDK change from 26 -> 28 - Android min SDK change from 16 -> 19 - Android multiDexEnabled true - Android support libraries upgraded to v28 - React native upgraded to 0.59.10 - React upgraded to 16.8.6 - android.useDeprecatedNdk=true was removed since it is no longer supported. - android.enableAapt2=false was removed since it is now the default - Gradle build tools upgraded to 3.4.1. Gradle wrapper upgraded to v5.5. * Adding .circleci * Stripe AppInfo and library upgrades - CircleCI config (for android) - Android - Compile SDK version increased from 26 to 28 - Android - Target SDK version increased from 26 to 28 - Android - Min SDK version increased from 16 to 19 - Android - stripe-android increased from 8.1.0 to 9.3.5 - Android - Added Stripe AppInfo to requests Example app: - Updated react-native to 0.59.10 from 0.45.0 - Updated react to 16.8.6 from 16.0.x - Upgraded gradle Tests: - Updated test suite to use webdriver 5.x from 4.7.1 - Update appium to 1.14 * stripe-ios AppInfo initial config * `managedAccountCurrency` is no longer relevant according to the migration guide. * typo-fixes * Update Stripe CardForm options to support the "name"-only option in the requiredBillingAddressFields-option * Dynamically list supported ApplePay networks on this device & write documentation * Switch eslint-config & allow rules that are already existing patterns in the codebase * Add missing docs pages, and reorganize the sidebars a little bit * Add prettier to format the rendered-docs-html making diffing easier, and render the current docs * Upgrade Example Project to Stripe 16 & Cocoapods changed something * misc test fix * React-Native 59 for the Example App for iOS * ApplePay example tweaks now that it's running * Got the testapp changes working! * Prettier Javascript Formatting * Extract Deprecated Methods to a separate file * Adds Android confirmPayment, authenticatePayment, createPaymentMethod Note: This commit breaks iOS - a subsequent commit is needed Added confirmPayment, authenticatePayment, createPaymentMethod bindings for src/Stripe.js Upgrade to stripe-android:10.1.1 * Adds Android confirmSetupIntent and authenticateSetup Note: This commit breaks iOS - a subsequent commit is needed * Android changes for confirming a payment intent, with test page - Confirmation of a payment intent resolves with { status, paymentIntentId } - status is one of 'CANCELED', 'FAILED', 'SUCCEEDED', 'TIMEDOUT', or 'UNKNOWN' - test page requires 'STRIPE_BACKEND' env to be defined, and it should contain a URL with a trailing slash pointing to a deployment of https://github.com/mindlapse/example-tipsi-stripe-backend * Android changes for confirming a payment intent, with test page (cont..) Wiring in the new example app PaymentIntentScreen * Prettier configs in subfolders * Prettier Formatting * Adds SetupIntentScreen and stripe-android:10.2.1 (contains setupintent fix) * PaymentIntent demo page updated to include manual entry with the card widget * Add some jsDocs * TPSCardField fixes * iOS: Stub-in new methods, tweak certain bits of lifecycle * API changes - Dropped support for 'returnURL' for now (until there is demand for it to be introduced along with proper demo/tests) - Added experimental Promise handling for authenticateSetup and authenticatePayment - Allow a payment intent to be confirmed with just the clientSecret (without requiring a payment method to be provided client side) * iOS: Implement Serializers / Parsers for marshalling parameters/results across the RN Bridge + JSDoc * JSDoc: Missed a type * iOS: error case robustness * iOS: implement authenticatePaymentIntent / authenticateSetupIntent * Prettier Formatting for PaymentIntent/SetupIntent Test Screens * Tweak confirmPayment/confirmSetup to check & process 3DSecure Actions * React 16.9 componentWillMount deleted compatibility * Get Travis to install Xcode10.3 & Node >= 8.3 * oraclejdk8 is not supported on Travis's Xenial boxes * Apply suggestions from code review PRFeedback! * Update npm to try to fix error * Fix field focus infinite recursion in keyboardWillShow on > RN 45 Fixes tipsi#408 React-Native removed support for the react(Will|Did)MakeFirstResponder APIs in this commit: facebook/react-native@bc1ea54#diff-3e154f92c7ba4cb47e96785b9dadf3aa * Fix incorrect test js syntax * Fixup some issues with ci for ios * Prettier formatting * Adds test cards to demo page Test cards can be found here: https://stripe.com/docs/testing * Adding manual confirmation support for Payment Intents * Merge fixes, updated npm run configure to list rewrite envs * Doc update - adds Objects > PaymentMethod * Have new setup & payment intent methods return the status off of the intent itself * example app: PaymentIntentScreen updates * Added an extra test card (has no 3ds & always declines) * Example app: automatic flow error handling update * Additional test cards * AddCardDialogFragment changes to support PaymentMethods * Remove support for sourceId from confirmPayment * tipsi-stripe iOS Native SDK version to 16.0.6 adrien.teulade-pod-point / timrc discussed this in Discord * Remove Signatures that React-Native can't resolve at runtime these are typedefs that revert to NSStrings at runtime, but that means that the name doesn't exist which then fails to pass their check here: https://github.com/facebook/react-native/blob/c20070f10458d48d6ac1eaac49e681e932bfb9fd/React/Base/RCTParserUtils.m#L119 * Example: Prettier (JS Formatting) * Tighten up some types as per discussion Discussion Thread: https://github.com/tipsi/tipsi-stripe/pull/515/files#r310823098 * Android: Ensure useStripeSDK is always set to true * Adds returnURL to confirm calls and 'Intent' suffix to the Stripe.js interface * Token fix * Missed prettier-jsx formatting * Robustness in CardParams parsing from tokens * jsdoc cardparam.token * iOS: API Naming Consistency * iOS: Enable recommended modern iOS Warnings * Fixup reasonable lint exceptions in the example app * eslint-based fixes * Example-app: API Naming Consistency with Native * PaymentIntent requires_payment_method -> requires_paymentMethod based on iOS * iOS, JS: fixup IntentStatus values to match Server Docs * Disabling authenticateSetupIntent until we need it * PaymentIntent guide - doc update * Small fix to example app * Roll 8.0.0-beta.1 * lint & prettier changes * iOS Fixup `paymentRequestWithCardForm` for stripe-ios Breaking API Changes * Add metadata support on Android * Fix JSDocs around PaymentMethod customerId * JSDoc the PaymentMethodCard Type -- especially Brand * Misc consistency * iOS: Don't assert if the paymentMethod is not provided in this helper (reused when a paymentMethodId might be provided) * iOS: Use the official way to bridge CardBrands to Strings * Android: Attempt to convert CardBrands instead of exposing the lowercased constant values * Restored brand slugs for PaymentMethod card serialization * Change CardBrand handling to expose API differences in Stripe Constant-values * Card-based APIs expose brand as a Human Presentable Value -- eg "American Express" * Newer, PaymentMethod:Card-based APIs expose brand as a brand-slug Identifier -- eg "amex" * Add display utilities around card brands * JSDoc the PaymentCardTextField Component * Doc update, re: PaymentIntent API * Roll 8.0.0-beta.2 * Fix iOS constant-key macro * stripe-ios 16.0.7 * Removed support for token creation in stripe.paymentRequestWithCardForm Only PaymentMethod creation is supported * Removed support for token creation in stripe.paymentRequestWithCardForm * PaymentCardTextField component, event bubbling issue * Further Improve JSDocs * Roll out 8.0.0-beta.3 * Updated changelog & appinfo * iOS Stripe-AppInfo version to 8.x * provide a status of unknown in the error state of serializing (Payment/Setup)IntentResults This matches iOS * iOS Changelog tweaks * Make our post-link-ios script suggest stripe-ios 16.x * Serialize `paymentMethodId` when resolving confirmSetupIntent/authenticateSetupIntent Related feature request for Android PaymentIntents: stripe/stripe-android#1445 * stripe-android 10.4.0 & paymentMethodId consistency! * Upgraded stripe-android to 10.4.0 and added paymentMethodId * nil/null robustness (in case users pass null for this parameter) * Parse & use the returnURL if provided for relevant APIs * Quick-Document the returnURL property * Better Connect Stripe Error Messages through to React-Native * Roll out 8.0.0-beta.4 * Enable android pay in example app * Docs: add saving card documentation * Docs: build new version * Finish up fixing the PaymentCardTextField Component iOS Lockup Moots tipsi#508 tipsi#521 * iOS: Support using multiple Stripe accounts with 3DSecure * Updated confirmSetupIntent error codes * iOS: Android Error Consistency re: authenticationFailed * Example app screen improvements * Expose setStripeAccount to JS (Enable Stripe Connect accounts) * Fix incorrect method access. Add usage and code to example app * Roll out 8.0.0-beta.5 * iOS: Fix happy path for cards * Roll out 8.0.0-beta.6 * iOS: Remove assert forcing paymentMethod/id to be passed to confirmPaymentIntent Instead of forcing them to re-submit the same paymentMethod/paymentMethodId at the time of confirmPaymentIntent, the user can instead attach the paymentMethod/id on the backend before calling confirm * Example app - added missing lines * Fix for <STRIPE_ACCOUNT> * Revert "Fix for <STRIPE_ACCOUNT>" This reverts commit 7e61f1a. * Revert 1a5a5cc * Revert ee98528 * PropTypes: Allow omitting paymentMethod/paymentMethodId on confirmPaymentIntent Fixes: tipsi#536 * iOS: Misc readability * iOS: Treat `requires_capture` as a successful confirmPaymentIntent status * Move the PaymentIntentStatusRequiresCapture check to the confirmPaymentIntent method * confirmPaymentIntent: clean up wrong enum copy-paste error * iOS: Default to useStripeSDK = true * iOS: Clean up some unnecessary redundant returnURL parsing * To align with iOS, the confirmPaymentIntent promise is rejected unless the payment intent ends up in `succeeded` or `requires_capture` * If the resultingStatus of the PaymentIntent is either `succeeded`, or `requires_capture` then resolve the promise with `{ status: 'succeeded', ... }` * If the resultingStatus of the PaymentIntent is either `canceled`, `requires_action`, or `requires_confirmation`, then consider the payment intent to be `cancelled` and reject the promise. * Otherwise, consider the payment intent to be `failed` and reject the promise * Roll out 8.0.0-beta.7 * Upgrade to latest stripe-android on the 10.4 branch * Allow/Suggest stripe-ios @ 17.0.1 or later * Android: Allow RequiresConfirmation to be a successful outcome * Logic cleanup * Roll out 8.0.0-beta.8 * Switch Statement Robustness -- stripe-ios 17.0.2 compatibility * Prettier Formatting * Migration doc * Roll 8.0.0-beta.9 * [fix] AndroidX Co-authored-by: Dave MacDonald <mindlapse@users.noreply.github.com> Co-authored-by: Frederic Barthelemy <git@fbartho.com> Co-authored-by: Kirill Pinchuk <cybergrind@gmail.com> Co-authored-by: André Perdigão <andrepcg@gmail.com>
* Stripe AppInfo added with stripe-android, react-native & android upgrade AppInfo is needed so that Stripe can identify the transactions that are created through tipsi-stripe Along with this, the compile and target SDK versions for android have been bumped to v28, stripe-android has been upgraded to 9.3.5, the minSdkVersion has increased to v19 (required). Example app changes: - Android compile and target SDK change from 26 -> 28 - Android min SDK change from 16 -> 19 - Android multiDexEnabled true - Android support libraries upgraded to v28 - React native upgraded to 0.59.10 - React upgraded to 16.8.6 - android.useDeprecatedNdk=true was removed since it is no longer supported. - android.enableAapt2=false was removed since it is now the default - Gradle build tools upgraded to 3.4.1. Gradle wrapper upgraded to v5.5. * Adding .circleci * Stripe AppInfo and library upgrades - CircleCI config (for android) - Android - Compile SDK version increased from 26 to 28 - Android - Target SDK version increased from 26 to 28 - Android - Min SDK version increased from 16 to 19 - Android - stripe-android increased from 8.1.0 to 9.3.5 - Android - Added Stripe AppInfo to requests Example app: - Updated react-native to 0.59.10 from 0.45.0 - Updated react to 16.8.6 from 16.0.x - Upgraded gradle Tests: - Updated test suite to use webdriver 5.x from 4.7.1 - Update appium to 1.14 * stripe-ios AppInfo initial config * `managedAccountCurrency` is no longer relevant according to the migration guide. * typo-fixes * Update Stripe CardForm options to support the "name"-only option in the requiredBillingAddressFields-option * Dynamically list supported ApplePay networks on this device & write documentation * Switch eslint-config & allow rules that are already existing patterns in the codebase * Add missing docs pages, and reorganize the sidebars a little bit * Add prettier to format the rendered-docs-html making diffing easier, and render the current docs * Upgrade Example Project to Stripe 16 & Cocoapods changed something * misc test fix * React-Native 59 for the Example App for iOS * ApplePay example tweaks now that it's running * Got the testapp changes working! * Prettier Javascript Formatting * Extract Deprecated Methods to a separate file * Adds Android confirmPayment, authenticatePayment, createPaymentMethod Note: This commit breaks iOS - a subsequent commit is needed Added confirmPayment, authenticatePayment, createPaymentMethod bindings for src/Stripe.js Upgrade to stripe-android:10.1.1 * Adds Android confirmSetupIntent and authenticateSetup Note: This commit breaks iOS - a subsequent commit is needed * Android changes for confirming a payment intent, with test page - Confirmation of a payment intent resolves with { status, paymentIntentId } - status is one of 'CANCELED', 'FAILED', 'SUCCEEDED', 'TIMEDOUT', or 'UNKNOWN' - test page requires 'STRIPE_BACKEND' env to be defined, and it should contain a URL with a trailing slash pointing to a deployment of https://github.com/mindlapse/example-tipsi-stripe-backend * Android changes for confirming a payment intent, with test page (cont..) Wiring in the new example app PaymentIntentScreen * Prettier configs in subfolders * Prettier Formatting * Adds SetupIntentScreen and stripe-android:10.2.1 (contains setupintent fix) * PaymentIntent demo page updated to include manual entry with the card widget * Add some jsDocs * TPSCardField fixes * iOS: Stub-in new methods, tweak certain bits of lifecycle * API changes - Dropped support for 'returnURL' for now (until there is demand for it to be introduced along with proper demo/tests) - Added experimental Promise handling for authenticateSetup and authenticatePayment - Allow a payment intent to be confirmed with just the clientSecret (without requiring a payment method to be provided client side) * iOS: Implement Serializers / Parsers for marshalling parameters/results across the RN Bridge + JSDoc * JSDoc: Missed a type * iOS: error case robustness * iOS: implement authenticatePaymentIntent / authenticateSetupIntent * Prettier Formatting for PaymentIntent/SetupIntent Test Screens * Tweak confirmPayment/confirmSetup to check & process 3DSecure Actions * React 16.9 componentWillMount deleted compatibility * Get Travis to install Xcode10.3 & Node >= 8.3 * oraclejdk8 is not supported on Travis's Xenial boxes * Apply suggestions from code review PRFeedback! * Update npm to try to fix error * Fix field focus infinite recursion in keyboardWillShow on > RN 45 Fixes tipsi#408 React-Native removed support for the react(Will|Did)MakeFirstResponder APIs in this commit: facebook/react-native@bc1ea54#diff-3e154f92c7ba4cb47e96785b9dadf3aa * Fix incorrect test js syntax * Fixup some issues with ci for ios * Prettier formatting * Adds test cards to demo page Test cards can be found here: https://stripe.com/docs/testing * Adding manual confirmation support for Payment Intents * Merge fixes, updated npm run configure to list rewrite envs * Doc update - adds Objects > PaymentMethod * Have new setup & payment intent methods return the status off of the intent itself * example app: PaymentIntentScreen updates * Added an extra test card (has no 3ds & always declines) * Example app: automatic flow error handling update * Additional test cards * AddCardDialogFragment changes to support PaymentMethods * Remove support for sourceId from confirmPayment * tipsi-stripe iOS Native SDK version to 16.0.6 adrien.teulade-pod-point / timrc discussed this in Discord * Remove Signatures that React-Native can't resolve at runtime these are typedefs that revert to NSStrings at runtime, but that means that the name doesn't exist which then fails to pass their check here: https://github.com/facebook/react-native/blob/c20070f10458d48d6ac1eaac49e681e932bfb9fd/React/Base/RCTParserUtils.m#L119 * Example: Prettier (JS Formatting) * Tighten up some types as per discussion Discussion Thread: https://github.com/tipsi/tipsi-stripe/pull/515/files#r310823098 * Android: Ensure useStripeSDK is always set to true * Adds returnURL to confirm calls and 'Intent' suffix to the Stripe.js interface * Token fix * Missed prettier-jsx formatting * Robustness in CardParams parsing from tokens * jsdoc cardparam.token * iOS: API Naming Consistency * iOS: Enable recommended modern iOS Warnings * Fixup reasonable lint exceptions in the example app * eslint-based fixes * Example-app: API Naming Consistency with Native * PaymentIntent requires_payment_method -> requires_paymentMethod based on iOS * iOS, JS: fixup IntentStatus values to match Server Docs * Disabling authenticateSetupIntent until we need it * PaymentIntent guide - doc update * Small fix to example app * Roll 8.0.0-beta.1 * lint & prettier changes * iOS Fixup `paymentRequestWithCardForm` for stripe-ios Breaking API Changes * Add metadata support on Android * Fix JSDocs around PaymentMethod customerId * JSDoc the PaymentMethodCard Type -- especially Brand * Misc consistency * iOS: Don't assert if the paymentMethod is not provided in this helper (reused when a paymentMethodId might be provided) * iOS: Use the official way to bridge CardBrands to Strings * Android: Attempt to convert CardBrands instead of exposing the lowercased constant values * Restored brand slugs for PaymentMethod card serialization * Change CardBrand handling to expose API differences in Stripe Constant-values * Card-based APIs expose brand as a Human Presentable Value -- eg "American Express" * Newer, PaymentMethod:Card-based APIs expose brand as a brand-slug Identifier -- eg "amex" * Add display utilities around card brands * JSDoc the PaymentCardTextField Component * Doc update, re: PaymentIntent API * Roll 8.0.0-beta.2 * Fix iOS constant-key macro * stripe-ios 16.0.7 * Removed support for token creation in stripe.paymentRequestWithCardForm Only PaymentMethod creation is supported * Removed support for token creation in stripe.paymentRequestWithCardForm * PaymentCardTextField component, event bubbling issue * Further Improve JSDocs * Roll out 8.0.0-beta.3 * Updated changelog & appinfo * iOS Stripe-AppInfo version to 8.x * provide a status of unknown in the error state of serializing (Payment/Setup)IntentResults This matches iOS * iOS Changelog tweaks * Make our post-link-ios script suggest stripe-ios 16.x * Serialize `paymentMethodId` when resolving confirmSetupIntent/authenticateSetupIntent Related feature request for Android PaymentIntents: stripe/stripe-android#1445 * stripe-android 10.4.0 & paymentMethodId consistency! * Upgraded stripe-android to 10.4.0 and added paymentMethodId * nil/null robustness (in case users pass null for this parameter) * Parse & use the returnURL if provided for relevant APIs * Quick-Document the returnURL property * Better Connect Stripe Error Messages through to React-Native * Roll out 8.0.0-beta.4 * Enable android pay in example app * Docs: add saving card documentation * Docs: build new version * Finish up fixing the PaymentCardTextField Component iOS Lockup Moots tipsi#508 tipsi#521 * iOS: Support using multiple Stripe accounts with 3DSecure * Updated confirmSetupIntent error codes * iOS: Android Error Consistency re: authenticationFailed * Example app screen improvements * Expose setStripeAccount to JS (Enable Stripe Connect accounts) * Fix incorrect method access. Add usage and code to example app * Roll out 8.0.0-beta.5 * iOS: Fix happy path for cards * Roll out 8.0.0-beta.6 * iOS: Remove assert forcing paymentMethod/id to be passed to confirmPaymentIntent Instead of forcing them to re-submit the same paymentMethod/paymentMethodId at the time of confirmPaymentIntent, the user can instead attach the paymentMethod/id on the backend before calling confirm * Example app - added missing lines * Fix for <STRIPE_ACCOUNT> * Revert "Fix for <STRIPE_ACCOUNT>" This reverts commit 7e61f1a. * Revert 1a5a5cc * Revert ee98528 * PropTypes: Allow omitting paymentMethod/paymentMethodId on confirmPaymentIntent Fixes: tipsi#536 * iOS: Misc readability * iOS: Treat `requires_capture` as a successful confirmPaymentIntent status * Move the PaymentIntentStatusRequiresCapture check to the confirmPaymentIntent method * confirmPaymentIntent: clean up wrong enum copy-paste error * iOS: Default to useStripeSDK = true * iOS: Clean up some unnecessary redundant returnURL parsing * To align with iOS, the confirmPaymentIntent promise is rejected unless the payment intent ends up in `succeeded` or `requires_capture` * If the resultingStatus of the PaymentIntent is either `succeeded`, or `requires_capture` then resolve the promise with `{ status: 'succeeded', ... }` * If the resultingStatus of the PaymentIntent is either `canceled`, `requires_action`, or `requires_confirmation`, then consider the payment intent to be `cancelled` and reject the promise. * Otherwise, consider the payment intent to be `failed` and reject the promise * Roll out 8.0.0-beta.7 * Upgrade to latest stripe-android on the 10.4 branch * Allow/Suggest stripe-ios @ 17.0.1 or later * Android: Allow RequiresConfirmation to be a successful outcome * Logic cleanup * Roll out 8.0.0-beta.8 * Switch Statement Robustness -- stripe-ios 17.0.2 compatibility * Prettier Formatting * Add setStripeAccount support. Adds Stripe Connect Support. new JS method `setStripeAccount` which can be an account id or null. * Migration doc * Upgrade tipsi-android to 1.4.6 See: stripe/stripe-android#1654 * Roll 8.0.0-beta.9 * Fix extracting billingDetails * Fixed compilation error for 8.0.0.beta9 due to fpx issue * Mark an unsupported entry with a comment * Fix build on xcode 11.4 See stripe/stripe-ios#1526 * Update npmignore * Update for AndroidX (#2) * Saving before trying android studio migrate * AndroidX conversion tweaks * AndroidX conversion tweaks Co-authored-by: Tomas Maly <tmaly1980@gmail.com> Co-authored-by: Dave MacDonald <mindlapse@gmail.com> Co-authored-by: Frederic Barthelemy <git@fbartho.com> Co-authored-by: Kirill Pinchuk <cybergrind@gmail.com> Co-authored-by: Dave MacDonald <mindlapse@users.noreply.github.com> Co-authored-by: André Perdigão <andrepcg@gmail.com> Co-authored-by: Bram Whillock <bramski@gmail.com> Co-authored-by: Igor Kozlovsky <igor.lemon.kozlovsky@gmail.com> Co-authored-by: Max Hung <info@maxhung.co.nz> Co-authored-by: Torres Yang <yangguanhua@gmail.com> Co-authored-by: Tomas Maly <tmaly1980@gmail.com>
Fixes tipsi/tipsi-stripe#408 React-Native removed support for the react(Will|Did)MakeFirstResponder APIs in this commit: facebook/react-native@bc1ea54#diff-3e154f92c7ba4cb47e96785b9dadf3aa
Before I have submitted the issue
[X] I have read an installation guide
[X] I know that for an iOS I need to install pods because I've read the installation guide
[X] I have read a linking guide and checked that everything is OK like in manual linking guide
[X] I know that before using
tipsi-stripe
I need to set options for my app as described in usage guideThe problem
<PaymentCardTextField />
locks up iOS applications after upgradingtipsi-stripe
from 5.6.0 to 6.1.2 and upgrading the iOS Stripe SDK from 11.2.0 to 13.2.0. The issue does not impact Android.Environment
tipsi-stripe
version: 6.1.2tipsi-stripe
version where the issue was not reproduced (if applicable): 5.6.0com.google.firebase:firebase-core
version:com.google.android.gms:play-services-base
version:Screenshots, GIFs (Must to have)
Code To Reproduce Issue (Good To Have)
Issue can be replicated by creating a new react native project and attempting to run the example code (https://tipsi.github.io/tipsi-stripe/docs/paymentcardtextfield.html) on a device or in simulator
The text was updated successfully, but these errors were encountered: