#calum_code
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/1318333918499307562
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi
Hello!
is that a stripe support ? can you help?
No I am waiting for help
@winged orchid looks like you're in the wrong place, this thread is for someone else's question.
- If you have your own thread please chat there.
- If you have a question or a followup to a closed thread use one of the buttons in https://discord.com/channels/841573134531821608/842637025524842496 to get help (we don't reopen closed threads).
Note that posting inappropriate messages in other people's threads is against the rules. No worries if this was just an honest mistake, but anyone who violates the rules multiple times will be removed from this server.
@misty dawn You can add a return_url when creating the PaymentIntent: https://docs.stripe.com/api/payment_intents/create#create_payment_intent-return_url
Do you happen to have a request ID for the error you shared? The ID should begin with req_
No I just have this
{
"error": {
"message": "This PaymentIntent is configured to accept payment methods enabled in your Dashboard. Because some of these payment methods might redirect your customer off of your page, you must provide a return_url. If you don't want to accept redirect-based payment methods, set automatic_payment_methods[enabled] to true and automatic_payment_methods[allow_redirects] to never when creating Setup Intents and Payment Intents.",
"payment_intent": {
"id": "pi_3QOkp9FVZUmX4YSG2DDNLqvq",
"object": "payment_intent",
"amount": 3000,
"amount_capturable": 0,
"amount_details": {
"tip": {
}
how do I actually edit the code though?
(Elite Removal) $ stripe payment_intents create --amount="2000" --currency="usd" --return-url="true" -d "automatic_payment_methods[enabled]=true"
Copy
{
"error": {
"code"
:
"url_invalid"
,
"doc_url"
:
"https://stripe.com/docs/error-codes/url-invalid"
,
"message"
:
"Invalid URL: An explicit scheme (such as https) must be provided."
,
"param"
:
"return_url"
,
"request_log_url"
:
"https://dashboard.stripe.com/test/logs/req_o0h7YkMqNcVuCF?t=1734386176"
,
"type"
:
"invalid_request_error"
,
},
}
(Elite Removal) $
I am still in test mode, I dont know how to get out of it and how do I enter the return URL
Hold on a second.
The PaymentIntent you're trying to confirm (pi_3QOkp9FVZUmX4YSG2DDNLqvq) is a live mode PI. It cannot be confirmed using the Stripe CLI since the Stripe CLI is for test mode requests only
Here's the request log for your attempt to confirm pi_3QOkp9FVZUmX4YSG2DDNLqvq: https://dashboard.stripe.com/logs/req_MhfXU3muusiIKx
I see the request was made using some PHP code. Do you maintain this PHP code?
I believe so but it was a long time ago that I set all of this up.
My website is eliteremoval.co.uk and I use transporters.io for my instant quote software that is connected to stripe
?
You'll need access to your codebase to resolve this error. Taking a step back, if you need an example, your PI creation code passes a value for return_url, which is why the PI creation itself isn't failing: https://dashboard.stripe.com/logs/req_XejNC71KA3kRVG
What you'll need to do is update your PI confirmation code so it also passes a return_url value on confirmation
So its not to do with stripe, theres is something in the code base for my website that needs to be changed. Would it not be something to do with transporters?
What are transporters in this context?
This is the software to book ym service, the customer then uses stripe to checkout, I had to add the stripe API keys to transporters
So it's not code you own/maintain that triggers API requests to Stripe?
No, the only code I own is the website itself. Transporters is an externl service that connects to the website and then to stripe