VGS Collect
Description
VGS Collect is a way to securely collect sensitive data without going through your systems. If you want to know more about VGS, you can access this link: https://www.verygoodsecurity.com/docs/vgs-collect/js/
How to use it?
How to use it?
Import the VgsCollectForm
into your file:
Import useVgsCollect
into your file:
Import VGS_COLLECT_CONFIG
into your file:
Import FieldsTypes
and ValidationsTypes
into your file:
Use the VgsCollectForm component and useVgsCollect custom hook in your file:
Use the VgsCollectForm component and useVgsCollect custom hook in your file:
Props Description
webviewRef: ref of type webView.
vgsResponse: event executed when a request is made to VGS, and returns status and tokenized data in response.
formFields: array to define the form fields within the webview.
vgsCollectConfig: inbound HTTP Routes configuration of VGS. For more information https://www.verygoodsecurity.com/docs/api/collect/#api-formsubmit.
onError: runs when an error occurs in VGS.
setEmptyValues: event to handle empty values.
clearInputs: boolean value to clear all form inputs after submit.
Last updated