Skip to content

Commit

Permalink
Merge pull request #845 from 0xPolygonID/feat/multichain-payment
Browse files Browse the repository at this point in the history
Feat: Multichain payment
  • Loading branch information
martinsaporiti authored Dec 26, 2024
2 parents 9380904 + 3062fec commit 48aec25
Show file tree
Hide file tree
Showing 55 changed files with 6,988 additions and 443 deletions.
8 changes: 7 additions & 1 deletion .env-issuer.sample
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,10 @@ ISSUER_RESOLVER_PATH=./resolvers_settings.yaml
# if you want, you can specify the content of the resolvers encoded in base64. In this case ISSUER_RESOLVER_PATH have to be empty
ISSUER_RESOLVER_FILE=

ISSUER_UNIVERSAL_LINKS_BASE_URL=https://wallet.privado.id
ISSUER_UNIVERSAL_LINKS_BASE_URL=https://wallet.privado.id

#Payments configuration
# ISSUER_PAYMENTS_SETTINGS_PATH is the configutation file for payments.
# You can use another file by specifying the path. Be Sure to the file is mounted in the container (docker compose files)
ISSUER_PAYMENTS_SETTINGS_PATH=./payment_settings.yaml
#
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ bin/
.env-issuer
.env-ui
resolvers_settings.yaml
payment_settings.yaml

infrastructure/local/.vault/data
infrastructure/local/.vault/plugins
Expand Down
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ linters-settings:
min-complexity: 35
revive:
enable-all-rules: false

rules:
- name: argument-limit
severity: warning
Expand All @@ -74,6 +75,7 @@ linters-settings:
- name: exported
severity: warning
disabled: false
arguments: [ "disableChecksOnConstants", "disableChecksOnVariables" ]


issues:
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ RUN apk add curl
COPY --from=base ./service/api ./api
COPY --from=base ./service/bin/* ./
COPY --from=base ./service/pkg/credentials ./pkg/credentials
COPY --from=base ./service/resolvers_settings.* ./
COPY --from=base ./service/resolvers_settings.* ./
COPY --from=base ./service/payment_settings.* ./
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ a4a1d3ec9159 redis:6-alpine "docker-entrypoint.s…" 38 sec
make private_key=<private-key> import-private-key-to-kms
```

**_TODO_**: Add section to configure payments

then visit:
* http://localhost:8088/ to access the UI (default username / password are: user-ui, password-ui). You can set them using env [vars](.env-ui.sample).
* <PUBLICLY_ACCESSIBLE_URL_POINTING_TO_ISSUER_SERVER_PORT>:3001/ to access the API. (default username / password are: user-issuer, password-issuer)
Expand Down Expand Up @@ -139,6 +141,8 @@ then modify the file with the proper values. The most important fields to run th
In this file you can define customizations for each type of blockchain and network. For this example, we only need to
define the RPCs. that will use.

**_TODO_**: Add section to configure payments****

4. Copy .env-ui sample file and fill the needed env variables:

```bash
Expand Down
Loading

0 comments on commit 48aec25

Please sign in to comment.