weareseeed / react-square-web-payments-sdk

Easily create PCI-compliant inputs to accept payments online with the Square Payments API. It supports the following payment methods: credit and debit cards, ACH bank transfers, Apple Pay, Google Pay, Gift Cards and Afterpay/Clearpay.
https://react-square-payments.weareseeed.com/
MIT License
38 stars 41 forks source link

AUD currencyCode in createVerificationDetails... only asks for US 5 digit ZIP #68

Open msimonc opened 2 years ago

msimonc commented 2 years ago

Describe the bug

AUD currencyCode in createVerificationDetails obj still asks for US 5 digit ZIP

Your Example Website or App

https://github.com/weareseeed/react-square-web-payments-sdk

Steps to Reproduce the Bug or Issue

createVerificationDetails={() => ({
  /* collected from the buyer */
  currencyCode: 'AUD',
  billingContact: {
      addressLines: ['123 Main Street', 'Apartment 1'],
      familyName: 'Doe',
      givenName: 'John',
      countryCode: 'AU',
      city: 'Sydney',
  },
  // You can avoid amount and currency if the intent is `STORE`
  amount: '1.00',
  // currencyCode: 'GBP',
  intent: 'CHARGE',
  // intent: 'STORE',

})}

Expected behavior

"Enter the ZIP code"

Screenshots or Videos

No response

Platform

Chrome

Additional context

none

spikeganush commented 2 years ago

Same issue here. Try to find out how to disable the postal zip code.

spikeganush commented 2 years ago

The CreditCard component detects the card number, so if you enter one of the test credit cards (411 1111 1111, ...), you can find in the square's doc that they are localized in the USA. The Zip code is not asked if you try with your Australian card.