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
.fromDate("01/01/2021") // Optional: Default 6 months old date
164
169
.toDate("01/04/2021") // Optional: Default value 1 day less than current date
165
-
.bank("sbi") // Optional
170
+
.bank("sbi") // Optional: Short code of the bank
171
+
.mode(PDF) // Optional: PDF Mode
166
172
.build()
167
173
```
168
174
@@ -175,27 +181,29 @@ new FinBoxBankConnect.Builder(getApplicationContext())
175
181
.linkId("your_link_id")
176
182
.fromDate("01/01/2021") // Optional: Default 6 months old date
177
183
.toDate("01/04/2021") // Optional: Default value 1 day less than current date
178
-
.bank("sbi") // Optional
184
+
.bank("sbi") // Optional: Short code of the bank
185
+
.mode(PDF) // Optional: PDF Mode
179
186
.build();
180
187
```
181
188
182
189
</template>
183
190
</CodeSwitcher>
184
191
185
-
186
192
| Builder Property | Description | Required |
187
193
| - | - | - |
188
194
|`apiKey`| specifies the `api_key`| Yes |
189
195
|`linkId`| specifies the `link_id`| Yes |
190
196
|`fromDate`| specifies the starting period of the statement in `DD/MM/YYYY`format | No |
191
197
|`toDate`| specifies the end period of the statement in `DD/MM/YYYY` format | No |
192
198
|`bank`| pass the [bank identifier](/bank-connect/appendix.html#bank-identifiers) to skip the bank selection screen and directly open a that bank's screen instead | No |
199
+
|`mode`| set the mode as pdf (manual upload) or aa (Account Aggregator) or online (Net Banking) | No |
193
200
194
201
`fromDate` and `toDate` specify the period for which the statements will be fetched. For example, if you need the last 6 months of statements, `fromDate` will be today's date - 6 months and `toDate` will be today's date - 1 day. If not provided the default date range is 6 months from the current date. It should be in `DD/MM/YYYY` format.
195
202
196
203
Once the above statement is added, a series of checks are done to make sure the SDK is implemented correctly. A `RunTimeException` will be thrown while trying to build the project in case any of the checks are not completed.
197
204
198
205
::: warning Minimal Requirements for SDK to work:
206
+
199
207
1.`apiKey` is is mandatory
200
208
2.`linkId` is mandatory, and should be at least 8 characters long
201
209
3. In case `fromDate` / `toDate` is provided, make sure they are of correct date format: `DD/MM/YYYY`.
@@ -205,6 +213,7 @@ Once all these conditions are met, the BankConnect object will build.
Once the user navigates through the banks and uploads the bank statement, the sdk automatically closes `BankActivity` and returns `FinboxOnSuccessPayload`.
249
259
250
260
`FinboxOnSuccessPayload` contains `linkId` and `entityId`. A successful upload contains a unique `entityId`.
251
-
* linkId - Unique id passed when building the Bank Connect object
252
-
* entityId - Unique id of a successful statement upload
261
+
262
+
- linkId - Unique id passed when building the Bank Connect object
263
+
- entityId - Unique id of a successful statement upload
To track detailed errors, and transaction process completion at the server-side, it is recommended to also integrate [Webhook](/bank-connect/webhook.html).
315
325
:::
316
326
317
327
## Customization
328
+
318
329
`BankActivity` inherits the themes and color from Material Dark Action Bar Theme. Most of the case, there would be less customization requried but if there is a mismatch in colors, you can customize it through your `styles.xml` file.
319
330
320
331
1. The sdk Toolbar color uses `colorPrimary`. If your app toolbar color is different from `colorPrimary` then change the color by updating the background color
2.`BankConnectTheme` is the base theme of the sdk and it inherits `Theme.MaterialComponents.Light.DarkActionBar`. If your app doesn't inherit Dark Action Bar theme then you can change the sdk theme to inherit your app base theme.
| `fromDate` | specifies the starting period of the statement in `DD/MM/YYYY`format | No |
134
121
| `toDate` | specifies the end period of the statement in `DD/MM/YYYY` format | No |
135
122
| `bank` | pass the [bank identifier](/bank-connect/appendix.html#bank-identifiers) to skip the bank selection screen and directly open a that bank's screen instead | No |
123
+
| `mode` | set the mode as pdf (manual upload) or aa (Account Aggregator) or online (Net Banking) | No |
136
124
137
125
`fromDate`and `toDate` specify the period for which the statements will be fetched. For example, if you need the last 6 months of statements, `fromDate` will be today's date - 6 months and `toDate` will be today's date - 1 day. If not provided the default date range is 6 months from the current date. It should be in `DD/MM/YYYY` format.
0 commit comments