You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Samples/README.md
+20-18Lines changed: 20 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,28 +92,29 @@ This sample illustrates how to use secure Skyflow elements to collect sensitive
92
92
- Replace the placeholder "<VAULT_URL>" with the correct vaultURL
93
93
2. Update `Fields` struct in [ResponseStructs.swift](CollectAndRevealSample/CollectAndRevealSample/ResponseStructs.swift) with field name of used vault. For ex:
94
94
95
-
```swift
96
-
struct Fields: Codable {
97
-
let name: NameField
98
-
let cvv: String
99
-
let cardExpiration: String
100
-
let cardNumber: String
101
-
let skyflow_id: String
102
-
}
103
-
```
95
+
```swift
96
+
structFields: Codable {
97
+
let name: NameField
98
+
let cvv: String
99
+
let cardExpiration: String
100
+
let cardNumber: String
101
+
let skyflow_id: String
102
+
}
103
+
```
104
104
105
-
The fields can be different depending upon the vault.
106
-
3. Update
107
-
4. Replace the placeholder "<TOKEN_END_POINT_URL>" of [ExampleTokenProvider.swift](CollectAndRevealSample/CollectAndRevealSample/ExampleTokenProvider.swift) with the bearer token endpoint which gives the bearerToken, implemented at your backend or `http://localhost:3000/`.
105
+
`Note : The fields can be different depending upon the vault.`
106
+
3. Replace the placeholder "<TOKEN_END_POINT_URL>" of [ExampleTokenProvider.swift](CollectAndRevealSample/CollectAndRevealSample/ExampleTokenProvider.swift) with the bearer token endpoint which gives the bearerToken, implemented at your backend or `http://localhost:3000/`.
108
107
109
108
#### Running the sample
110
109
1. Open CMD
111
-
2. Navigate to `CollectAndRevealSample`
110
+
2. Navigate to CollectAndRevealSample
112
111
3. Run
113
112
114
113
pod install
115
-
4. Open the `CollectAndRevealSample.xcworkspace` file using xcode
116
-
5. click on build and run
114
+
4. Open the CollectAndRevealSample.xcworkspace file using xcode.
115
+
5. Build and run using command + R.
116
+
117
+
`Note : CollectAndRevealSample.xcworkspace is automatically generated in local once project is cloned from github.`
117
118
118
119
### Validations
119
120
This sample illustrates how to apply custom validation rules on secure Skyflow Collect elements to restrict the type of input a user can provide.
@@ -124,9 +125,10 @@ This sample illustrates how to apply custom validation rules on secure Skyflow C
124
125
4. Replace the placeholder "<TOKEN_END_POINT_URL>" in [ExampleTokenProvider.swift](Validations/Validations/ExampleTokenProvider.swift) with the bearer token endpoint which gives the bearerToken, implemented at your backend or `http://localhost:3000/`.
125
126
#### Running the sample
126
127
1. Open CMD
127
-
2. Navigate to `Validations`
128
+
2. Navigate to Validations
128
129
3. Run
129
130
130
131
pod install
131
-
4. Open the `Validations.xcworkspace` file using xcode
132
-
5. click on build and run
132
+
4. Open the Validations.xcworkspace file using xcode
133
+
5. Build and run using command + R.
134
+
`Note : Validations.xcworkspace is automatically generated in local once project is cloned from github.`
0 commit comments