#Cadu
1 messages ยท Page 1 of 1 (latest)
Here's some print of the code to make it easier
Create Payment Intent
Confirm Payment Intent
Hello ๐
What are you seeing as the response in the create request?
The exception raised when i call the confirmation method and this is the error message:
"The selected installment plan is not supported for this payment method. You can retrieve valid installment plans on the PaymentIntent in payment_method_options[card][installments][plans]."
{
id: "pi_3MhZBnDluC21KXx13Tm0chju",
object: "payment_intent",
amount: 16800,
amount_capturable: 0,
amount_details: {
tip: {
},
},
amount_received: 0,
application: null,
application_fee_amount: null,
automatic_payment_methods: null,
canceled_at: null,
cancellation_reason: null,
capture_method: "manual",
charges: {
object: "list",
data: [
],
has_more: false,
total_count: 0,
url: "/v1/charges?payment_intent=pi_3MhZBnDluC21KXx13Tm0chju",
},
client_secret: "random",
confirmation_method: "automatic",
created: 1677852147,
currency: "brl",
customer: "cus_NSDgmM9h2H87Ue",
description: null,
invoice: null,
last_payment_error: null,
latest_charge: null,
livemode: false,
metadata: {
},
next_action: null,
on_behalf_of: null,
payment_method: null,
payment_method_options: {
card: {
installments: {
available_plans: [
],
enabled: true,
plan: null,
},
mandate_options: null,
network: null,
request_three_d_secure: "automatic",
},
},
payment_method_types: [
"card",
],
processing: null,
receipt_email: "",
review: null,
setup_future_usage: null,
shipping: null,
source: null,
statement_descriptor: null,
statement_descriptor_suffix: null,
status: "requires_payment_method",
transfer_data: null,
transfer_group: null,
}```
i see that, the confirm_method is setted to true
should i pass confirm as false?
If you look at the card.installments in the response
installments: {
available_plans: [
],
enabled: true,
plan: null,
},```
There aren't any available/supported instalment plans for this payment method
so the error is expected
look this documentation that i sent to you
how can i change this?
What test card are you using here?
Not, this is a test mode payment correct?
You need to use one of these cards listed on the doc
4242 won't have any instalments plans
oh my god
you should use the other one instead
i cant believe it
i'll try to use another one
thank you
could u send me this link, please?
Thank you @desert fulcrum! We were going like crazy trying to understand what was wrong ๐
NP! ๐ happy to help
Also for future reference, this flow seems to be a private feature. We don't discuss betas/private features on discord. Please feel free to talk to our support team next time so that they can raise the questions to the right team