chargebee-js-types's Issues
validateVat always returning status:undefined
When running this example:
https://www.chargebee.com/checkout-portal-docs/eu-vat-validation-function.html#integration
let cbInstance = Chargebee.getInstance();
charegbeeInstance.load('functions').then(() => {
const payload = {
country: "DE",
vat_number: "811569869",
}
cbInstance.vat.validateVat(payload).then(data => {
// Your code here
}).catch(err => {
// Your code here
})
});
I'm always getting {status: undefined}
as result.
Playground as example https://jsfiddle.net/r27panuv/
Missing properties and fields
I know this package was just updated but I am still seeing some definitions which don't match the Chargebee.js API docs.
For example, in the docs Chargebee.init
shows publishableKey
as an optional field and several other properties such as enableRedirectMode
and domain
are included. Also, Chargebee.getPortalSections
and Chargebee.registerAgain
are not defined in this package.
Thank you for the work you've already done and I look forward to using this package when it is complete.
PortalCallbacks should have callbacks as optional
since it is not expected to provide every single callback if we dont need it
openCheckout expects layout: Layout but Layout enum is not exported
PortalOpenSectionOptions -> params -> subscriptionId should not be mandatory
as the api states that
subscriptionId String Required if the sectionType involves a subscription related action
same goes for PortalForwardOptions->params -> subscriptionId / paymentSourceId
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.