#zyondev_paymentsheet-setupintent
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/1245487762061135915
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Do you have a Request ID for the failed request?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_XWFBeKYQrs53nW
in Test Mode
To clear my task is to
- Save the payment method so users can use for future use
- Process the card for the current transaction
Do you need to explicitly set payment_method_type on the Setup Intent? If so, why?
I would just remove that from your creation request then so that Setup/Payment Intents can default to automatic payment methods
from Stripe Elements on a vue/html site, how do get the card data/payment method data to pass and save as the users payment methods in the future?
This goes into detail about how to do that with Node and React, but you would need to modify that to fit Vue specifically: https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=elements
so looks like im getting the error when calling... const { error } = await this.stripe.confirmSetup({ elements: this.elements, clientSecret: this.clientSecret, confirmParams: { return_url: "https://example.com/order/123/complete", }, redirect: "if_required", });
Yeah, did you go back to the Setup Intent creation and remove payment_method_types?
so when calling stripe payment sheet... im calling with this...
const setupIntent = await stripe.setupIntents.create({ customer: customerId, });
thats how im getting the intent
and not passing 'payment_method_type'
Can you share an exact SetupIntent id?
seti_1PLusjHZ6ociB84AaBmMbGwL_secret_QCJVT7KnWO7W9yVXNgHmkTdoFIoBqAk
thanks give me a few minutes
ok
zyondev_paymentsheet-setupintent
Okay so you are using an old API version from 2022 which always defaulted to card in the past. So you need to either
- Use a more recent API version in your server-side code (see https://docs.stripe.com/api/versioning)
- Explicitly pass
automatic_payment_methods: { enabled: true }
i see
let me try with automatic_payment_methods: { enabled: true }
are there alot of other differences in 2024 version?
not a lot no, but one fundamental one that is affecting you: in 2023 we made that automatic_payment_methods logic enabled by default. But if you use an older version you have to be explicit
im using apiVersion: "2020-08-27"
No you're not. Look at your API request: https://dashboard.stripe.com/test/logs/req_6r8xOM3u9YZfOv it's using 2022-11-15 which is the default on your Stripe account right now
you're on an old version of stripe-node too from a few years ago ๐
I mean it depends. If you upgrade without reading any of the migration guides then yes it's likely. If you do take the time to read the migration guides and the changelog on the repo and make the relevant changes it will be fine!