Git Product home page Git Product logo

Comments (9)

mrmcduff-stripe avatar mrmcduff-stripe commented on May 31, 2024 1

The version string you need is "3.5.0", which is stored in com.stripe.android.net.StripeApiHandler.VERSION. I'll make that field public in an update in a few hours.

If you update your version of stripe-android to 2.0.2, you should have access to StripeApiHandler.VERSION

from stripe-android.

esong avatar esong commented on May 31, 2024

Hello @mrmcduff-stripe ,

StripeApiHandler.VERSION was removed in aef3434. Are there any other ways of getting it now? Using com.stripe.android.BuildConfig.VERSION_NAME?

Could you please also update the documentation(https://stripe.com/docs/mobile/android#collecting-payment-information-through-android-pay) with this change?

Thanks,
Ethan

from stripe-android.

mrmcduff-stripe avatar mrmcduff-stripe commented on May 31, 2024

BuildConfig.VERSION_NAME is exactly what that field is looking for -- I removed StripeApiHandler.VERSION so that we didn't have a manual field to (possibly forget to) update with each release, since it was tracking the API bindings. Didn't realize we were still telling people to use it in the documentation.

Thanks for pointing out the missed update in the documentation! Fixing now.

from stripe-android.

mrmcduff-stripe avatar mrmcduff-stripe commented on May 31, 2024

@esong -- the site should be updated in about an hour, depending on how long our deploy server feels like taking. Thanks again for pointing out the error!

from stripe-android.

esong avatar esong commented on May 31, 2024

@markwong-stripe No problem, thank you for the quick update.

from stripe-android.

nailshaykhraziev avatar nailshaykhraziev commented on May 31, 2024

Hello,
When use google pay, I build PaymentMethodTokenizationParameters where add parameters "stripe:version". Early I take them from StripeApiHandler.VERSION. In example(https://stripe.com/docs/mobile/android/google-pay) such value using "2018-11-08". Where I can get the "stripe:version"? How is it formed?
Thanks.

from stripe-android.

florian-do avatar florian-do commented on May 31, 2024

Hello,
When use google pay, I build PaymentMethodTokenizationParameters where add parameters "stripe:version". Early I take them from StripeApiHandler.VERSION. In example(https://stripe.com/docs/mobile/android/google-pay) such value using "2018-11-08". Where I can get the "stripe:version"? How is it formed?
Thanks.

Hello,

You can use

CustomerSession.initCustomerSession(context!!) { apiVersion, keyUpdateListener ->
// apiVersion
}

from stripe-android.

slott avatar slott commented on May 31, 2024

com.stripe.android.BuildConfig.VERSION_NAME has been removed in latest version... What to use now ?
It was there in 16.0.1 but gone in 16.1.1...

Ok - I can find it here as well: Stripe.VERSION_NAME

from stripe-android.

mshafrir-stripe avatar mshafrir-stripe commented on May 31, 2024

@slott out of curiosity, how are you using this value?

from stripe-android.

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.