question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove Zip code field on <PaymentCardTextField />

See original GitHub issue

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 guide

The problem

As of later versions of Stripe (I am using version 19.0.1), there is a new Zipcode field in <PaymentCardTextField />. I looked around Stripe documentation on how to get it removed but it seems like I have to dig into the Stripe pods to get this working. Is there a way to get this working with the tipsi-stripe?

I read about it in the Stripe docs.

Environment

  • tipsi-stripe version: 8.0.0-beta.10
  • Last tipsi-stripe version where the issue was not reproduced (if applicable):
  • iOS or Android: 13.4.1
  • OS version: 10.15.4
  • React-Native version: 0.62

Screenshots, GIFs (Must have)

Screen Shot 2020-04-23 at 6 24 04 PM

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:22
  • Comments:9

github_iconTop GitHub Comments

11reactions
nchasecommented, Jun 16, 2020

@axelinternet FYI we patched this in our code. Our patch looked something like this:

--- a/node_modules/tipsi-stripe/ios/TPSStripe/TPSCardField.m
+++ b/node_modules/tipsi-stripe/ios/TPSStripe/TPSCardField.m
@@ -24,6 +24,7 @@ - (instancetype)initWithFrame:(CGRect)frame {
         _isFirstResponder = NO;
         _paymentCardTextField = [[STPPaymentCardTextField alloc] initWithFrame:self.bounds];
         _paymentCardTextField.delegate = self;
+        _paymentCardTextField.postalCodeEntryEnabled = NO;
         [self addSubview:_paymentCardTextField];
         self.backgroundColor = [UIColor clearColor];
     }
4reactions
pynnercommented, Apr 15, 2021

Tossing the keyword Postal Code for all the non-americans out there, took me a hot second to find this thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove Zip code field on <PaymentCardTextField />
... there is a new Zipcode field in . I looked around Stripe documentation on how to get it removed but it seems...
Read more >
Do not collect Zip code with Stripe - Stack Overflow
To remove Zip code collection do this in the javascript snippet like this: var style = {//styling //lots of style stuff }; var...
Read more >
How to remove the zip code field from the checkout page?
You can disable the zip code for a specific country by subscribing to the AddressFormatEvent and removing the %postalCode token from the $ ......
Read more >
Hide Stripe Postcode / Zipcode field and use Ubercart billing ...
Hiding the Stripe Elements zip/postal code field seems like it will ... If I remove the code that adds the event listener, it...
Read more >
Remove Postal Code From Stripe Form - WordPress.org
Thank you for contacting us. On the checkout page, the Stripe form does not render a postal code field because the WooCommerce billing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found