Closed anderslyman closed 3 years ago
@anderslyman This library is specifically made to be used in a nodejs backend environment, and cannot be used in frontend code. If you want to integrate chargebee on your frontend, you'll have to use the chargebee checkout script.
There is NO installable npm package for this yet and the only officially supported way as of now is to include their script in your index.html and using the window.Chargebee object for initiating the checkout
This library is written for node.js. Refer: https://github.com/chargebee/chargebee-typescript/blob/master/src/core.ts It requires
http
,https
,os
.Does anyone have this working in the browser? I got this far:
How did you shim/polyfill the http/https pieces for the
request
function?