#tony_code

1 messages · Page 1 of 1 (latest)

warm marshBOT
#

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

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

woven gyro
lusty mango
#

How does the total crash report look like? Any stacktrace?

woven gyro
#

mode StripePaymentSheet.PaymentSheet.InitializationMode paymentIntentClientSecret
paymentIntentClientSecret String "pi_3QulonGyb1ylllv70E8YAIBE_secret_9CEu4NIGSJphVetqw4Tzpab2Z"
configuration StripePaymentSheet.PaymentSheet.Configuration
addCardHeaderText String? nil none
allowsDelayedPaymentMethods Bool false
allowsPaymentMethodsRequiringShippingAddress Bool false
apiClient StripeCore.STPAPIClient 0x0000600002c2c980
applePay StripePaymentSheet.PaymentSheet.ApplePayConfiguration? nil none
primaryButtonLabel String? nil none
styleRawValue Int 0
customer StripePaymentSheet.PaymentSheet.CustomerConfiguration? nil none
merchantDisplayName String "xxxxxxxxxxxxxx Inc"
returnURL String? "https://com.xxxxxx.xxxxxx.payments" some
defaultBillingDetails StripePaymentSheet.PaymentSheet.BillingDetails
savePaymentMethodOptInBehavior StripePaymentSheet.PaymentSheet.SavePaymentMethodOptInBehavior automatic
appearance StripePaymentSheet.PaymentSheet.Appearance
shippingDetails () -> StripePaymentSheet.AddressViewController.AddressDetails? 0x0000000103f22f9c xxxxxxxxxxxxx`closure #1 () -> Swift.Optional<StripePaymentSheet.AddressViewController.AddressDetails> in variable initialization expression of StripePaymentSheet.PaymentSheet.Configuration.shippingDetails : () -> Swift.Optional<StripePaymentSheet.AddressViewController.AddressDetails> at PaymentSheetConfiguration.swift:153
preferredNetworks [StripePayments.STPCardBrand]? nil none
disableWalletPaymentMethodFiltering Bool false
userOverrideCountry String? nil none
billingDetailsCollectionConfiguration StripePaymentSheet.PaymentSheet.BillingDetailsCollectionConfiguration
removeSavedPaymentMethodMessage String? nil none
externalPaymentMethodConfiguration StripePaymentSheet.PaymentSheet.ExternalPaymentMethodConfiguration? nil none

#

paymentMethodOrder [String]? nil none
linkPaymentMethodsOnly Bool false
forceNativeLinkEnabled Bool false
allowsRemovalOfLastSavedPaymentMethod Bool true
paymentMethodLayout StripePaymentSheet.PaymentSheet.PaymentMethodLayout automatic
cardBrandAcceptance StripePaymentSheet.PaymentSheet.CardBrandAcceptance all
allowsSetAsDefaultPM Bool false
analyticsHelper StripePaymentSheet.PaymentSheetAnalyticsHelper 0x0000600003b55dc0
analyticsClient StripeCore.STPAnalyticsClient 0x00006000021ffde0
integrationShape StripePaymentSheet.PaymentSheetAnalyticsHelper.IntegrationShape complete
configuration StripePaymentSheet.PaymentSheet.Configuration
intent StripePaymentSheet.Intent? nil
elementsSession StripePaymentSheet.STPElementsSession? nil none
loadingStartDate Foundation.Date? 2025-02-21 02:18:24 UTC some
startTimes [StripePaymentSheet.PaymentSheetAnalyticsHelper.TimeMeasurement : Foundation.Date] 0 key/value pairs
didSendPaymentSheetFormInteractedEventAfterFormShown Bool false
didSendPaymentSheetFormCompletedEvent Bool false
lastLogFormShown String? nil none
integrationShape StripePaymentSheet.PaymentSheetLoader.IntegrationShape complete
completion () -> () 0x0000000103ee5aa4 xxxxxxxxxxx`partial apply forwarder for closure #2 (Swift.Result<StripePaymentSheet.PaymentSheetLoader.LoadResult, Swift.Error>) -> () in StripePaymentSheet.PaymentSheet.present(from: __C.UIViewController, completion: (StripePaymentSheet.PaymentSheetResult) -> ()) -> () at <compiler-generated>
self @thick StripePaymentSheet.PaymentSheetLoader.Type @thick StripePaymentSheet.PaymentSheetLoader.Type 0x00000001050aa530
savedPaymentMethodTypes [StripePayments.STPPaymentMethodType] <uninitialized>

#

Is this what you need?

lusty mango
#

Um is that pasted text the strack trace? Doesn't look like a series of call chain. I think your screenshot is the stack trace. But do you see the "signal SIGABRT" mentioned anywhere?

woven gyro
#

Yes, above is pasted text the strack trace.

#

There is no key word SIGABRT in the pasted text

lusty mango
#

This is kind of obfuscated crash. Have your PaymentSheet worked before?

#

Silly question but if you download our example code, would it run?

woven gyro
#

I used to use the Braintree payment processing but recently tried to change to Stripe. I didn't try the example yet. But I found something here. https://github.com/stripe/stripe-react-native/issues/290 i dont know whether it is because of the WIX react-native-navigation that I used or not. But i also tried their solutions, set the payment screen as root or dismiss all modal before calling the payment. Nothing works.

GitHub

Describe the bug Have been following this tutorial and even though most of the things went pretty well, the app would crash when I am calling the presentPaymentSheet with the clientSecret returned ...

lusty mango
#

Um their crash might be different

woven gyro
#

I also tried the old version stripe package, the old package builds failed with the error "Could not found STPBankxxxxxx", Lates version I can build the app but crashs evertime I click the payment button.

#

When it crashed, I could not even see the payment UI. I have succefully impletement stripe payment for react website project though.

lusty mango
#

Did it send the request to server, and did server responded 200 with a payment_intent client secret?

#

If yes, then are you extracting the response the the exactly same key as the server returns? ie. clientSecret != client_secret

woven gyro
#

This is the response from my server.

#

{"allowsDelayedPaymentMethods": false, "customerId": "cus_RoQMFcqD7MWH8t", "merchantDisplayName": "xxxxxxxxxxxxxxx Inc", "paymentIntentClientSecret": "pi_3QunVdGyb1ylllv71LRwbTRz_secret_bCJ6A4br6rD5qFx2mof3zxXdw", "publishableKey": "pk_test_51PtClaGyb1ylllv7gKHKfBarga2t5zXLU8YtSYHAH5kgCb3iY5glVqQHMBlsqdKkC5LoTgQz5HD2MNXLcGAZ0Pzw00cgG4JK1w", "returnURL": "https://com.xxxxxxxxxxxxxxx.payments"}

lusty mango
#

I see. So initiation works but then the presentPaymentSheet crashed

woven gyro
#

Yes

lusty mango
#

Um not sure could be UI related thing, ie. you have some hidden layers on the screen?... Could you test openning a completely blank screen and then presentPaymentSheet() ?

woven gyro
#

blank screen got the same error.

#

Highly doubt that it is because of the WIX react-native-navigation

#

It might be not compatible.

lusty mango
#

Yeah navigation is quite worrisome in this popping up step

woven gyro
#

Do I need to do any setup in AppDelegate.m for Stripe?

lusty mango
woven gyro
#

Alright. I guess I need to figure a way to do the payment screen without using the wix navigation. Thank you for your help :)