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
33 stars 35 forks source link

Fix/duplicated input card #60

Closed gabrielelpidio closed 2 years ago

gabrielelpidio commented 2 years ago

Your checklist for this pull request

๐ŸšจPlease review the guidelines for contributing to this repository.

Description

Attempts to fix a problem that duplicates the input of cards when changing between locations

๐Ÿงก Thank you!

github-actions[bot] commented 2 years ago

size-limit report ๐Ÿ“ฆ

Path Size Loading time (3g) Running time (snapdragon) Total time
{ Ach, PaymentForm } 8.59 KB (0%) 172 ms (0%) 208 ms (+139.35% ๐Ÿ”บ) 380 ms
{ Afterpay, AfterpayProvider, PaymentForm } 8.23 KB (0%) 165 ms (0%) 155 ms (-12.57% ๐Ÿ”ฝ) 319 ms
{ Afterpay, AfterpayMessage, AfterpayProvider, PaymentForm } 8.42 KB (0%) 169 ms (0%) 130 ms (-13.82% ๐Ÿ”ฝ) 298 ms
{ Afterpay, AfterpayWidget, AfterpayProvider, PaymentForm } 8.32 KB (0%) 167 ms (0%) 179 ms (-15.22% ๐Ÿ”ฝ) 346 ms
{ ApplePay, PaymentForm } 8.01 KB (0%) 161 ms (0%) 135 ms (-27.73% ๐Ÿ”ฝ) 296 ms
{ CashAppPay, PaymentForm } 1.8 KB (0%) 36 ms (0%) 130 ms (-21.08% ๐Ÿ”ฝ) 166 ms
{ CreditCard, PaymentForm } 8.44 KB (+0.66% ๐Ÿ”บ) 169 ms (+0.66% ๐Ÿ”บ) 155 ms (-6.85% ๐Ÿ”ฝ) 324 ms
{ GiftCard, PaymentForm } 8.34 KB (0%) 167 ms (0%) 124 ms (-11% ๐Ÿ”ฝ) 291 ms
{ GooglePay, PaymentForm } 8.08 KB (0%) 162 ms (0%) 124 ms (-3.72% ๐Ÿ”ฝ) 286 ms
{ Ach, Afterpay, AfterpayMessage, AfterpayWidget, ApplePay, CashAppPay, GiftCard, GooglePay, PaymentForm } 10.43 KB (0%) 209 ms (0%) 175 ms (+58.27% ๐Ÿ”บ) 383 ms
Format: cjs, { Ach, Afterpay, AfterpayMessage, AfterpayWidget, ApplePay, CashAppPay, GiftCard, GooglePay, PaymentForm } 12.78 KB (+0.96% ๐Ÿ”บ) 256 ms (+0.96% ๐Ÿ”บ) 160 ms (+30.77% ๐Ÿ”บ) 415 ms