#rafael_card-installments
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/1504233188275519519
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello 👋
Can you provide the doc you are following for this integration?
The Payment Intent was created in this request: https://dashboard.stripe.com/acct_1RG87GHkcXCuJM9J/logs/req_PsuT5u6Yapnh2u
But we cannot show the available installment plans until you have saved the Payment Method. Like we call out here, there are only a small set of card brands that support installments. Currently we don't know what brand the card will be
Unfortunately, this doc has no good examples of exactly how to do this
How do i do that? Remeber, i'm from Brazil
You would need to save the Card payment method first and then pass it in the payment_method [parameter](<https://docs.stripe.com/api/payment_intents/create?api-version=2026-04-22.dahlia&rds=1.) when you create the Payment Intent
see how i'm doing:
class CreateStripeIntentView(APIView):
permission_classes = [AllowAny]
def post(self, request):
try:
print("BODY:", request.data)
amount = request.data.get("amount")
if not amount:
return Response(
{"error": "Amount obrigatório"},
status=400
)
amount_decimal = Decimal(str(amount))
print("AMOUNT:", amount_decimal)
intent = stripe.PaymentIntent.create(
amount=int(amount_decimal * 100),
currency="brl",
payment_method_types=["card"],
payment_method_options={
"card": {
"installments": {
"enabled": True
}
}
}
)
print("INTENT:", intent.id, intent)
return Response({
"client_secret": intent.client_secret
})
except Exception as e:
print("ERRO STRIPE:", str(e))
return Response(
{"error": str(e)},
status=500
)
That doesn't help me
I can see what you are providing in the API request https://dashboard.stripe.com/acct_1RG87GHkcXCuJM9J/logs/req_PsuT5u6Yapnh2u
What I am saying is that, in order to get the Payment Intent with any available installment plans, you would need to save the Card first. I recommend using our guide here: https://docs.stripe.com/payments/save-and-reuse
Will that work to currency = brl?
For payment method types card, yes. The currency being BRL would just restrict the different payment method types available. But you are asking about installments that are specific to credit cards so that should not matter here.
Actually I think I may be incorrect here. I'm looking to see if we have something for BRL
You can see the actual installment plans we have support for here: https://docs.stripe.com/payments/installments
Unfortunately, BRL is not supported for any of them