Releases: xendit/xendit-sdk-ios-src
Releases · xendit/xendit-sdk-ios-src
3.5.1
3.6.0
3.5.0
- Add logic to check for amount for single and multiple use token
- Make amount optional for tokenization
- Update readme file
3.4.2
Fix
- SDK not sending card CVN when creating authentication
3.4.1
- Fix sending of CVN when using deprecated methods
3.4.0
Fixes
- Allow decimals for create authentication using multiple use token
3.3.0
Changes:
- Return
failure_reason
for FAILED 3DS
Fixes:
- Improve 3ds handling
3.2.0
Added two methods to encode responses into JSON objects
Model -> JSON Object
let token: XenditCCToken = XenditCCToken.init(response: [
"id": "123",
"status": "VERIFIED",
"card_info": [
"bank": "Test bank"
]
])!
let jsonObject = token.toJsonObject()
// ["id": "123", "status": "VERIFIED", "card_info": ["bank": "Test bank"]]
Model -> JSON String (Using the built-in JSONEncoder)
let token: XenditCCToken = XenditCCToken.init(response: [
"id": "123",
"status": "VERIFIED",
"card_info": [
"bank": "Test bank"
]
])!
let encoder = JSONEncoder()
encoder.keyEncodingStrategy = .convertToSnakeCase
let jsonData = try? encoder.encode(token);
let jsonString = String(data: jsonData!, encoding: .utf8)
// "{\"id\":\"123\",\"status\":\"VERIFIED\",\"card_info\":{\"bank\":\"Test bank\"}}"
3.1.0
- Added
card_info.fingerprint
to tokenization and authentication responses.fingerprint
is an identifier for unique cards that transact on Xendit's platform.
2.1.8
- Added UnionPay and Diners in cards validation