#nicholas_php-returnurl

1 messages ¡ Page 1 of 1 (latest)

weak gardenBOT
#

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

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

lucid jackal
#

Yeah the request id you shared is missing a return_url

#

A `return_url` must be specified because this Payment Intent is configured to automatically accept the payment methods enabled in the Dashboard, some of which may require a full page redirect to succeed. If you do not 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.

cerulean flare
#

OK, where can I edit it?

lucid jackal
#

In your code

weak gardenBOT
lucid jackal
#

You need to add a return_url to the request body

tropic plinth
#

@cerulean flare are you the developer writing the code here? Or are you using a third-party plugin or library?

#

nicholas_php-returnurl

cerulean flare
#

Can you tell me the name of the folder where I can find it?

tropic plinth
#

@Nicholas are you the developer writing the code here? Or are you using a third-party plugin or library?

cerulean flare
#

I am not a developer, I am integrating Stripe to Amelia Bookig, a Booking system on Wordpress

tropic plinth
#

Gotcha, then the problem is really with their code and you need to talk to the developer of that system. It's likely an old plugin/system that hasn't been updated in a while and it's not compatible with your Stripe account

cerulean flare
#

maybe, even though they say it's your problem....I don't know what to do anymore

tropic plinth
#

Yeah I'm sure they do, it's a common misunderstanding. Unfortunately this is 100% a bug in their own code. They need to support that required return_url or force an older API version. Tell them to read https://docs.stripe.com/upgrades/manage-payment-methods
This was a year ago already and it seems they never upgraded their integration but also don't force the right API version

cerulean flare
#

okok, the important thing I understand is that if stripe connects to a third party platform and is not manually entered, then the code, in theory, should not be changed?

tropic plinth
#

correct, if they fixed their code or pinned the right API version(s) in their code then their code would work even on a newer account

cerulean flare
#

OK, I'll try to check. For the time being, I thank you.