1.0.0-rc.13 • Published 7 months ago

@mycujoo/mcls-components-checkout v1.0.0-rc.13

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

MCLS Checkout component

The is a configurable react component that is to be used for rendering a checkout card for MCLS orders.

CheckoutWithContext

The CheckoutWithContext component is a wrapper around the Checkout component that handles the state creation and management for a single order.

Example of usage:

import { CheckoutWithContext } from '@mycujoo/mcls-components-checkout'

const Checkout = () => {

    return <CheckoutWithContext 
      publicKey={"YOUR_PUBLIC_KEY"} 
      identityToken={"YOUR_USER_IDENTITY_TOKEN"} 
      orderId={"YOUR_ORDER_ID"}
      config={{
        width: '100%',
        height: '100%',
        showPromoCode: true,
        title: {
          color: `#0FF`,
        },
        header: {
          hide: true,
        },
      }}
    />
}

Note: The orderId is received from the createOrder function of the useEventPackagesList hook, or by using useOrderCreate hook inside the EventPackagesContextProvider component.

1.0.0-rc.13

7 months ago

1.0.0-rc.12

7 months ago

1.0.0-rc.11

7 months ago

1.0.0-rc.10

7 months ago

1.0.0-rc.9

7 months ago

1.0.0-rc.8

7 months ago

1.0.0-rc.7

7 months ago

1.0.0-rc.6

8 months ago

1.0.0-rc.5

8 months ago

1.0.0-rc.4

8 months ago

1.0.0-rc.3

8 months ago

1.0.0-rc.2

8 months ago

1.0.0-rc.0

8 months ago

1.0.0-alpha.1

9 months ago

1.0.0-alpha.0

9 months ago