-
Notifications
You must be signed in to change notification settings - Fork 263
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
addressPostalCode from Billing Address is not saved on Stripe #613
Comments
I solve this issue with patch-package. In android/src/main/java/com/reactnativestripesdk/Mappers.kt at line 433. The problem was that the postalcode from cardAddres isn't null, is an empty string and that overwrite the postalCode from the billing address. cardAddress?.let { ca -> |
I'm having the same issue. This seems to be a bug. |
@acomley-stripe It looks like the PR that was merged only fixes this for Android? |
Correct. If this is also an issue on iOS I will re-open and prioritize. |
@acomley-stripe I'm not sure if it's the same issue, but on iOS if I disable postal code on the CardField, the postal code in billingDetails will be overwritten. |
I'm trying to send the postalCode in billingAddress along with country, the country is saved in Stripe, but the postal code isn't.
The weird thing is that this works on ios, but not on android.
Steps to reproduce the behavior:
On the CardField I used
postalCodeEnabled={false}
and the postal code is on a separate textinput and i send it like that:const billingDetails: PaymentMethodCreateParams.BillingDetails = { addressCountry: values.countryCode || CountryCode.US, addressPostalCode: values.addressZipCode, };
On IOS works, the postal code is saved in Stripe on that billing address field, but on Android isn't.
i'm using "@stripe/stripe-react-native": "0.2.0"
The text was updated successfully, but these errors were encountered: