Skip to content
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

Addition of a field to allow adding a personalized url. Because endpo… #6

Merged
merged 5 commits into from
Feb 6, 2023

Conversation

camilleislasse
Copy link
Contributor

Addition of SogeCommerce Endpoint ( Societé Génerale )

Addition of a field to allow adding a personalized url. Because endpoints can change and it's restrictive to have endpoints hard-coded in the code

…ints can change and it's hard to have endpoints hard-coded in the code
@camilleislasse camilleislasse requested a review from ekyna as a code owner February 6, 2023 10:48
@camilleislasse
Copy link
Contributor Author

@ekyna

@Prometee
Copy link
Contributor

Prometee commented Feb 6, 2023

Wonderful @camilleislasse !
Maybe adding a test for the endpoint_url could be great 😉

src/Api/Api.php Outdated
@@ -479,6 +482,10 @@ private function getHashModes(): array

private function getUrl(): string
{

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this blank line.

@@ -53,6 +53,7 @@ protected function populateConfig(ArrayObject $config)
'ctx_mode' => null,
'directory' => null,
'endpoint' => null,
'endpoint_url' => null,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please align arrow.

@@ -66,6 +67,7 @@ protected function populateConfig(ArrayObject $config)

$payzenConfig = [
'endpoint' => $config['endpoint'],
'endpoint_url'=> $config['endpoint_url'],
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a space between string and arrow. Then align arrows.

@ekyna
Copy link
Owner

ekyna commented Feb 6, 2023

As you are using PHPStorm, you should configure PSR as coding style.
Create a new Scheme > Click « Set from... » > Select « PSR12 ».
image
Then you can use Ctrl + Alt + L to reformat code.

@ekyna ekyna merged commit 4fe4222 into ekyna:master Feb 6, 2023
@ekyna
Copy link
Owner

ekyna commented Feb 6, 2023

Thx @camilleislasse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants