Code Monkey home page Code Monkey logo

Comments (4)

adamvoncorswant avatar adamvoncorswant commented on July 24, 2024

Hey @hclemson ! All monetary amounts that we handle are always specified as an integer (long) in the minimal denominator of the currency. So, for GBP1.99 you should use the value of 199.

I hope that clarifies.

from sdk-android.

hclemson avatar hclemson commented on July 24, 2024

Hi @adamvoncorswant That's perfect, that you for clarifying. Do you have any docs that detail this and the other values, as I wasn't able to locate any?

from sdk-android.

fabriciovergara avatar fabriciovergara commented on July 24, 2024

Hi @hclemson, all the documentation that we have in the README in this repository. Ass @adamvoncorswant said, we use a long for all currency values. For example, EUR has cents, then €1.99 is 199 - but SEK doesn't have cents, then 199kr is 19900

Regarding other values, do you mean when creating the intent?

.reference(reference) -> You create by providing a unique id created and store by you and with that you can use to locate a transaction.

.enableLogin(boolean) -> If user is not signed in our sdk, it will prompt before continuing a payment

.enableTipping(boolean) -> will enable tipping for a transaction, but only if the country that transaction is happening has support for tipping/gratuity.

.enableInstalments(boolean) -> will enable installments for a tranaction, but only if the country that transaction is happening has support for installments. I can say that by now only Brazil and Mexico has such support.

Please, let me know if is something else specifically.

from sdk-android.

fabriciovergara avatar fabriciovergara commented on July 24, 2024

Fixed mistake in the SEK case explanation.

from sdk-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.