GithubHelp home page GithubHelp logo

Comments (5)

NicholasBertazzonAga avatar NicholasBertazzonAga commented on June 16, 2024

Hey @preflower , isn't the parameter savePaymentMethod of the method confirmPaymentWithCard exactly what you want?

from react-native-stripe.

NicholasBertazzonAga avatar NicholasBertazzonAga commented on June 16, 2024

Digged into the Stripe SDK and yes, it is what you want, if you set savePaymentMethod to true, it will automatically use OffSession by default

from react-native-stripe.

preflower avatar preflower commented on June 16, 2024

Digged into the Stripe SDK and yes, it is what you want, if you set savePaymentMethod to true, it will automatically use OffSession by default

thx for u response;
ok, i will use savePaymentMethod params to save a card during payment, but i'm confused that stripe docs not use savePaymentMethod params to save a card

from react-native-stripe.

NicholasBertazzonAga avatar NicholasBertazzonAga commented on June 16, 2024

@preflower I actually found it on the stripe SDK docs, not those you can find on the website.
From what I understood, it does this
https://github.com/stripe/stripe-android/blob/4e9a222fa027910a914ae9d60a58de6cbe227a95/stripe/src/main/java/com/stripe/android/paymentsheet/model/ConfirmParamsFactory.kt (line 25)

So it should work good, and it's working for me. Maybe in the next update I'll change it to a more recognized OffSession like in the website docs.

from react-native-stripe.

NicholasBertazzonAga avatar NicholasBertazzonAga commented on June 16, 2024

@preflower if you find it to be wrong, feel free to open an issue and I'll look into it asap since this is a pretty important aspect, thanks

from react-native-stripe.

Related Issues (7)

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.