To use the Checkout API, install the @wix/ecom package using npm or Yarn:
@wix/ecom
1
または
Then import { checkout } from @wix/ecom:
{ checkout }