#Cadu

1 messages ยท Page 1 of 1 (latest)

little cairnBOT
undone plaza
#

Here's some print of the code to make it easier

#

Create Payment Intent

#

Confirm Payment Intent

desert fulcrum
#

Hello ๐Ÿ‘‹
What are you seeing as the response in the create request?

undone plaza
#

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?

desert fulcrum
#

If you look at the card.installments in the response

      installments: {
        available_plans: [
        ],
        enabled: true,
        plan: null,
      },```
undone plaza
desert fulcrum
#

There aren't any available/supported instalment plans for this payment method

#

so the error is expected

desert fulcrum
#

What test card are you using here?

undone plaza
#

credit card

#

you mean the id?

desert fulcrum
#

Not, this is a test mode payment correct?

undone plaza
#

yes

#

the card as 42424242424242

desert fulcrum
#

You need to use one of these cards listed on the doc

#

4242 won't have any instalments plans

undone plaza
#

oh my god

desert fulcrum
#

you should use the other one instead

undone plaza
#

i cant believe it

#

i'll try to use another one

#

thank you

#

could u send me this link, please?

desert fulcrum
#

Its on the same link you shared above
Step 6

jolly path
#

Thank you @desert fulcrum! We were going like crazy trying to understand what was wrong ๐Ÿ˜…

desert fulcrum
#

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

https://support.stripe.com/?contact=true