#bk_paymentmethod-returnurl
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/1243663514506104963
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Here's the specific error message:
A
return_urlmust 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, setautomatic_payment_methods[enabled]totrueandautomatic_payment_methods[allow_redirects]toneverwhen creating Setup Intents and Payment Intents.
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.
Alternatively, you could use this, https://docs.stripe.com/api/payment_method_configurations payment method configurations and disable all redirect payment methods and pass that when you create the PaymentIntent.
Another alternative solution would be to disable these payment methods, https://docs.stripe.com/payments/payment-methods/overview#bank-redirects on your Dashboard Settings under Payment Methods.
bk_paymentmethod-returnurl