adyen-ios: Error: The provided SDK token could not be parsed
Hi, I’m getting ‘this’ response when requesting for /paymentSession using your demoserver under checkoutViewController(_: requiresPaymentDataForToken: completion:) delegate method.
{
type: "validation"
errorCode:14_012,
errorMessage: "The provided SDK token could not be parsed."
}
Pod: Adyen (1.18.0) AdyenCSE(1.1.1)
/paymentSession API Request : POST https://checkoutshopper-test.adyen.com/checkoutshopper/demoserver/paymentSession
Headers : “Content-Type”: “application/json”, “x-demo-server-api-key”: SDK_KEY
Body let paymentDetails: [String: Any] = [ “amount”: [ “value”: 200, “currency”: “EUR” ], “reference”: “iOS & M+M Black dress & accessories”, “countryCode”: “NL”, “shopperLocale”: “nl_NL”, “shopperReference”: “shopper@company.com”, “returnUrl”: “objective-c-example://”, “channel”: “ios”, “token”: token ]
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 23 (12 by maintainers)
We have added support for static library usage (so without
use_frameworks!
) in 2.4.0. Make sure to follow this note in the wiki to avoid issues.Great! I will keep this open until we have fixed the static library support. It should arrive soon.
I’m sorry, I forgot to mention that Carthage support was only added in version 2.0. However, that does mean you would have to use CocoaPods, which gets you back to your first issue. As a temporary suggestion, I’d suggest to raise your deployment target to 9.3, given that most of iOS 9.x users are on 9.3 (source). However, we’ll work on static library support, so you can use the SDK with
use_frameworks!
.The only thing I can recommend now is to use Carthage for integrating, but you would have to update to version 2 of the SDK. The fix has not been scheduled yet, but when it will be done, it will be for version 2 only.