Comments (18)
If they’re dragging their feet on the docs, I think we can go ahead and implement this feature if the other libraries are straight forward.
from stripe.
Anyone on this already or should I take a stab at it?
from stripe.
Yea I’ll be home in a couple hours and I’ll get started
from stripe.
Maybe we should check other backend SDKs and see if and how they do it. Otherwise we should contact Stripe for some guidance.
from stripe.
I just reached out to them again. They said they were hoping to have the documentation done sometime by the end of the month, if they got it all working. From the sound of it, this is all experimental, but doesn't make sense as to why they would release it.
from stripe.
thanks guys! Yeah if you want to use their built in elements, along with the CustomerContext, you need to generate this key so the context can do all the updating to the customer you have stored in your DB. I talked with @anthonycastelli about this this evening.
from stripe.
Hey guys! I just ran into this as well. As @geeksweep said, generating the ephemeral key is now required. Do we have any updates on this? Is there a way I can help?
from stripe.
Currently the only way around this is to use an older version of the Stripe library for iOS and Android. Currently Stripe doesn't have documentation on this new system so i'm completely in the dark with implementing it. I haven't had much time to sit down and start going through Stripe's other libraries and figure out what they are doing.
from stripe.
@anthonycastelli Yeah, I see. You probably saw this already but seems like their official libraries for other languages like php
already have support for ephemeral key creation: https://github.com/stripe/stripe-php/search?utf8=%E2%9C%93&q=EphemeralKey&type=. Maybe this can help?
from stripe.
Or this from their ruby lib: https://github.com/stripe/example-ios-backend/blob/master/web.rb#L18, https://github.com/stripe/stripe-ruby/blob/234b0809bfd737f7a8ddf215d23e15cab6efc741/lib/stripe/ephemeral_key.rb.
from stripe.
I think it'll be best if we just wait for official docs. We don't wanna implement it and then have to go back and change it.
from stripe.
@Andrewangeta @anthonycastelli I just talked with Stripe engineer on their freenode irc chat, and he said that they do not really intend to add a documentation for Ephemeral Keys, since the implementation is so simple and can be easily replicated based on the existing libraries that are officially supported (the ones I linked above).
So do we still want wait for the docs (which might not happen soon) or should we just go ahead and implement this based on the implementations in other libs?
from stripe.
Isn't it just a simple HTTP POST request? The Ruby version seems very simple.
from stripe.
@vzsg Seems like it, yes.
from stripe.
@damirstuhec I know I am quite busy right now and just haven't had a chance to really work with this library. If you could submit a PR for it, that would be great!
from stripe.
Oh yea i forgot about this. it seems pretty straight forward. I could try to get it done by tonight, some other projects I’m working on are on hold for now so I’d be free.
from stripe.
@Andrewangeta That would be awesome.
from stripe.
@Andrewangeta took care of this issue with PR #19
from stripe.
Related Issues (20)
- Charges list request fails due to trailing / HOT 2
- Unable to prefill customer email when creating a checkout session HOT 11
- Bump to the lastest version of the Stripe-KIT that introduces Stripe Identity fixes HOT 1
- Multiple Stripe Accounts HOT 17
- Better Setup Walkthrough HOT 4
- [ ERROR ] DecodingError.keyNotFound: Value required for key 'sources.data.Index 0.client_secret' HOT 5
- Nullable Source "creation" Date HOT 5
- Documentation HOT 2
- Unable to retrieve list of customers HOT 5
- Add file upload support.
- Typo in Customer.bussinessVATId HOT 1
- URL query injection HOT 1
- Make Models Parameterizable HOT 2
- Concrete Routes Don't Allow Optional Values HOT 9
- Upcoming Invoice has no id HOT 5
- Fix Refunds for connect accounts HOT 3
- [ ERROR ] DecodingError.valueNotFound - Token issue HOT 5
- Conform StripeError to AbortError HOT 1
- Add webhooks support HOT 3
- NIO based Stripe Client HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stripe.