FILTER BY TAG

Version 1 Update Checklist

You must complete these tasks before you can complete your migration from
Unified Checkout
v0 to v1:
  • Replace
    new Accept(session).unifiedPayments()
    with
    await VAS.UnifiedCheckout(session)
    .
  • Replace
    up.show(options)
    with
    checkout = await client.createCheckout(); checkout.mount(target)
    .
  • Update container options:
    { containers: { paymentSelection, paymentScreen } }
    becomes direct arguments to
    mount()
    .
  • Replace
    up.complete(token)
    with
    checkout.complete(token)
    or use
    autoProcessing: true
    to complete transactions automatically
  • Replace
    up.hide()
    with
    checkout.unmount()
    .
  • Replace
    up.dispose()
    with
    checkout.destroy()
    and
    client.destroy()
    .
  • Add event listeners for observability. For example,
    client.on('error')
    and
    checkout.on('ready')
    .