We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am experiencing the following issues with the AddressSheet component from the stripe-react-native library in both Android and iOS:
AddressSheet
stripe-react-native
gradle.properties
Steps to Reproduce
<AddressSheet visible={addressSheetVisible} onSubmit={addressDetails => { // this will not get triggered setAddress(addressDetails?.address); setAddressSheetVisible(false); }} appearance={customAppearance} presentationStyle={'popover'} defaultValues={{ address: { line1: '', postalCode: '', country: '', city: '', }, }} onError={errorSubmit => { if (errorSubmit.code === AddressSheetError.Failed) { Alert.alert('There was an error.'); } setAddressSheetVisible(false); }} primaryButtonTitle={'Confirm'} sheetTitle={'Billing Address'} />
Expected Behavior The AddressSheet should open and return the entered address through the onSubmit callback.
onSubmit
Actual Behavior
java.lang.NoSuchMethodError: No static method uicore/StripeShapes
Issue When using the AddressSheet component on iOS, the app throws the following error: Issue #1732 on GitHub.
Code Snippet Here’s the full code for the AddressSheet component:
<AddressSheet visible={addressSheetVisible} onSubmit={addressDetails => { setAddress(addressDetails?.address); setAddressSheetVisible(false); }} appearance={customAppearance} presentationStyle={'popover'} defaultValues={{ address: { line1: '', postalCode: '', country: '', city: '', }, }} onError={errorSubmit => { if (errorSubmit.code === AddressSheetError.Failed) { Alert.alert('There was an error.'); } setAddressSheetVisible(false); }} primaryButtonTitle={'Confirm'} sheetTitle={'Billing Address'} />
Package.json
{ "name": "app-name", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "lint": "eslint .", "start": "react-native start", "test": "jest", "postinstall": "patch-package" }, "dependencies": { "@stripe/stripe-identity-react-native": "^0.2.13", "@stripe/stripe-react-native": "^0.38.0", "@stripe/stripe-terminal-react-native": "^0.0.1-beta.21", "react": "18.3.1", "react-native": "0.76.1" }, "engines": { "node": ">=18" } }
0.76.1
The text was updated successfully, but these errors were encountered:
Facing the same issue on android with PaymentSheet
const { initPaymentSheet, presentPaymentSheet, confirmPaymentSheetPayment, retrieveSetupIntent } = useStripe(); const showPaymentSheet = async () => { // Get data from APIs const response = await setupPaymentSheet() const { error } = await initPaymentSheet({ merchantDisplayName: "Organisation Name", customerId: response?.customerId, customerEphemeralKeySecret: response?.ephemeralKey, setupIntentClientSecret: response?.clientSecret, defaultBillingDetails: { name: user?.firstName + ' ' + user?.lastName, }, style: 'alwaysLight', billingDetailsCollectionConfiguration: { name: CollectionMode.ALWAYS, email: CollectionMode.NEVER, address: AddressCollectionMode.FULL, }, primaryButtonLabel: "Save Card", customFlow: true, appearance: customAppearance, }); if (error) { Alert.alert(`Error: ${error.message}`); } else { openPaymentSheet(response?.clientSecret || '') } } const openPaymentSheet = async (clientSecret: string) => { const { error } = await presentPaymentSheet(); // <===== App crash on this console.log('presentPaymentSheet-error', error) const { error: confirmError } = await confirmPaymentSheetPayment(); // Other code to call APIs };
Sorry, something went wrong.
No branches or pull requests
Summary
I am experiencing the following issues with the
AddressSheet
component from thestripe-react-native
library in both Android and iOS:gradle.properties
causes the app to crash when opening theAddressSheet
.Environment
Issue Details
1. Android
Steps to Reproduce
gradle.properties
.AddressSheet
component with the following code:Expected Behavior
The
AddressSheet
should open and return the entered address through theonSubmit
callback.Actual Behavior
AddressSheet
when New Architecture is disabled.java.lang.NoSuchMethodError: No static method uicore/StripeShapes
AddressSheet
didn't return the address data with New Architecture enabled. i.eonSubmit
is not getting triggered2. iOS
Issue
When using the AddressSheet component on iOS, the app throws the following error:
Issue #1732 on GitHub.
Code Snippet
Here’s the full code for the
AddressSheet
component:Package.json
Questions/Requests
AddressSheet
when using the New Architecture?0.76.1
?The text was updated successfully, but these errors were encountered: