0.0.10 • Published 8 months ago
gravity-checkout v0.0.10
Gravity Checkout
This Component should help get you integrated Checkout for Gravity from marketplace ecommerce.
Prerequisites
As an organization should have these mandatory parameters: API_URL, ORG_ID, PROVIDER_TENANT_ID, PROVIDER, CHECKOUT_ID and replace in the follow javascript code
Install component
npm install gravity-checkout
Implementation
Add file script and css in your html in head HTML:
import { GravityCheckoutComponent } from 'gravity-checkout';
import 'gravity-checkout/styles.css'
Then use component
<GravityCheckoutComponent
apiUrl="API_URL"
orgId="ORG_ID"
providerTenantId="PROVIDER_TENANT_ID"
provider="PROVIDER"
checkoutId="CHECKOUT_ID"
></GravityCheckoutComponent>