@akinon/pz-one-click-checkout

1.34.0 • Public • Published

pz-one-click-checkout

Usage in plugin module system

import PluginModule, { Component } from '@akinon/next/components/plugin-module';

<PluginModule
  component={Component.OneClickCheckoutButtons}
  props={{
    addProductToBasket: false,
    product: data.product,
    translations: {
      buttonText: 'Pay with AKIFAST'
    }
  }}
/>

Props

Properties Type Description Default
product object Product information.
productQuantity number It is used to determine the quantity of the product to be added to the cart.
clearBasket boolean It is used when the basket needs to be cleaned while adding the product. true
isDisabled boolean Button click control is provided. false
className string The CSS class to apply to the button. bg-[#5381f7] px-7 py-2 w-full text-white text-sm font-semibold hover:bg-[#547ee7]
translations.buttonText string The text of the button. ProviderName Checkout
addBeforeClick function Can be used for checks before the Click event. The function should return boolean as value.

/@akinon/pz-one-click-checkout/

    Package Sidebar

    Install

    npm i @akinon/pz-one-click-checkout

    Weekly Downloads

    374

    Version

    1.34.0

    License

    MIT

    Unpacked Size

    7.96 kB

    Total Files

    8

    Last publish

    Collaborators

    • akinon