#ebellotpu6_code

1 messages Ā· Page 1 of 1 (latest)

ionic heathBOT
spiral fulcrumBOT
#

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.

ionic heathBOT
#

šŸ‘‹ Welcome to your new thread!

ā²ļø We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

ā±ļø We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1257627548540469351

šŸ“ Have more to share? Add details, code, screenshots, videos, etc. below.

barren haven
#

Hi
What is the issue you are facing exactly ?

unborn verge
#

Please, let me 10 min

barren haven
#

Yes sure, take your time!

unborn verge
#

I am looking the error code

barren haven
unborn verge
#

okey

#

A payment method of type card was expected to be present, but this PaymentIntent does not have a payment method and none was provided. Try again providing either the payment_method or payment_method_data parameters.

#

this is the error I am getting when I try to pay again the subscription

barren haven
#

Could you please share the requestId of that APi call ?

unborn verge
#

req_4P1C9pOkK5l14S

barren haven
#

Thanks, checking..

#

You are getting this error, when exactly ?

#

How are you collecting a new payment method from the customer ?

barren haven
spiral fulcrumBOT
unborn verge
#

First I create a subscription, then I decline the 3DS from my client. So the payment fails. Then I retry with another payment method and when I want to notify the client that a 3DS secure is required to complete the payment, I am getting this error

slow wren
#

what does your code look like that does this?

#

and I'm not clear, are you collecting a new card and trying to pay with that? or you want to retry/handle 3DS on the existing card?

unborn verge
slow wren
unborn verge
#

and if it's a new card?

slow wren
unborn verge
#

this.stripe.confirmCardPayment(response.clientSecret).then((result: any) => {

#

this is my client code to confirm

slow wren
#

well that code assumes that there's an Element already present on the page and will collect a new card from the details typed into that Element and charge it.

unborn verge
#

this is what i am getting after this code line:
code: "payment_intent_incompatible_payment_method"
doc_url: "https://stripe.com/docs/error-codes/payment-intent-incompatible-payment-method"
message: "A payment method of type card was expected to be present, but this PaymentIntent does not have a payment method and none was provided. Try again providing either the payment_method or payment_method_data parameters."
payment_intent: {id: 'pi_3PY3JNId0VogbbwX277q3AXd', object: 'payment_intent', amount: 8198, amount_details: {…}, automatic_payment_methods: null, …}
request_log_url: "https://dashboard.stripe.com/test/logs/req_e8jyDElkFIiyIb?t=1719914598"
type: "invalid_request_error"

slow wren
#

hard to say with just a single line of your frontend code really, but that's what it means to me.

unborn verge
#

In this page theres no payment element

slow wren
#

then the error seems expected? you're saying "confirm the PaymentIntent" but not providing an Element or a PaymentMethod ID.

unborn verge
#

but I have been able to confirm subscriptions in the first try. The problem its when I decline the authentication, and retry the payment another time

slow wren
#

can you review the links I shared?

#

it's a bit hard to help you right now as it's not clear what you're asking or what you've tried, I think I've given many possible solutions

unborn verge
#

thats it!