#ray_docs

1 messages ¡ Page 1 of 1 (latest)

opaque wingBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1389852009527640095

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

foggy rain
#

Hello sam

harsh river
#

Hi! Looking into your query!

#

Can I check where did you see this: The document says that we are required to hide the payment method when the amount is not within the minimum and maximum range

harsh river
#

Yeap so you can set rules for payments methods to only show when they are within a specific amount. However, I am a little confused about the question you have. Do you only want to show Affirm when it is more than USD 50?

foggy rain
#

Yes, we found that this is customizable in the Stripe backend. It is a range value. I hope to obtain this range through the API.

harsh river
foggy rain
#

This interval value

harsh river
#

Ah so you wish to retrieve the amounts you set in the dashboard? That is not retrievable via API unfortunately.

foggy rain
#

Can't this be modified dynamically by humans? Without an API to obtain this data, how can we ensure real-time data updates?

harsh river
#

This is a rule you are setting on your dashboard. So it can be modified by humans. You should be aware what you have set for the payment method rules.

foggy rain
#

Got it, but if I change this every time, do I need to release a version of my system?

harsh river
#

If you're using automatic payment methods, it will know to follow the rules you set.

foggy rain
#

okay

#

There is another question. We now have two countries that need to use Stripe, so there will be two different accounts, that is, two different APPIDs. When we initialize StripeSDK in our Android project, it is done in the Application. We hope that when we switch countries in the APP, we will also switch the APPID and re-initialize StripeSDK. Can we not write it in the Application, but dynamically initialize StripeSDK?

harsh river
#

Sorry what do you mean by write it in the Application, but dynamically initialize StripeSDK? If you are talking about setting the rules, that has to be done in the Dashboard.

foggy rain
#

Sorry, maybe I didn't describe it clearly. Now this is a new question about code programming. I hope that when the Android side is connected to StripeSDK, init will be called when I need to use payment, instead of calling it in the Application. Can it be done?

harsh river