-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CardPaymentActivity amount should be a double #22
Comments
Hey @hclemson ! All monetary amounts that we handle are always specified as an integer ( I hope that clarifies. |
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? |
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. |
Fixed mistake in the SEK case explanation. |
Expected Behavior
To be able to take payments in pounds and pence, dollar and cents, e.g. 1.99, the
amount
value inCardPaymentActivity
should be a double.Current Behavior
The
amount
value is currently a LongSteps to Reproduce
See example Step 5
The text was updated successfully, but these errors were encountered: