square / web-sdk Goto Github PK
View Code? Open in Web Editor NEWSquare Web SDK
Home Page: https://www.npmjs.com/package/@square/web-sdk
License: Apache License 2.0
Square Web SDK
Home Page: https://www.npmjs.com/package/@square/web-sdk
License: Apache License 2.0
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.
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 π¦π
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?
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:
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):
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.
Desktop (please complete the following information):
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.
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:
Card
)Expected behavior
Can import types without having trouble
It would be awesome to have defined types for the Afterpay/Clearpay payment method. π
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
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:
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.
No dist folder in @square/web-payments-sdk-types when installing through NPM. When using yarn there is no problem.
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 ?
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:
{ payments }
Expected behavior
I would like to be able to use this package to build the Payment Forms and Buttons
Desktop (please complete the following information):
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.