#desiree-zottl_code
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/1420730481531555981
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐
Firstly are you using the latest version of Stripe ios SDK ?
And are you following this guide:
https://docs.stripe.com/elements/customer-sheet?platform=ios
If not which one are you following ?
Yes I'm using iOS version 24.24.0 which is the latest one.
Yes I followed this guide and use the PaymentSheet.FlowController which I create with PaymentSheet.Configurations.
In this PaymentSheet.Configuration I set the customer (CustomerConfiguration), so the payment sheet also shows the saved payment methods of this customer.
I know that usually this CustomerConfiguration is initialized with a ephemeralKeySecret like that: .init(id: customerId, ephemeralKeySecret: ephemeralKeySecret) but I'm using the beta functionality of .init(id: customerId, customerSessionClientSecret: customerSessionClientSecret)
Yeah I see now better thanks, checking...
What error are you getting do you have the fullstack trace ?
The error is: Integration Error: Attempting to use a customerSession with MobilePaymentElement that does not have mobile_payment_element component enabled.
It comes from the STPAPIClient and the verifyCustomerSessionForPaymentSheet method.
I see this has a check, if the mobilePaymentElementComponent is enabled on the customerSession
When you create the CustomerSession, you need to enable the mobilePaymentElement:
https://docs.stripe.com/api/customer_sessions/object?api-version=2025-08-27.preview&rds=1#customer_session_object-components-mobile_payment_element-enabled
That sounds about right.
But I cannot open this link to the documentation you send me, I only get this documentation for the customer session:
https://docs.stripe.com/api/customer_sessions/create?api-version=2025-08-27.preview&rds=1#create_customer_session-components-payment_element
And here it's only possible to send "payment_element" in the components. Not "mobile_payment_element".
You need to use the preview version
if you don't have access
you need to reach out to Stripe Support in order to have access to the preview version
Ah I see, can you let me know which preview version I need? So I can tell the Stripe Support concretely. The version number?
There is only one pending preview version
The current one is 2025-08-27.preview
When reaching to Stripe Support ask to have access to the preview API and share the link I shared with you
Alright ๐ Will do so, thanks a lot for your help