JavaScript Example: Initializing the SDK

try{ const accept = await Accept(captureContext); const up = await accept.unifiedPayments(sidebar); } catch (error) { // merchant logic for handling issues console.error("something went wrong: " + error);}
In this example,
captureContext
refers to the capture context JWT.