Setup
To use the CheckoutSettings API, install the @wix/ecom
package using npm or Yarn:
Copy
1npm install @wix/ecom
or
Copy
1yarn add @wix/ecom
Then import { checkoutSettings }
from @wix/ecom
:
Copy
1import { checkoutSettings } from '@wix/ecom'
Was this helpful?
Yes
No
getCheckoutSettings( )
Developer Preview
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves the sites' checkout settings.
The getCheckoutSettings()
function returns a Promise that resolves to checkout settings.
Permission Scopes
For app development, you must have one of the following permission scopes:Learn more about permission scopes.
Copy
function getCheckoutSettings(): Promise<GetCheckoutSettingsResponse>
Request
This method does not take any parameters
Returns
Return Type:Promise<GetCheckoutSettingsResponse>
Was this helpful?
Yes
No
updateCheckoutSettings( )
Developer Preview
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates the sites' checkout settings.
The updateCheckoutSettings()
function returns a Promise that resolves to the newly updated checkout settings.
Permission Scopes
For app development, you must have one of the following permission scopes:Learn more about permission scopes.
Copy
function updateCheckoutSettings(checkoutSettings: CheckoutSettings): Promise<UpdateCheckoutSettingsResponse>
Method Parameters
checkoutSettingsCheckoutSettingsRequired
Checkout settings to update.
Returns
Return Type:Promise<UpdateCheckoutSettingsResponse>
Was this helpful?
Yes
No