- Microform Integration v2
- Introduction to Unified Checkout
- Introduction to the Click to Pay Drop-In UI
On This Page
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.