#anay-208_api

1 messages ¡ Page 1 of 1 (latest)

shell glacierBOT
#

👋 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.

loud scaffoldBOT
#

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.

smoky meadow
#

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",
    });
balmy python
smoky meadow
#

req_zG9pBw9dnGXkQt

balmy python
smoky meadow
#

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?

balmy python
#

No, that's the amount you charge in the future.

smoky meadow
#

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?

balmy python
#

No, I don't believe variable amounts are allowed in India, but let me confirm...

#

Not sure how it would work with individual Payment Intents though...

#

You can set amount_type to maximum and then provide the maximum amount.

smoky meadow
#

Ohk, thanks!