Initialize
Initialize
Initialize PazeSM with common state, starting the Merchant session. This is required before calling any other methods and is recommended to start with page load, since it will begin running fraud checks against the consumer’s device. Multiple Merchant sessions may run in parallel.
Initialize Request Parameters
Field Name | Field Type | Field Usage | Description |
---|---|---|---|
client | Object(Client) | Required | Details the Client Information. See Client Data Elements for more information. |
Initialize Promise – Resolve and Reject
function | Description |
---|---|
resolve() | This is the JS Promise (fulfilled) call when the request is successfully processed by the Paze SDK. |
Reject() | This is the JS Promise call when there is an error. The object passed in is an error. |
Initialize Business Errors
Reason Code | Description |
---|---|
CLIENT_ID_MISSING | The identifier for the Client is missing. |
INVALID_CLIENT_ID | The identifier for the Client is invalid. |
INVALID_PROFILE_ID | The identifier for the profile is invalid. |
Standard errors are enumerated in their own section and are therefore excluded from API-specific tables.
Initialize Code Examples
// Response – empty
initialize({
required Client client;
})
Updated about 1 month ago