Page Properties |
---|
|
Status | Status |
---|
colour | YellowGreen |
---|
title | for reviewapproved |
---|
|
|
---|
Approver | Nadzeya Karaban |
---|
|
If Optionally, if you want to use Certificate pinning, Pinning and provide metadata for the upload process. You can , pass both your public key pinning configuration (see TrustKit repo for more information), the metadata information, and the API type (Gini Pay API is used by default) as follows:
Code Block |
---|
|
import TrustKit
let yourPublicPinningConfig = [
kTSKPinnedDomains: [
"pay-api.gini.net": [
kTSKPublicKeyHashes: [
// old *.gini.net public key
"cNzbGowA+LNeQ681yMm8ulHxXiGojHE8qAjI+M7bIxU=",
// new *.gini.net public key, active from around June 2020
"zEVdOCzXU8euGVuMJYPr3DUU/d1CaKevtr0dW0XzZNo="
]],
"user.gini.net": [
kTSKPublicKeyHashes: [
// old *.gini.net public key
"cNzbGowA+LNeQ681yMm8ulHxXiGojHE8qAjI+M7bIxU=",
// new *.gini.net public key, active from around June 2020
"zEVdOCzXU8euGVuMJYPr3DUU/d1CaKevtr0dW0XzZNo="
]],
]] as [String: Any]
let viewController = GiniBank.viewController(withClient: client,
configuration: giniBankConfiguration,
resultsDelegate: giniCaptureResultsDelegate,
publicKeyPinningConfig: yourPublicPinningConfig,
documentMetadata: documentMetadata,
api: .default)
present(viewController, animated: true, completion:nil) |
Info |
---|
The document metadata for the upload process is intended to be used for reporting. Find out more about it in the Gini Bank API documentation.
Info |
---|
Certification pinning requires iOS 12. |