#arjun258387_api
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/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.
- arjun258387_error, 20 hours ago, 13 messages
- arjun258387_api, 1 day ago, 14 messages
- arjun_intent-integration, 2 days ago, 52 messages
Hello
You need to debug your return_url
You can see you aren't passing a valid URL there if you look at the POST body for that request in your Dashboard: https://dashboard.stripe.com/test/logs/req_WxBqNSalYUyprs
Looks like you are probably trying to use a relative path which doesn't work here -- you need to specify the full URL
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",
});
Yeah so that is a different error
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
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
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
See your payment intent creation request: https://dashboard.stripe.com/test/logs/req_HzVGqHqasBpCw8
You only enable card in payment_method_types
i can not undersatnd can you elobrate it again??
Let's take a step back. Do you want to accept only card payments?
Or others as well?
others also like apply pay
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
this code block is not present in frontend side code
I'm not talking about the front end
Payment Intent creation happens on the backend
ok
if currently i have not access of backend and test a my paymentElement card than it is possible without removeing this code block??
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
ok i do that than what changes i have to make into front end??
i mean where i add this payment_method_types ??
by default payment Element set automatic payment methods??
yes