├── .github
└── FUNDING.yml
├── .gitignore
├── CHANGELOG.md
├── CONTRIBUTING.md
├── CoCreate.config.js
├── LICENSE
├── README.md
├── demo
└── CoCreate-checkout.html
├── docs
└── index.html
├── package.json
├── release.config.js
└── webpack.config.js
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: CoCreate-app
4 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # ignore
2 | node_modules
3 | dist
4 | .npmrc
5 | yarn.lock
6 |
7 | logs
8 | *.log
9 | npm-debug.log*
10 | yarn-debug.log*
11 | yarn-error.log*
12 | lerna-debug.log*
13 | .pnpm-debug.log*
14 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing to CoCreate-checkout
2 |
3 | This project is work of [many contributors](https://github.com/CoCreate-app/CoCreate-checkout/graphs/contributors).
4 | You're encouraged to submit [pull requests](https://github.com/CoCreate-app/CoCreate-checkout/pulls),
5 | [propose features and discuss issues](https://github.com/CoCreate-app/CoCreate-checkout/issues).
6 |
7 | In the examples below, substitute your Github username for `contributor` in URLs.
8 |
9 | ## Fork the Project
10 |
11 | Fork the [project on Github](https://github.com/CoCreate-app/CoCreate-checkout) and check out your copy.
12 |
13 | ```
14 | git checkout https://github.com/contributor/CoCreate-checkout.git
15 | cd CoCreate-checkout
16 | git remote add upstream https://github.com/CoCreate-app/CoCreate-checkout.git
17 | ```
18 |
19 | ## Create a Topic Branch
20 |
21 | Make sure your fork is up-to-date and create a topic branch for your feature or bug fix on dev branch.
22 |
23 | ```
24 | git checkout dev
25 | git pull upstream dev
26 | git checkout -b my-feature-branch
27 | ```
28 |
29 | ## Write Tests
30 |
31 | Try to write a test that reproduces the problem you're trying to fix or describes a feature that you want to build.
32 |
33 | We definitely appreciate pull requests that highlight or reproduce a problem, even without a fix.
34 |
35 | ## Write Code
36 |
37 | Implement your feature or bug fix.
38 |
39 | ## Write Documentation
40 |
41 | Document any external behavior in the [README](README.md).
42 |
43 | ## Commit Changes
44 |
45 | Make sure git knows your name and email address:
46 |
47 | ```
48 | git config --global user.name "Your Name"
49 | git config --global user.email "contributor@example.com"
50 | ```
51 |
52 | We use [semantic-release](https://github.com/semantic-release/semantic-release) as process to generate changelog
53 | and to release. Write meaningful commits according to
54 | [Commit Message Formats](https://github.com/semantic-release/semantic-release#commit-message-format) is important.
55 |
56 | ```
57 | git add ...
58 | git commit -am "commit-type(optional topic): a meaningful message"
59 | ```
60 |
61 | Here is an example of the release type that should be done based on a [semantic-release](https://github.com/semantic-release/semantic-release):
62 |
63 | | Commit message | Release type |
64 | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------- |
65 | | `fix(pencil): stop graphite breaking when too much pressure applied` | Patch Release |
66 | | `feat(pencil): add 'graphiteWidth' option` | ~~Minor~~ Feature Release |
67 | | `perf(pencil): remove graphiteWidth option`
`BREAKING CHANGE: The graphiteWidth option has been removed.`
`The default graphite width of 10mm is always used for performance reasons.` | ~~Major~~ Breaking Release |
68 |
69 |
70 | ## Push
71 |
72 | ```
73 | git push origin my-feature-branch
74 | ```
75 |
76 | ## Make a Pull Request
77 |
78 | Go to [https://github.com/CoCreate-app/CoCreate-checkout](https://github.com/CoCreate-app/CoCreate-checkout) and select your feature branch.
79 | Click the 'Pull Request' button and fill out the form. Pull requests are usually reviewed within a few days.
80 |
81 | ## Rebase
82 |
83 | If you've been working on a change for a while, rebase with upstream/dev.
84 |
85 | ```
86 | git fetch upstream
87 | git rebase upstream/dev
88 | git push origin my-feature-branch -f
89 | ```
90 |
91 | ## Be Patient
92 |
93 | It's likely that your change will not be merged and that the nitpicky maintainers will ask you to do more, or fix seemingly benign problems. Hang in there!
94 |
95 | ## Thank You
96 |
97 | Please do know that we really appreciate and value your time and work. We love you, really.
--------------------------------------------------------------------------------
/CoCreate.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | "config": {
3 | "apiKey": "2061acef-0451-4545-f754-60cf8160",
4 | "organization_Id": "5ff747727005da1c272740ab",
5 | "host": "general.cocreate.app"
6 | },
7 |
8 | "sources": [{
9 | "entry": "./docs/index.html",
10 | "collection": "files",
11 | "document_id": "6020cd7fb526e5753d0ecb7b",
12 | "key": "src",
13 | "data":{
14 | "name": "index.html",
15 | "path": "/docs/checkout/index.html",
16 | "domains": [
17 | "cocreate.app",
18 | "general.cocreate.app"
19 | ],
20 | "directory": "/docs/checkout",
21 | "content-type": "text/html",
22 | "public": "true",
23 | "website_id": "614298c2829b690010a5c031"
24 | }
25 | }
26 | ],
27 |
28 | "extract": {
29 | "directory": "./src/",
30 | "extensions": [
31 | "js",
32 | "css",
33 | "html"
34 | ],
35 | "ignores": [
36 | "node_modules",
37 | "vendor",
38 | "bower_components",
39 | "archive"
40 | ]
41 | }
42 | }
43 |
44 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2021 CoCreate LLC
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # CoCreate-checkout
2 |
3 | A simple checkout component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API. Take it for a spin in our [playground!](https://cocreate.app/docs/checkout)
4 |
5 | 
6 | 
7 | 
8 | 
9 |
10 | 
11 |
12 | ## [Docs & Demo](https://cocreate.app/docs/checkout)
13 |
14 | For a complete guide and working demo refer to the [doumentation](https://cocreate.app/docs/checkout)
15 |
16 | ## CDN
17 |
18 | ```html
19 |
20 | ```
21 |
22 | ```html
23 |
24 | ```
25 |
26 | ## NPM
27 |
28 | ```shell
29 | $ npm install @cocreate/checkout
30 | ```
31 |
32 | # Table of Contents
33 |
34 | - [Table of Contents](#table-of-contents)
35 | - [Announcements](#announcements)
36 | - [Roadmap](#roadmap)
37 | - [How to Contribute](#how-to-contribute)
38 | - [About](#about)
39 | - [License](#license)
40 |
41 |
42 |
43 | # Announcements
44 |
45 | All updates to this library are documented in our [CHANGELOG](https://github.com/CoCreate-app/CoCreate-checkout/blob/master/CHANGELOG.md) and [releases](https://github.com/CoCreate-app/CoCreate-checkout/releases). You may also subscribe to email for releases and breaking changes.
46 |
47 |
48 |
49 | # Roadmap
50 |
51 | If you are interested in the future direction of this project, please take a look at our open [issues](https://github.com/CoCreate-app/CoCreate-checkout/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-checkout/pulls). We would love to hear your feedback.
52 |
53 |
54 |
55 | # About
56 |
57 | CoCreate-checkout is guided and supported by the CoCreate Developer Experience Team.
58 |
59 | Please Email the Developer Experience Team [here](mailto:develop@cocreate.app) in case of any queries.
60 |
61 | CoCreate-checkout is maintained and funded by CoCreate. The names and logos for CoCreate are trademarks of CoCreate, LLC.
62 |
63 |
64 |
65 | # How to Contribute
66 |
67 | We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/CoCreate-app/CoCreate-checkout/blob/master/CONTRIBUTING.md) guide for details.
68 |
69 | We want this library to be community-driven, and CoCreate led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create [issues](https://github.com/CoCreate-app/CoCreate-checkout/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-checkout/pulls) or merely upvote or comment on existing issues or pull requests.
70 |
71 | We appreciate your continued support, thank you!
72 |
73 | # License
74 |
75 | [The MIT License (MIT)](https://github.com/CoCreate-app/CoCreate-checkout/blob/master/LICENSE)
76 |
--------------------------------------------------------------------------------
/demo/CoCreate-checkout.html:
--------------------------------------------------------------------------------
1 |
The best dog bones of all time. Holy crap. Your dog will be begging for these things! I got curious once and ate one myself. I'm a fan.
266 |Who doesn't like lamb and rice? We've all hit the halal cart at 3am while quasi-blackout after a night of binge drinking in Manhattan. Now it's your dog's turn!
284 |A simple HTML5, CSS and pure javascript component. Easy configuration using data-attributes and highly styleable. 45 |
npm install cocreate-checkout
50 | Or you can use cdn link:
51 |https://cdn.cocreate.app/CoCreate-checkout.min.js
52 |
53 | This is checkout reference
56 | 57 |
59 | <div></div>
60 |
61 | This is checkout reference
63 |This is checkout reference
64 |checkout-attribute
70 |checkout-attribute
74 |