#anay-208_api
1 messages ¡ Page 1 of 1 (latest)
đ 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/1220049937874817104
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- anay-208_code, 52 minutes ago, 13 messages
I'm creating a intent using this:
const paymentIntent = await stripe.paymentIntents.create({
amount: amount,
currency: 'INR',
customer: customer.id,
// setup_future_usage: 'off_session',
confirm: true,
off_session: true,
payment_method_types: ['card'],
payment_method: "pm_id",
});
Hello! Can you give me the request ID showing the creation attempt? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_zG9pBw9dnGXkQt
This is an India payment, which is subject to special regulations and rules: https://docs.stripe.com/india-recurring-payments
Alright, I got it, Thanks!
Another question, with a param
with payment_method_options[card][mandate_options][amount], should it be same as the initial amount I'm charging to set up the mandate?
No, that's the amount you charge in the future.
However, my amount is variable, and amount type is also maximum.
So do I need to enter the maximum amount I'm gonna charge in future?
No, I don't believe variable amounts are allowed in India, but let me confirm...
Ah, looks like you can do it with Subscriptions: https://docs.stripe.com/india-recurring-payments?integration=subscriptions#subscription-updates
Not sure how it would work with individual Payment Intents though...
You can set amount_type to maximum and then provide the maximum amount.
Ohk, thanks!