Giter Club home page Giter Club logo

Comments (18)

Andrewangeta avatar Andrewangeta commented on May 21, 2024 1

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.

damirstuhec avatar damirstuhec commented on May 21, 2024 1

Anyone on this already or should I take a stab at it?

from stripe.

Andrewangeta avatar Andrewangeta commented on May 21, 2024 1

Yea I’ll be home in a couple hours and I’ll get started

from stripe.

Andrewangeta avatar Andrewangeta commented on May 21, 2024

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.

anthonycastelli avatar anthonycastelli commented on May 21, 2024

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.

geeksweep avatar geeksweep commented on May 21, 2024

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.

damirstuhec avatar damirstuhec commented on May 21, 2024

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.

anthonycastelli avatar anthonycastelli commented on May 21, 2024

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.

damirstuhec avatar damirstuhec commented on May 21, 2024

@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.

damirstuhec avatar damirstuhec commented on May 21, 2024

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.

Andrewangeta avatar Andrewangeta commented on May 21, 2024

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.

damirstuhec avatar damirstuhec commented on May 21, 2024

@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.

vzsg avatar vzsg commented on May 21, 2024

Isn't it just a simple HTTP POST request? The Ruby version seems very simple.

from stripe.

damirstuhec avatar damirstuhec commented on May 21, 2024

@vzsg Seems like it, yes.

from stripe.

anthonycastelli avatar anthonycastelli commented on May 21, 2024

@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.

Andrewangeta avatar Andrewangeta commented on May 21, 2024

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.

damirstuhec avatar damirstuhec commented on May 21, 2024

@Andrewangeta That would be awesome.

from stripe.

anthonycastelli avatar anthonycastelli commented on May 21, 2024

@Andrewangeta took care of this issue with PR #19

from stripe.

Related Issues (20)

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.