checkout / frames-ios

Frames iOS: making native card payments simple

Home Page:https://www.checkout.com/docs/integrate/sdks/ios-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error decoding

FarhanAnsari92 opened this issue · comments

GETTING THIS ERROR WHEN CALLING createCardToken METHOD IN TEST ENVIRONMENT:
dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "No value." UserInfo={NSDebugDescription=No value.})))

CARD NUMBER: 4242-4242-4242-4242
Expiry: 12/23
CVV: 100

**NOTE: ** It is working fine in live environment with real debit card. It was working fine even in test environment when I was installing the SDK from Swift Package Manager, but since I added the SDK using POD I'm getting this decoding error.

pod 'Frames', '3'
xcode: 13.2.1
iOS version: 14.2

Hi @FarhanAnsari92
Please use new Frames SDK release 4.0.1 and try again same case.
Thanks

Closing this due to lack of activity and multiple releases since. Please let us know if we can help further.