Checkout Component
In order to maintain the integrity of the parameters passed to the checkout Webcomponent, these properties must now be passed as a JWT (JSON Web Token) in the jwt
attribute.
To simplify tasks, we've introduced the getCheckoutToken
RPC. It returns the user's access token and a checkout JWT, which includes parameters like basket-id
, voucher
and campaignKey
. Additionally, the <ay-checkout>
Webcomponent got renamed to <scayle-checkout>
.
To use the getCheckoutToken
RPC, you will need to have version 7.72.1
of the @scayle/storefront-nuxt
package.
You can start using the checkout JWT with the following code snippet: