Git Product home page Git Product logo

web-sdk's People

Contributors

abhipillai avatar alexandersmanning avatar dependabot[bot] avatar maxbeatty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

web-sdk's Issues

The automated release is failing 🚨

🚨 The automated release from the beta branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can resolve this πŸ’ͺ.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the beta branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here is some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


No npm token specified.

An npm token must be created and set in the NPM_TOKEN environment variable on your CI environment.

Please make sure to create an npm token and to set it in the NPM_TOKEN environment variable on your CI environment. The token must allow to publish to the registry https://registry.npmjs.com/.


Good luck with your project ✨

Your semantic-release bot πŸ“¦πŸš€

Cash App Pay Button

I am getting issue while I am re-generating Cash App button and destroy not working as expected
image

How to disable postalcode?

How do I disable the ZIP code for credit card payments in Japanese applications?

For example, in-app payments for Android and iOS have documentation like this, but I could not find any description of Web SDK.
ref: https://developer.squareup.com/docs/in-app-payments-sdk/cookbook/disable-postal-code

If it cannot be disabled, the Japanese ZIP code is created from 7 digits. However, only 5 characters can be entered in the payment input field. Therefore, Japanese applications cannot be used to make payments with Square. How can I solve this problem?

γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 2022-04-19 19 18 35

Install Husky with npm install - UNABLE_TO_GET_ISSUER_CERT_LOCALLY

Describe the bug
When running npm install to install Husky, I got

npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
npm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY
npm ERR! request to https://registry.npmjs.com/npm/-/npm-6.14.11.tgz failed, reason: unable to get local issuer certificate

after I ran npm config set strict-ssl false, the previous npm install command worked.

To Reproduce
Steps to reproduce the behavior:

  1. run nvm install $(cat .nvmrc)
  2. run npm install
  3. See error

Expected behavior
The output from npm install

@square/[email protected] postinstall
husky install

husky - not a Git repository, skipping hooks installation

added 1359 packages, and audited 1794 packages in 13s

29 packages are looking for funding
run npm fund for details

7 vulnerabilities (4 moderate, 3 high)

To address all issues, run:
npm audit fix

Run npm audit for details.
npm notice
npm notice New minor version of npm available! 7.19.1 -> 7.20.3
npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.20.3
npm notice Run npm install -g [email protected] to update!
npm notice

Desktop (please complete the following information):

  • OS: [OS X]

Fail to import files when running SSR (nuxt) application

Describe the bug
A clear and concise description of what the bug is.
Seems that in client side, it imports the files just fine, but on server rendering it fails to import
To Reproduce
Steps to reproduce the behavior:
Build nuxt app,
import any from web-sdk
refresh ON PAGE
(Do not client side route to page. Client side routing imports fine!)

Expected behavior
A clear and concise description of what you expected to happen.
Not to error out
Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: [windows 11]
  • Browser [Brave]
  • Version [e.g. 22]

Additional context
Should add notes about the npm package on dev square website. I didn't know it existed before I randomly stumbled on it. Was basically forced to use the CDN as there was no mention of this package on the site.

Type expected error when using inside React.js application

Describe the bug

TypeScript error in /Users/${user}/${project}/node_modules/@square/web-payments-sdk-types/dist/types/money.d.ts(13,34):
Type expected.  TS1110

    11 |  * Union of [CurrencyCode](https://developer.squareup.com/reference/sdks/web/payments/enums/CurrencyCode) values.
    12 |  */
  > 13 | declare type CurrencyCodeValue = `${CurrencyCode.GBP}` | string;
       |                                  ^
    14 | /**
    15 |  * Interface for handling any currency
    16 |  * @example

To Reproduce
Steps to reproduce the behavior:

  1. Go to React application
  2. Install '@square/web-payments-sdk-types'
  3. Import any type from package (I am trying to use Card)
  4. Typing error occurs

Expected behavior
Can import types without having trouble

Failed to compile. Module not found

I am getting this error while adding the package in my react project ./node_modules/react-square-web-payments-sdk/dist/rswps.esm.js
Module not found: Can't resolve 'react/jsx-runtime' in 'C:\project\ae-front-end\node_modules\react-square-web-payments-sdk\dist'

Note: I am using React 16.12.0

Screenshots
https://prnt.sc/RQATDqRk20zH

Mention browsers supported or add optional chaining support for old browsers

Is your feature request related to a problem? Please describe.

Hello Square Team, recently a customer raised an issue with us saying that Square payments is breaking on his mobile device that runs Safari 12.1.2.

I was able to reproduce the issue via Browserstack

From what I can see, it looks like Safari 12.1.2 does not support optional chaining in JS. See the image below:

Screenshot 2023-05-22 at 7 17 13 PM

Describe the solution you'd like

Add support for optional chaining or specify minimum browser versions supported. This will help us to inform customers to update their systems.

Cash Pay Button In Angular

Describe the bug
Once Cash App pay button payment done and try to regenerate button again for another payment that gave previous success button details
that happen in Angular 10.0.7

To Reproduce
Steps to reproduce the behavior:

  1. Open Cash App QR
  2. Payment done
  3. Try New Payment
  4. See error

Screenshots
image

No dist folder in @square/web-payments-sdk-types when installing through NPM

Descrtiption

No dist folder in @square/web-payments-sdk-types when installing through NPM. When using yarn there is no problem.

Reproducing

  • Using npm(v6), install main square-web-sdk package into project.
  • look at node modules:
    image
    Of course it is failing build as builder cannot resolve import from main square package

Desktop

  • OS: Linux Mint 19 / MacOS

Possible solution

Seems like NPM uses latest version (1.8.2) of types lib that is broken

image

Yarn somehow installs 1.1.2 even though you have newer versions

image

Browser support

Hello, I could not find in the Square documentation what is the support for older IE browsers. Does your SDK still support Internet Explorer 11 at least ?

Cannot Find Module

Describe the bug
Installed the latest version ^2.0.0 installed via Node 16.7.0 in a NextJS project and get this error when importing:

Import statement:
import { payments } from "@square/web-sdk";

Error:

Error: Cannot find module '/Volumes/Neue/Developer/Sites/thecuriousfoxco-v2/node_modules/@square/web-sdk/dist/payments' imported from /Volumes/Neue/Developer/Sites/thecuriousfoxco-v2/node_modules/@square/web-sdk/dist/index.js

To Reproduce
Steps to reproduce the behavior:

  1. Install NextJS 12 Project
  2. Install @square/web-sdk
  3. Try to import { payments }
  4. See error

Expected behavior
I would like to be able to use this package to build the Payment Forms and Buttons

Screenshots
CleanShot 2021-11-30 at 15 36 47@2x
CleanShot 2021-11-30 at 15 36 58@2x
CleanShot 2021-11-30 at 15 37 06@2x

Desktop (please complete the following information):

  • OS: MacOS
  • Browser Safari
  • Version 15.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.