This method is deprecated since version v2.11.0. Use `refreshClientSession` instead.
When updating the client session, after the checkout has been initialized, you will receive a client token in the response returned from PATCH /client-session.
In order for the checkout to know that you have updated the client session, you will need to pass this new client token back to the checkout.
12345678
const checkout = await Primer.showUniversalCheckout( clientToken, options,); // Refresh client session by calling setClientToken// This will result in Drop-In Checkout having access to the latest changes made to the client sessioncheckout.setClientToken(newClientToken);
jsx
copy