You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure what magic is involved for this to serialize correctly on React Native but it will fail on Flutter which uses JSONSerialization.data(withJSONObject... internally and fails with:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid type in JSON write (__SwiftValue)'
terminating with uncaught exception of type NSException
2022-11-10 13:42:08.015484+0100 Runner[22220:691507] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid type in JSON write (__SwiftValue)'
The culprit is the line linked above where the type is serialized:
(lldb) po body
▿ 1 element
▿ 0 : 2 elements
- key : "shippingMethod"
▿ value : 5 elements
▿ 0 : 2 elements
- key : amount
- value : 3.21
▿ 1 : 2 elements
- key : label
- value : Standard Shipping
▿ 2 : 2 elements
- key : detail
- value : Arrives by June 29
▿ 3 : 2 elements
- key : identifier
- value : standard
▿ 4 : 2 elements
- key : type
- value : __C.PKPaymentSummaryItemType(rawValue: 0)
should the line be adjusted to return type.rawValue instead?
The text was updated successfully, but these errors were encountered:
stripe-react-native/ios/Mappers.swift
Line 187 in e5666ee
I'm not sure what magic is involved for this to serialize correctly on React Native but it will fail on Flutter which uses
JSONSerialization.data(withJSONObject...
internally and fails with:The culprit is the line linked above where the type is serialized:
should the line be adjusted to return type.rawValue instead?
The text was updated successfully, but these errors were encountered: