Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: increase vendor data length to 1000 #44

Merged
merged 2 commits into from
Dec 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Veriff JS SDK, is a simple and customisable library which helps to integrate wit
Include as a script tag:

```html
<script src='https://cdn.veriff.me/sdk/js/1.4/veriff.min.js'></script>
<script src='https://cdn.veriff.me/sdk/js/1.5/veriff.min.js'></script>
```

or install it via a package manager
Expand Down Expand Up @@ -78,7 +78,7 @@ By default the following form will be rendered:
}
```

vendorData: string - Client specific data string, max 400 characters long, will be sent back unmodified using webhooks.
vendorData: string - Client specific data string, max 1000 characters long, will be sent back unmodified using webhooks.
In case the Given name / Last name / Vendor Data or all of them are known, they can be passed to the SDK, therefore text input fields will not be rendered.

```javascript
Expand Down Expand Up @@ -145,4 +145,4 @@ Additionally, the input placeholder and button text value can be customised.
loadingText: 'Please wait...'
});
```
![alt text](https://cdn.veriff.me/assets/jssdk-default-sample.png "Veriff JS SDK")
![alt text](https://cdn.veriff.me/assets/jssdk-default-sample.png "Veriff JS SDK")
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@veriff/js-sdk",
"version": "1.4.0",
"version": "1.5.0",
"description": "JavaScript SDK for Veriff identity verification",
"main": "lib/veriff.js",
"types": "lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function createInputIfNeeded(opts: CreationOptions) {
const inputLabel = createLabel(label, name);
const input = createInput({ type: 'text', name, label, required });
if (name === 'vendorData') {
input.setAttribute('maxlength', '400');
input.setAttribute('maxlength', '1000');
}

container.appendChild(inputLabel);
Expand Down