On This Page
JavaScript Example: Processing a Payment
Payment is initiated when
Unified Checkout Integration
captures the clients payment
information by calling the unifiedPayment.complete()
function and
passing the transient token.try { const accept = await Accept(captureContext); const up = await accept.unifiedPayments(sidebar); const tt = await up.show(showArgs); const completeResponse = await up.complete(tt); console.log(completeResponse); // merchant logic for handling complete response } catch (error) { // merchant logic for handling issues console.error("something went wrong: " + error); } }
Unified Checkout Integration
can be leveraged to initiate payment, or you can call
the payment APIs directly. See Authorizations with a Transient Token.