#bk_paymentmethod-returnurl

1 messages ¡ Page 1 of 1 (latest)

mighty skyBOT
#

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

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

opaque knoll
#

Here's the specific error message:

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.

hallow socket
#

Hi, yeah with the PaymentIntent API you can disable re-direct payment methods like it says on the error. '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.'. You're using a newer API version and it automatically uses automatic_payment_method, https://dashboard.stripe.com/test/logs/req_mDT3NnOLXBeSWT. When you create the payment method, you could create it with this, https://docs.stripe.com/api/payment_intents/create#create_payment_intent-payment_method_types where you can specify all non-redirect payment methods.

mighty skyBOT
molten tapir
#

bk_paymentmethod-returnurl