#calum_code

1 messages ¡ Page 1 of 1 (latest)

glad zenithBOT
#

👋 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.

winged orchid
#

hi

misty dawn
#

Hello!

winged orchid
#

is that a stripe support ? can you help?

misty dawn
#

No I am waiting for help

glad zenithBOT
#

@winged orchid looks like you're in the wrong place, this thread is for someone else's question.

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.

unkempt pendant
#

Do you happen to have a request ID for the error you shared? The ID should begin with req_

misty dawn
#

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

unkempt pendant
#

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

misty dawn
#

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

#

?

unkempt pendant
#

What you'll need to do is update your PI confirmation code so it also passes a return_url value on confirmation

misty dawn
#

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?

unkempt pendant
#

What are transporters in this context?

misty dawn
#

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

unkempt pendant
#

So it's not code you own/maintain that triggers API requests to Stripe?

misty dawn
#

No, the only code I own is the website itself. Transporters is an externl service that connects to the website and then to stripe