smile-io / ember-cli-stripe Goto Github PK
View Code? Open in Web Editor NEWStripe checkout for Ember
License: MIT License
Stripe checkout for Ember
License: MIT License
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' https://www.google.com https://www.gstatic.com". Either the 'unsafe-inline' keyword, a hash ('sha256-WPDE+1MiWmsNkTH4BfC7wD6r4hsGp9Z3/kzqf2xFITc='), or a nonce ('nonce-...') is required to enable inline execution.
This issue provides visibility into Renovate updates and their statuses. Learn more
These updates are awaiting their schedule. Click on a checkbox to get an update now.
ember-auto-import
, ember-cli
, ember-cli-htmlbars
, ember-maybe-import-regenerator
, ember-qunit
, ember-source
, ember-try
, qunit-dom
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@glimmer/component
, @glimmer/tracking
, ember-auto-import
, ember-cli
, ember-cli-inject-live-reload
, ember-resolver
, ember-source
)ember-template-lint
, eslint
)These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
It just simply failed to get the basic usage.
after installment, i try to set the publickey.
after i put
{{stripe-checkout
image="/square-image.png"
name="Demo Site"
description="2 widgets ($20.00)"
amount=2000
onToken=(action "processStripeToken")
}} into a template.
it should get the result right?
i got an error massage Cannot read property 'getAttribute' of undefined.
what went wrong?
Support for customer refunds would be nice to have. It would help with an admin integration.
Hi there. I installed this addon yesterday and it didn't work for me. It was looking for the stripe js which was not installed. Later when I had given up and started rolling my own and had added the bower dependency for the stripe js file the addon started working.
Is this expected? If so you should add that step to the readme.
I've done a npm rm --save-dev ember-cli-stripe
and the iframe (pointing to js.stripe.com/v2/channel.html etc etc) is still on my body tag when I inspect in dev tools. Was this an error in my npm rm or do I have to do something else to get rid of the iframe
As it is now, I don't think anyone can technically do anything with your code.
Currently you need to style your own button (or add btn classes from bootstrap, etc)
GREAT LIBRARY. Thank you.
Am I able to provide the PK Key programatically. My use case does not enable it to be store in the environment.js FILE.
Please update babel dependency as using [email protected] installs [email protected] which causes deprecation warning as per:
Or what's the best practice for injecting dom into the component (i need more than just a label)
I'm using 0.4.0.
Hi! I am currently working on a store-builder, so each store will has their own Stripe account (+ Stripe publishable_key)
It looks that the checkout doesn't render if there isn't anything in the environment.js
.
Is there a recommended way to dynamically load the key? I noticed you can just put a random string in the environment.js`
ENV.stripe = {
key: "xxx"
};
And then pass the key directly into the component. Is there a nicer way?
The {{content-for body}}
hook in index.html was added in ember-cli v0.1.2 so if you're on an older version then stripe's script tag needs to be added manually as reported in #5
We may be able to get away with loading this in an initializer to increase compatibility with older ember-cli versions.
This happens when trying to create the handler in _stripeHandler
within the Stripe service. It doesn't happen if a stripe-checkout
component had already been instantiated.
For consistency with other modals in my app I'd want to use showCheckout=true
. Obviously the workaround is to not use this feature until this is fixed.
Depreciation appears when using ember-cli-stripe with Ember 1.13.
{{# if hasBlock }}
This is the error I see in the chrome console:
loader.js:232 Uncaught Error: Could not find module ember-invoke-action imported from ember-cli-stripe/services/stripe
at missingModule (loader.js:232)
at findModule (loader.js:243)
at Module.findDeps (loader.js:173)
at findModule (loader.js:247)
at Module.findDeps (loader.js:173)
at findModule (loader.js:247)
at requireModule (loader.js:26)
at resolveInitializer (index.js:29)
at registerInitializers (index.js:42)
at exports.default (index.js:24)
```
The packages in the node_modules/ember-cli-stripe/node_modules directory
babel-core core-js home-or-tmp minimatch
babylon detect-indent json5 path-exists
bluebird ember-cli-babel js-tokens source-map-support
broccoli-babel-transpiler globals lodash user-home
the package.json file says version 1.0.0 (which I believe is current).
there is a _dev_Dependency:
"ember-invoke-action": "1.4.0",
but it is not installed when I do yarn install or npm install.
Hi,
Sometime when checkout.js
is not loaded at time or even when it fail to load due to slow connectivity, StipeCheckout
is not defined on window so setupStripe()
fail which is pretty obvious.
Maybe it would make sense to check if StripeCheckout
exist before trying to do anything ?
I'm getting this warning after ember s
DEPRECATION: Addon files were detected in `/node_modules/ember-cli-stripe/addon`, but no JavaScript preprocessors were found for `ember-cli-stripe`. Please make sure to add a preprocessor (most likely `ember-cli-babel`) to in `dependencies` (NOT `devDependencies`) in `ember-cli-stripe`'s `package.json`.
Due to the naming of the service bundled with this addon, there's a name collision with this addon:
https://github.com/code-corps/ember-stripe-service
It would be nice if we could use both the ember-stripe-service addon and the ember-cli-stripe together.
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.