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 NameField TypeField UsageDescription
clientObject(Client)RequiredDetails the Client Information.
See Client Data Elements for more
information.

Initialize Promise – Resolve and Reject

functionDescription
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 CodeDescription
CLIENT_ID_MISSINGThe identifier for the Client is missing.
INVALID_CLIENT_IDThe identifier for the Client is invalid.
INVALID_PROFILE_IDThe 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;
})