Creates a payment contract for depositing money in wallet using viviswap [EURO --> Crypto]
The wallet pin
The details of the added payment contract
Creates a payment detail for the wallet crypto address in viviswap
The wallet pin
The details of the added payment detail
Creates a purchase request for buying an artefact
The receiver of the purchase request.
The amount of the purchase.
The hash of the underlying product/artefact
The app data for the purchase. This is application specific string or stringified object data.
The type of the purchase. Either a COMPLIMENT or a PURCHASE
The purchase id of the created purchase request as string
Creates a wallet from a backup.
The input string representing the pin.
The bytes of the backup file.
Password used to create the backup.
Creates a payment contract for withdrawing money from wallet using viviswap [Crypto --> EUR] and if the pin is provided automatically triggers a withdrawal
The amount to withdraw from the wallet
Optional
pin: stringThe pin for verification. Optional.
Optional
data: Uint8Array<ArrayBuffer>The associated data with the transaction. Optional.
The details of the created payment contract
Gets the IBAN of the user
The details of the IBAN
Fetches the KYC details for the postident provider
The case details
This method is only available if the SDK is compiled with support for postident.
Fetches the KYC details for a user by the viviswap onboarding process
The KYC details
Fetches the purchase details from the given purchase ID.
The purchase id to query to details.
The purchase details
Get the open AMLA KYC questions
A list of the currently open AMLA questions.
Get the currently open/missing documents for KYC
A list of the currently open documents.
Gets the details of a specific wallet transaction
The wallet pin
The ID of the transaction to get details for.
The details of the wallet transaction as a serialized JSON string.
Gets the detailed lists of wallet transactions
The wallet pin
The start page
The limit per page
The list of wallet transactions
Initializes the etopay logger
The log level.
Check if the password to use for wallet operations is set. Use setWalletPassword to set a new or change an existing password.
Sends the given amount to the given address
The pin for verification
The address of the receiver
The amount to send in the selected currency
Optional
data: Uint8Array<ArrayBuffer>The data associated with the transaction. Optional.
the transaction id.
Set the configuration as a JSON-encoded string.
The input string representing the configuration.
{
"auth_provider": "<authentication provider name>",
"backend_url": "<valid URL to the backend API>",
"storage_path": "/path/to/valid/folder",
"log_level": "info",
}
Set the answer to an open AMLA KYC question
The ID of the question to set the answer to.
a list of the selected available answers for the question.
Optional
freetext_answer: stringan optional free-text answer.
Set / upload an open KYC document
The ID of the document to upload.
the expiration date of this document.
the official document number.
Optional
front_image_data: Uint8Array<ArrayBuffer>the image data of the front side of the document.
Optional
front_image_filename: stringthe filename (including extension) of the front side of the document.
Optional
back_image_data: Uint8Array<ArrayBuffer>the image data of the back side of the document. Leave empty for not specifying a back side image.
Optional
back_image_filename: stringthe filename (including extension) of the back side of the document. Leave empty for not specifying a back side image.
Set Viviswap KYC identity details
The type of the official document.
The expiration date of the official document.
The number of the official document.
The data of the image of the front of the official document.
The filename (including extension) of the image of the front of the official document.
The data of the image of the back of the official document. Leave as empty string to no provide a back image.
The filename (including extension) of the image of the back of the official document. Leave as empty string to no provide a back image.
The data of the 30 second personal video recording.
The filename (including extenstion) of the 30 second personal video recording.
Set Viviswap KYC residence details
User country code
User region
User zip code
User city
User address line 1
User address line 2
Inidcates that a valid public entry of this clients address can be found.
if is_public_entry
is true
, then this must contain the resource link.
indicates if the client does not have any document verifying their address.
Optional
official_document_image_data: Uint8Array<ArrayBuffer>if has_no_official_document
is false
, then this must contain the
bytes of the document file that verifies that this person is currently living at the address.
Optional
official_document_image_filename: stringthe filename (including extension) of the document.
Initialize the KYC process for Postident
The ID of the new Postident KYC case.
This method is only available if the SDK is compiled with support for postident.
Starts the KYC verification process for viviswap
The email address of the user as a string.
The terms of conditions accepted flag for the user as a boolean
The new viviswap user
Updates the IBAN of the user
The pin for verification
The IBAN number to be updated
The details of the added IBAN
Updates the partial KYC details for the viviswap onboarding process
Flag indicating if the user is an individual.
Flag indicating if the user is a politically exposed person.
Flag indicating if the user is a US citizen.
Flag indicating if the user has made a regulatory disclosure.
The country of residence of the user.
The nationality of the user.
The full name of the user.
The date of birth of the user.
The KYC updated details
Triggers the backend to update the KYC status in the postident KYC provider
The input string representing the case_id to be updated
This method is only available if the SDK is compiled with support for postident.
Main object that contains all the functionality for interfacing with the ETOPaySdk.