Skip to content

Commit be56ae6

Browse files
committed
chore: init project
0 parents  commit be56ae6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+9746
-0
lines changed

Diff for: .editorconfig

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
root = true
2+
3+
[*]
4+
indent_style = tab
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
max_line_length = 100
11+
12+
[*.{md,txt}]
13+
trim_trailing_whitespace = false
14+
15+
[*.{js,json,yml}]
16+
indent_style = space
17+
18+
[*.yml]
19+
indent_size = 2

Diff for: .eslintrc.cjs

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
node: true,
6+
},
7+
extends: ["standard-with-typescript", "prettier"],
8+
overrides: [],
9+
parserOptions: {
10+
ecmaVersion: "latest",
11+
sourceType: "module",
12+
project: "./tsconfig.json",
13+
},
14+
plugins: ["prettier"],
15+
rules: {
16+
"prettier/prettier": "error",
17+
"@typescript-eslint/no-floating-promises": "off",
18+
"@typescript-eslint/explicit-function-return-type": "warn",
19+
"@typescript-eslint/triple-slash-reference": "off",
20+
},
21+
};

Diff for: .gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DS_Store
2+
vendor/
3+
node_modules/
4+
wp/
5+
dist/
6+
build/

Diff for: .husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit ${1}

Diff for: .phpunit.result.cache

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"version":1,"defects":{"Tests\\SodiumAdapterTest::testEncrypt":5,"Tests\\SodiumAdapterTest::testDecrypt":3},"times":{"Tests\\SodiumAdapterTest::testEncrypt":0.004,"Tests\\SodiumAdapterTest::testDecrypt":0}}

Diff for: .vscode/launch.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Listen for Xdebug",
6+
"type": "php",
7+
"request": "launch",
8+
"port": 9003,
9+
"pathMappings": {
10+
"/var/www/html/wp-content/plugins/pagbank-woocommerce": "${workspaceRoot}/",
11+
}
12+
}
13+
]
14+
}

Diff for: README.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# PagBank WooCommerce
2+
3+
## Start the project
4+
5+
The following command will start the Docker for the project and check on [http://wordpress.localhost](http://wordpress.localhost) to the page be available:
6+
7+
```bash
8+
docker compose up
9+
```
10+
11+
## Initial setup
12+
13+
After start the project, run the initial setup script by executing:
14+
15+
```bash
16+
yarn setup
17+
```

Diff for: TODO.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Todo
2+
3+
## General
4+
[ ] Add webhooks
5+
[ ] Setup Vite to correct compile code
6+
7+
## Credit card
8+
[ ] Add admin option to enable/disable card tokenization
9+
[ ] Add support for installments
10+
[ ] Show in admin order view the installment options
11+
[ ] Show in customer order view the installment options
12+
[ ] Add credit card CPF/CNPJ
13+
[ ] Allow only BRL currency
14+
[ ] Set minimum order amount
15+
[ ] Set minimum order amount for installments
16+
[ ] Add card tokenization to "my account"
17+
[ ] Add card information to "thank you page"
18+
[ ] Add support to use the billing CPF
19+
[ ] Add admin options
20+
[ ] Add logs
21+
[ ] Add refund
22+
23+
## Boleto
24+
25+
[ ] Add styles to "thank you page"
26+
[ ] Add support to CPF/CNPJ if "Brazilian Market on WooCommerce" is not installed
27+
[ ] Add admin options
28+
[ ] Add logs
29+
[ ] Add refund
30+
31+
## Pix
32+
33+
[ ] Add styles to "thank you page"
34+
[ ] Add support to CPF/CNPJ if "Brazilian Market on WooCommerce" is not installed
35+
[ ] Add admin options
36+
[ ] Add logs
37+
[ ] Add refund

Diff for: commitlint.config.cjs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ["@commitlint/config-conventional"],
3+
};

Diff for: composer.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "pagbank/pagbank-woocommerce",
3+
"autoload": {
4+
"psr-4": {
5+
"PagBank_WooCommerce\\": "src/core/"
6+
},
7+
"files": [
8+
"src/core/Presentation/Helpers.php",
9+
"src/core/Presentation/ApiHelpers.php"
10+
]
11+
},
12+
"authors": [
13+
{
14+
"name": "Elias Júnior",
15+
"email": "[email protected]"
16+
}
17+
],
18+
"scripts": {
19+
"ci": [
20+
"./vendor/bin/phpcs",
21+
"./vendor/bin/phpcbf"
22+
],
23+
"unit": "./vendor/bin/phpunit --coverage-html build/coverage-report"
24+
},
25+
"require-dev": {
26+
"squizlabs/php_codesniffer": "^3.7",
27+
"phpunit/phpunit": "^9.6",
28+
"wp-coding-standards/wpcs": "^2.3",
29+
"woocommerce/woocommerce-sniffs": "^0.1.3"
30+
},
31+
"require": {
32+
"php": ">=7.2 <8",
33+
"jakeasmith/http_build_url": "^1",
34+
"giggsey/libphonenumber-for-php": "^8.13",
35+
"nesbot/carbon": "^2.66"
36+
},
37+
"config": {
38+
"allow-plugins": {
39+
"dealerdirect/phpcodesniffer-composer-installer": true
40+
}
41+
}
42+
}

0 commit comments

Comments
 (0)