1.0.11 • Published 10 months ago

@cartpanda/hydrogen-checkout-button v1.0.11

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

Intro

This is a cartpanda X hydrogen checkout button package. By using this library, you can replace Hydrogen default checkout button and redirect your customer to our (Cartpanda) checkout page.

How To Use

  • Install the package first
npm i @cartpanda/hydrogen-checkout-button
  • Adjust your shopify.config.js file
export default {
  storeDomain: '',
  storefrontToken: '',
  storefrontApiVersion: '',
  cartpandaDomain: 'example.mycartpanda.com'
};
  • Import the library on your cart component
import {CheckoutButton} from "@cartpanda/hydrogen-checkout-button";
  • Use the component by passing the config and cart items to props like this
const cart = useCart()

<CheckoutButton className={styles.cartCheckout} cart={cart} config={shopifyConfig}>
    FINALIZAR COMPRA (CartPanda)
</CheckoutButton>
1.0.11

10 months ago

1.0.10

10 months ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.0

2 years ago