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 #204 #209

Merged
merged 3 commits into from
Feb 10, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions includes/class-alg-wc-checkout-fees.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,9 @@ public function add_gateways_fees( $the_cart ) {
if ( strpos( $current_gateway, $klarna_payment ) !== false ) {
$current_gateway = 'klarna_payments';
}
if ( strpos( $current_gateway, 'alma_in_page' ) !== false ) {
$current_gateway = 'alma';
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

⚠️ Warning: Found precision alignment of 2 spaces (Universal.WhiteSpace.PrecisionAlignment.Found).

Copy link
Collaborator

Choose a reason for hiding this comment

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

🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).

Copy link
Collaborator

Choose a reason for hiding this comment

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

🚫 Error: Line indented incorrectly; expected 3 tabs, found 1 tabs and 2 spaces (Generic.WhiteSpace.ScopeIndent.IncorrectExact).

if ( strpos( $current_gateway, 'xpay_paypal' ) !== false ) {
$current_gateway = 'xpay';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ public function settings_section( $sections ) {
if ( 'iyzico_pwi' === $key ) {
$sections[ sanitize_title( $key ) ] = $gateway->method_title;
}
if ( 'alma' === $key ) {
$sections[ sanitize_title( $key ) ] = $gateway->method_title;
}
}
}
return $sections;
Expand Down Expand Up @@ -149,6 +152,9 @@ public function get_settings() {
if ( 'iyzico_pwi' === $key ) {
$gateway->title = $gateway->method_title;
}
if ( 'alma' === $key ) {
$gateway->title = $gateway->method_title;
}
// Adding settings.
$settings = array(
array(
Expand Down
Loading