![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@goodhood/chargebee
Advanced tools
@goodhood/chargebee
React chargebee components (Chargebee SDK https://www.chargebee.com/checkout-portal-docs/api.html)
npm i @goodhood/chargebee
Install peer dependencies
npm i react // v16.x.x
npm i react-load-script // v0.x.x
npm i prop-types // v15.x.x
npm i @babel/runtime // v7.x.x
import {
Action,
PortalLink,
Checkout,
SECTION_INVOICES,
SECTION_EDIT_SUBSCRIPTION,
SECTION_BILLING_ADDRESS,
} from '@goodhood/chargebee';
import { Action } from '@goodhood/chargebee';
const App = () => (
<Action
{/* Your site name */}
site="site-name"
{/* If true onCall won't be called on click */}
disabled={true || false}
{/* Will be called on element click. Receives chargebee instance as an argument */}
onCall={(chargebeeInstance, ChargebeeAPI) => {}}
/>
);
import { PortalLink, SECTION_INVOICES } from '@goodhood/chargebee';
const App = () => (
// Inherits Action component props
<PortalLink
{/* Section in the customer portal */}
section={SECTION_INVOICES}
{/* Should return a promise that resolves a portal session object */}
onSessionGet={() => Promise.resolve({ id: '', token: '' })}
{/* Will be called once the portal is closed by the end user */}
onClose={() => {}}
/>
);
import { Checkout } from '@goodhood/chargebee';
const App = () => (
// Inherits Action component props
<Checkout
{/* Should return a promise, that will resolve a hosted page object */}
onHostedPageGet={() => Promise.resolve({ id: '', url: '' })}
{/* Will be called once the checkout page is loaded */}
onLoaded={() => {}}
{/* Will be called everytime an user navigates from one step to another.
* String values for currentStep see cb-checkout at
* {@link https://www.chargebee.com/docs/2.0/gtm.html} */}
onStep={(currentStep) => {}}
{/* This function will be called once the portal is closed by the end user */}
onClose={() => {}}
{/* Will be called when a successful checkout happens. */}
onSuccess={() => {}}
{/* Will be called if the promise passed in onHostedPageGet causes an error */}
onError={() => {}}
/>
);
config/local.js
file (see config/default.js
)npm run start
src/*/index.jsx
// src/chargebee/index.jsx
export const PortalLink = () => {};
export const Action = () => {};
// usage
import { PortalLink, Action } from '@goodhood/chargebee';
src/*/index.stories.jsx
FAQs
Chargebee components
We found that @goodhood/chargebee demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.