@yuno-payments/yuno-sdk-react-native 1.0.17-rc.8 → 1.0.17-rc.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ios/YunoSdk.swift CHANGED
@@ -591,9 +591,15 @@ extension YunoSdk {
591
591
 
592
592
  let jsonData = try JSONSerialization.data(withJSONObject: tokenCollectedData, options: [])
593
593
 
594
+ // Debug: Print the JSON string
595
+ if let jsonString = String(data: jsonData, encoding: .utf8) {
596
+ print("🐛 iOS generateToken JSON: \(jsonString)")
597
+ }
598
+
594
599
  // Decode to TokenCollectedData using the native SDK's Codable model
600
+ // Note: Don't use .convertFromSnakeCase because the SDK's models have custom decoders
601
+ // that already handle snake_case field names (checkout_session, payment_method, etc)
595
602
  let decoder = JSONDecoder()
596
- decoder.keyDecodingStrategy = .convertFromSnakeCase
597
603
  let collectedData = try decoder.decode(TokenCollectedData.self, from: jsonData)
598
604
 
599
605
  // Create API client using the native SDK's factory method
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuno-payments/yuno-sdk-react-native",
3
- "version": "1.0.17-rc.8",
3
+ "version": "1.0.17-rc.9",
4
4
  "description": "Yuno React Native SDK empowers you to create seamless payment experiences in your native Android and iOS apps built with React Native.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",