npm.io
1.0.6 • Published 3 years ago

appcharge-checkout

Licence
MIT
Version
1.0.6
Deps
957
Size
1.3 MB
Vulns
26
Weekly
0

Appcharge's Checkout Solution

Welcome to Appcharge's Checkout Solution, get up and running in a few easy steps.

To install, run this code:

npm i appcharge-checkout

The easiest way to get started is by using this code snippet:

<AppchargeCheckout
  url='http://checkout.yourdomain.com'
  priceInCents={price}
  sessionMetadata={payload}
  isOpen={isModalOpen}
/>

AppchargeCheckout component can recieve the following props:

Prop Type Mandatory
playerId string Yes
priceInCents number Yes
url string Yes
isOpen boolean Yes
sessionMetaData any No
width string No
height string No
closeIconColor string No
closeIconRender ReactNode No
onCloseModal Function No