On This Page
Version 1 Update Checklist
You must complete these tasks before you can complete your migration from
Unified Checkout
v0 to v1:- Replacenew Accept(session).unifiedPayments()withawait VAS.UnifiedCheckout(session).
- Replaceup.show(options)withcheckout = await client.createCheckout(); checkout.mount(target).
- Update container options:{ containers: { paymentSelection, paymentScreen } }becomes direct arguments tomount().
- Replaceup.complete(token)withcheckout.complete(token)or useautoProcessing: trueto complete transactions automatically
- Replaceup.hide()withcheckout.unmount().
- Replaceup.dispose()withcheckout.destroy()andclient.destroy().
- Add event listeners for observability. For example,client.on('error')andcheckout.on('ready').