Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build(docker): add web client and control center services to docker compose setup #4197
build(docker): add web client and control center services to docker compose setup #4197
Changes from 10 commits
e9e33d7
f606675
a84bb9e
115ba2a
89fa634
2c62e41
270db2a
13ed018
dd1d576
542b115
ce5ca87
61573ac
42c8346
3e9a23c
5b126a0
e44f2a7
7a552e5
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@prasad89 can you add this env file if it is needed, I'd prefer all variables in the below
environment
block tho?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lsampras We've set up a configuration block with default variable pointers.
For confidentiality,
HYPERSWITCH_PUBLISHABLE_KEY
andHYPERSWITCH_SECRET_KEY
are considered personal secrets and should be stored in a.env
file.Therefore, the complete
.env
file should appear as follows:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but then you are specifying these keys here as well,
in that case we can remove the .env file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In our configuration, we're defining the
environment
block and specifying thatHYPERSWITCH_PUBLISHABLE_KEY
andHYPERSWITCH_SECRET_KEY
are required for running Docker Compose, indicated by the presence of the'$
symbol. For other variables, Docker Compose will use values from the.env
file if provided, otherwise, it will proceed with default value fromenvironment
blockWe are using
interpolation
method here.REF : https://docs.docker.com/compose/environment-variables/env-file/#interpolation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lsampras, so the process for configuring the application flow will involve creating a
.env
file.You'll need to set the
HYPERSWITCH_PUBLISHABLE_KEY
andHYPERSWITCH_SECRET_KEY
, as well as any other environment variables (in case of user has done some customization over the app)If users don't provide these essential environment variables, Docker Compose setup will fail, as it relies on them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lsampras Yes, those should be present in the
.env
file in order to run docker compose.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lsampras hope I explained you well.
Let me know if there are anymore changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah,
can you make the env file optional as mentioned here.
Also it seemed that control-center was facing some problems when loading the sdk for test payment..
Can you test that flow once on your end and lmk if you are able to make payments through that?
you can configure a test connector for the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lsampras have tested the flow added one fix for the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@prasad89 Can you make sure the SDK loads in control-center
sharing a reference screenshot from our sandbox environment (app.hyperswitch.io)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion.