Web Client SDK Setup
The JavaScript endpoints below are available for use during testing and production.
JavaScript SDK Endpoints
Environment | JavaScript SDK Endpoint |
---|---|
Sandbox | https://checkout.wallet.cat.earlywarning.io/web/resources/js/digitalwallet-sdk.js |
Production | https://checkout.paze.com/web/resources/js/digitalwallet-sdk.js |
Before calling Initialize, Merchants must load the Paze SDK. The SDK creates a popup that is used to host the user interface (UI) for the SDK.
The following example shows how to load the SDK and create an adapter:
<head>
</head>
<body>
<script src=”https://checkout.wallet.cat.earlywarning.io/web/resources/js/digitalwallet-sdk.js” type=”text/javascript”>
</script>
<script>
let digitalWalletAdaptor = window.DIGITAL_WALLET_SDK;
</script>
</body>
When presenting any Paze checkout user experience, the SDK will drive the window as an overlay to the Merchant site.
Encryption Certificate and Key Alias
Paze checkout response (securePayload field in completeResponse) is encrypted, and it is the responsibility of Merchant or the decrypting entity to decrypt the response. The Merchant or decrypting entity will provide a public certificate in PEM format with a keyAlias, 2048 or 4096 bits, self-signed, x509, SHA256, RSA key, when onboarding with Paze.
Signature Validation
Paze checkout response (securePayload field in completeResponse) is signed with a Paze signature key. The Merchant or decrypting entity can retrieve the signature key from the well-known URL and validate the signature before decrypting the response. The well-known URL endpoint can be found in the table below.
Signature Endpoints
Environment | URL |
---|---|
Testing | https://auth.wallet.cat.earlywarning.io/jwks |
Production | https://auth.wallet.earlywarning.com/jwks |
Updated about 13 hours ago