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

Fix/company billie #971

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Fix/company billie #971

wants to merge 2 commits into from

Conversation

mmaymo
Copy link
Collaborator

@mmaymo mmaymo commented Dec 24, 2024

handles PIWOO-575

@mmaymo mmaymo requested a review from Narek13 December 24, 2024 08:40
@@ -6,7 +6,7 @@

class BillieFieldsStrategy implements PaymentFieldsStrategyI
{
const FIELD_COMPANY = "billing_company";
const FIELD_COMPANY = "billing_company_billie";
Copy link
Collaborator

Choose a reason for hiding this comment

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

It is recommended to use the single quotes for the simple strings, also can add the visibility to constant.

Suggested change
const FIELD_COMPANY = "billing_company_billie";
public const FIELD_COMPANY = 'billing_company_billie';

return $this->addPaymentMethodMandatoryFields($fields, $gatewayName, $field, $companyLabel, $errors);
}

public function switchFields($data)
Copy link
Collaborator

Choose a reason for hiding this comment

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

is it because of the interface that most of the methods here don't use type hints or return types?

Copy link
Collaborator

@Narek13 Narek13 left a comment

Choose a reason for hiding this comment

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

Thanks. Just a small suggestions/questions which doesn't prevent me from approving.

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.

2 participants