On This Page
Loading the Javascript Library and Invoking the Accept Function
Use the Javascript library is used to invoke unified payments on your page.
Javascript Library URL:
Get this URL from the capture context response. When decoded it appears this in the JSON
parameter
clientLibrary
:https://stageup.cybersource.com/up/v1/assets/0.6.0/SecureAcceptance.js
When you load the library, the capture context that you received from your initial
server-side request invokes the accept function.
IMPORTANT
You should use the
clientLibrary
parameter value
in the capture context response to obtain the Unified Checkout Javascript library URL.
This ensures that you are always using the most up-to-date library. Do not hard code the
Unified Checkout Javascript library URL.