#maxbash_error

1 messages ¡ Page 1 of 1 (latest)

brave stagBOT
#

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

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

hollow roost
#

The code where I try to present:

Services.shared.event.getStripeSetupIntent(completion: { res in
                switch res {
                case .success(let data):
                    DispatchQueue.main.async {
                        let intentConfig = PaymentSheet.IntentConfiguration(
                            mode: .setup(currency: "EUR"), paymentMethodTypes: ["card"]
                        ) { [weak self] _, _, intentCreationCallback in
                            intentCreationCallback(.success(data.clientSecret))
                            rsvpServer(status: .requested)
                        }
                        var configuration = PaymentSheet.Configuration()
                        configuration.apiClient.publishableKey = Config.stripePk
                        if let ephmeralKey = data.ephemeralKey, let customerId = data.customerId {
                            configuration.customer = .init(id: customerId, ephemeralKeySecret: ephmeralKey)
                        }
                        configuration.returnURL = Config.url_scheme + "stripe-redirect" // Use the return url you set up in the previous step
                        let paymentSheet = PaymentSheet(intentConfiguration: intentConfig, configuration: configuration)
                        if let vc = topMostViewController() {
                            paymentSheet.present(from: vc) { result in
                                switch result {
                                case .completed:
                                    return
                                case .failed(let error):
                                    self.rsvpLoading = false
                                case .canceled:
                                    self.rsvpLoading = false
                                }
                            }
                        }
                    }
                case .failure(let error):
                    print(error)
                }
            })
lament shore
#

What is the 'latest' version and what version were you upgrading from?

hollow roost
#

23.27.3 crashed with this error, updated to 23.30.0 and still happens

lament shore
#

OK, but which version of the SDK did your code previously work on?

hollow roost
#

23.27.3 used to work

lament shore
#

Oh, you just said it crashed with the same error? I'm confused

hollow roost
#

Had a user report it crashing and now when I run it locally this is the error I get

#

So not sure where it broke, but this is the current state

#

Tried again, now it crashes here:

#

These are the stripe logs, if they are of any help:

LOG ANALYTICS: mc_complete_init_customer - [(key: "pay_var", value: "paymentsheet"), (key: "ocr_type", value: "none"), (key: "mpe_config", value: ["customer_access_provider": "legacy", "allows_delayed_payment_methods": false, "default_billing_details": false, "style": 0, "apple_pay_config": false, "billing_details_collection_configuration": ["name": "automatic", "email": "automatic", "phone": "automatic", "address": "automatic", "attach_defaults": false], "return_url": true, "save_payment_method_opt_in_behavior": "automatic", "payment_method_layout": "horizontal", "customer": true, "appearance": ["primary_button": false, "corner_radius": false, "font": false, "shadow": false, "border_width": false, "usage": false, "colors": false]]), (key: "is_decoupled", value: false), (key: "apple_pay_enabled", value: 1), (key: "active_link_session", value: false)]
LOG ANALYTICS: mc_load_started - [(key: "pay_var", value: "paymentsheet"), (key: "ocr_type", value: "none"), (key: "mpe_config", value: ["customer_access_provider": "legacy", "allows_delayed_payment_methods": false, "default_billing_details": false, "style": 0, "apple_pay_config": false, "billing_details_collection_configuration": ["name": "automatic", "email": "automatic", "phone": "automatic", "address": "automatic", "attach_defaults": false], "return_url": true, "save_payment_method_opt_in_behavior": "automatic", "payment_method_layout": "horizontal", "customer": true, "appearance": ["shadow": false, "primary_button": false, "font": false, "usage": false, "colors": false, "border_width": false, "corner_radius": false]]), (key: "is_decoupled", value: false), (key: "apple_pay_enabled", value: 1), (key: "active_link_session", value: false)]
fallow dock
#

Is this stripe-ios?

hollow roost
#

Yes

fallow dock
#

What Xcode version you have and what iOS version are you targeting?

hollow roost
#

Xcode 16.0 -> iOS 18.0

fallow dock
#

Looking...

hollow roost
#

Just tested on Xcode 16.0 -> iPhone SE iOS 17.2.1, there it does work without crashing

fallow dock
#

So it seems like it's an iOS 18 problem?

hollow roost
#

Yeah I guess so

fallow dock