├── dapp
├── index.js
├── contracts
│ └── Payments.sol
├── compile.js
├── test
│ └── PaymentsTest.js
└── build
│ └── Payments.json
├── babel.config.js
├── _dev
├── withdraw.png
├── create-contract.png
├── proceed-payment.png
├── shopping-cart.png
├── create-contract-success.png
└── payment-detail-with-payment.png
├── public
├── favicon.ico
├── assets
│ ├── apple.jpg
│ ├── banana.jpg
│ └── orange.jpg
└── index.html
├── src
├── assets
│ ├── vue.png
│ ├── ethereum.png
│ └── css
│ │ └── vendor
│ │ └── bootstrap.min.css
├── main.js
├── views
│ ├── ShoppingCart.vue
│ ├── Home.vue
│ └── Payments.vue
├── router.js
├── App.vue
├── domain
│ ├── web3.js
│ └── PaymentsService.js
├── components
│ ├── PaymentsLoad.vue
│ ├── FruitDetail.vue
│ ├── Basket.vue
│ └── PaymentsDetail.vue
└── store.js
├── .gitignore
├── package.json
└── README.md
/dapp/index.js:
--------------------------------------------------------------------------------
1 | module.exports.Payments = require('./build/Payments')
--------------------------------------------------------------------------------
/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/app'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/_dev/withdraw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/formentor-studio/ethereum-payment-vuejs/HEAD/_dev/withdraw.png
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/formentor-studio/ethereum-payment-vuejs/HEAD/public/favicon.ico
--------------------------------------------------------------------------------
/src/assets/vue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/formentor-studio/ethereum-payment-vuejs/HEAD/src/assets/vue.png
--------------------------------------------------------------------------------
/_dev/create-contract.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/formentor-studio/ethereum-payment-vuejs/HEAD/_dev/create-contract.png
--------------------------------------------------------------------------------
/_dev/proceed-payment.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/formentor-studio/ethereum-payment-vuejs/HEAD/_dev/proceed-payment.png
--------------------------------------------------------------------------------
/_dev/shopping-cart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/formentor-studio/ethereum-payment-vuejs/HEAD/_dev/shopping-cart.png
--------------------------------------------------------------------------------
/public/assets/apple.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/formentor-studio/ethereum-payment-vuejs/HEAD/public/assets/apple.jpg
--------------------------------------------------------------------------------
/public/assets/banana.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/formentor-studio/ethereum-payment-vuejs/HEAD/public/assets/banana.jpg
--------------------------------------------------------------------------------
/public/assets/orange.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/formentor-studio/ethereum-payment-vuejs/HEAD/public/assets/orange.jpg
--------------------------------------------------------------------------------
/src/assets/ethereum.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/formentor-studio/ethereum-payment-vuejs/HEAD/src/assets/ethereum.png
--------------------------------------------------------------------------------
/_dev/create-contract-success.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/formentor-studio/ethereum-payment-vuejs/HEAD/_dev/create-contract-success.png
--------------------------------------------------------------------------------
/_dev/payment-detail-with-payment.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/formentor-studio/ethereum-payment-vuejs/HEAD/_dev/payment-detail-with-payment.png
--------------------------------------------------------------------------------
/src/main.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import App from './App.vue'
3 | import store from './store'
4 | import router from './router'
5 |
6 | Vue.config.productionTip = false
7 |
8 | new Vue({
9 | store,
10 | router,
11 | render: h => h(App)
12 | }).$mount('#app')
13 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | package-lock.json
4 | /dist
5 |
6 | # local env files
7 | .env.local
8 | .env.*.local
9 |
10 | # Log files
11 | npm-debug.log*
12 | yarn-debug.log*
13 | yarn-error.log*
14 |
15 | # Editor directories and files
16 | .idea
17 | .vscode
18 | *.suo
19 | *.ntvs*
20 | *.njsproj
21 | *.sln
22 | *.sw?
23 |
--------------------------------------------------------------------------------
/src/views/ShoppingCart.vue:
--------------------------------------------------------------------------------
1 |
2 |
{{ description }}
11 |Current balance {{ balance }} ETH
8 | 9 || Reference | 18 |Amount | 19 |Date | 20 |
|---|---|---|
| {{ payment.reference }} | 25 |{{ payment.amount }} eth | 26 |{{ payment.date }} | 27 |