# For latest version
yarn add @akinon/pz-akifast
# Preferred installation method
npx @akinon/projectzero@latest --plugins
(all buttons are visible by default)
// settings.js file
module.exports = {
// other settings
plugins: {
// other plugin settings
'pz-akifast': {
quickLogin: false,
pdp: false,
basket: false,
},
},
};
import PluginModule, { Component } from '@akinon/next/components/plugin-module';
<PluginModule
component={Component.AkifastCheckoutButton}
props={{
...checkoutProviderProps, // same with one click checkout props
isPdp: true
}}
/>
import PluginModule, { Component } from '@akinon/next/components/plugin-module';
<PluginModule
component={Component.AkifastQuickLoginButton}
props={{
isCaptchaVisible,
captchaValidated
}}
/>
You can see other props for the button in the pz-one-click-checkout
package.
Property | Type | Description |
---|---|---|
isPdp | boolean |
Indicates if it's a product info page. |
Property | Type | Description |
---|---|---|
buttonText | string |
Text displayed on the button. |
isCaptchaVisible | boolean |
Indicates if captcha is visible. |
captchaValidated | boolean |
Indicates if captcha is validated. |