#arjun258387_api

1 messages ¡ Page 1 of 1 (latest)

neon sirenBOT
#

👋 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/1283789766638178415

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

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.

jade sierra
#

Hello

#

You need to debug your return_url

#

Looks like you are probably trying to use a relative path which doesn't work here -- you need to specify the full URL

light shard
#

ok let i check it

#

i update than also it give status 400
Request ID:req_Ow6OVAiFc9YcQU
pls check
i have code like
const {error:paymentError,paymentIntent} = await stripe.confirmPayment({
elements,
clientSecret: data.clientSecret,
confirmParams: {
// Updated return URL with order_id and order_no
return_url: http://localhost:3000/redirect_url?order_id=${orderInsert.order_id},
},
// Uncomment below if you only want redirect for redirect - based payments
redirect: "if_required",
});

jade sierra
#

Yeah so that is a different error

light shard
#

what is error says in given Request ID

#

??

jade sierra
#

Do you have access to your Dashboard?

#

You need to be able to look at these requests yourself and debug

#

I'm here to help you but not to do the work for you

#

If you are confused after you have tried to troubleshoot then please ask specific questions and I'm happy to help

neon sirenBOT
light shard
#

sorry,for any kind of disrespect my intent to completed my integration sucessfully

#

What is meaning of below error and how i can solve it??
Payment details were collected through Stripe Elements using automatic payment methods and cannot be confirmed through the API configured with payment_method_types

unkempt pagoda
#

Error describes problem. You set automatic payment methods client-side, but when you created the payment intent, you passed payment_method_types. The setting client-side has to match what you pass when you create the payment intent

#

You only enable card in payment_method_types

light shard
#

i can not undersatnd can you elobrate it again??

unkempt pagoda
#

Let's take a step back. Do you want to accept only card payments?

#

Or others as well?

light shard
#

others also like apply pay

unkempt pagoda
#

Remove

    0: "card",
  },```
from your payment intent creation request
#

That indicates that you only want to accept card payments

#

If you remove it, it should use automatic payment methods

light shard
#

this code block is not present in frontend side code

unkempt pagoda
#

I'm not talking about the front end

#

Payment Intent creation happens on the backend

light shard
#

ok

#

if currently i have not access of backend and test a my paymentElement card than it is possible without removeing this code block??

unkempt pagoda
#

No

#

The only thing you can do is set payment_method_types to only be card on the front-end. That way it'll match the backend

#

But you'll only be able to accept card payments

light shard
#

ok i do that than what changes i have to make into front end??

#

i mean where i add this payment_method_types ??

light shard
#

by default payment Element set automatic payment methods??

unkempt pagoda
#

yes